* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.carousel-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .carousel-section {
        height: 700px;
    }
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 90, 115, 0.85) 0%, rgba(27, 38, 56, 0.75) 100%);
    z-index: 1;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 2rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    font-size: 1.2rem;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active,
.carousel-indicators button:hover {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.faq-item {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    outline: none;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.plan-card {
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testimonials-carousel {
    position: relative;
}

.testimonials-container {
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .testimonials-track {
        transform: translateX(0) !important;
    }
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonials-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1b5a73;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.testimonials-control:hover {
    background: #d62b3c;
    transform: translateY(-50%) scale(1.1);
}

.testimonials-prev {
    left: -20px;
}

.testimonials-next {
    right: -20px;
}

@media (max-width: 767px) {
    .testimonials-prev {
        left: 10px;
    }
    
    .testimonials-next {
        right: 10px;
    }
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.testimonials-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dots button.active,
.testimonials-dots button:hover {
    background: #1b5a73;
    width: 35px;
    border-radius: 6px;
}

.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.whatsapp-button {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.whatsapp-button:hover {
    animation: none;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
}

#navbar {
    backdrop-filter: blur(10px);
}

#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1b5a73;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

section {
    opacity: 0;
    animation: fadeInSection 0.6s ease forwards;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #1b5a73 0%, #d62b3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1b5a73;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d62b3c;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mr-3 { margin-right: 0.75rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.grid { display: grid; }

.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-between; justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-6 { bottom: 1.5rem; }
.bottom-20 { bottom: 5rem; }
.bottom-30 { bottom: 7.5rem; }
.right-6 { right: 1.5rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.w-16 { width: 4rem; }
.w-45 { width: 2.8125rem; }
.w-50 { width: 3.125rem; }
.w-12 { width: 3rem; }
.w-35 { width: 2.1875rem; }
.w-40 { width: 10rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-45 { height: 2.8125rem; }
.h-50 { height: 3.125rem; }
.h-full { height: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.bg-green-500 { background-color: #10b981; }
.bg-primary { background-color: #1b5a73; }
.bg-secondary { background-color: #d62b3c; }

.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-blue-900:hover { background-color: #1e3a8a; }
.hover\:bg-green-600:hover { background-color: #059669; }

.text-white { color: #ffffff; }
.text-dark { color: #1b2638; }
.text-primary { color: #1b5a73; }
.text-secondary { color: #d62b3c; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-500 { color: #6b7280; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-yellow-500 { color: #eab308; }
.text-red-100 { color: #fee2e2; }

.hover\:text-primary:hover { color: #1b5a73; }
.hover\:text-secondary:hover { color: #d62b3c; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-yellow-300:hover { color: #fde047; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }

.text-left { text-align: left; }
.text-center { text-align: center; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.italic { font-style: italic; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 500ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.transform { transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.hover\:animate-none:hover { animation: none; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

.opacity-0 { opacity: 0; }
.opacity-1 { opacity: 1; }

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.border-primary { border-color: #1b5a73; }
.border-secondary { border-color: #d62b3c; }
.border-blue-700 { border-color: #1d4ed8; }

.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-primary { --tw-gradient-from: #1b5a73; }
.to-blue-900 { --tw-gradient-to: #1e3a8a; }
.from-secondary { --tw-gradient-from: #d62b3c; }
.to-red-700 { --tw-gradient-to: #b91c1c; }

@media (min-width: 768px) {
    .md\:h-14 { height: 3.5rem; }
    .md\:h-16 { height: 4rem; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:mt-20 { margin-top: 5rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}
