:root {
    --primary: #FFC107;
    --primary-dark: #FFA000;
    --secondary: #212529;
    --gray: #6C757D;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --dark: #1F2937;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --border-radius: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0;
    padding: 0;
}

p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0 0 1rem 0;
    padding: 0;
}

a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

section {
    padding: 80px 0;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1024px) {
    section { padding: 60px 20px; }
}

@media (max-width: 768px) {
    section { padding: 50px 15px; }
}

@media (max-width: 480px) {
    section { padding: 40px 15px; }
}

.bg-light {
    background-color: var(--white);
}

/* Cargador (Loader) */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cabecera y NavegaciÃ³n */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: background 0.5s ease,
                padding 0.5s ease,
                box-shadow 0.5s ease,
                backdrop-filter 0.5s ease,
                -webkit-backdrop-filter 0.5s ease,
                border-bottom 0.5s ease;
}

.main-header.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.35) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.main-header.scrolled .main-logo {
    height: 65px; /* Reducción de logo suave al hacer scroll */
}




.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: inherit;
}



.main-header .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 50px !important;
}

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.main-logo {
    height: 80px;
    width: auto;
    display: block;
    transition: var(--transition);
}



.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}





.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link.active-link::after {
    width: 100%;
    background: var(--primary);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
    background: var(--primary);
}

/* MenÃº Desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.85); /* Cohesión transparentosa (glassmorphic) */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 15px 0;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    opacity: 1;
    visibility: hidden;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 25px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: none;
}

.dropdown-content a:hover {
    background: #FEFCE8;
    color: var(--primary);
    padding-left: 30px;
}

.dropdown-content li {
    width: 100%;
    list-style: none;
}

.dropdown-content li a {
    color: var(--dark);
    padding: 10px 25px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: capitalize;
}

.dropdown-content li a:hover {
    background: var(--primary);
    color: var(--secondary);
    padding-left: 30px;
}

.dropdown>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: var(--transition);
    opacity: 0.7;
    margin-top: 1px;
}

.dropdown:hover>a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Ajuste de Dropdown en MÃ³vil */
@media (max-width: 968px) {
    .dropdown-content {
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 5px 0 15px 20px;
        width: 100%;
        text-align: center;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown>a::after {
        margin-left: auto;
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 969px) {
    .mobile-only {
        display: none !important;
    }
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 187, 17, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}


/* Sección Hero */
/* Sección Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/herosolucionaa.png') no-repeat right center;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 130px;
    padding-bottom: 120px;
    color: var(--white);
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0) 80%);
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .hero-section {
        background-attachment: fixed;
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding-left: 50px; /* Perfect alignment exactly under the header logo */
    padding-right: 50px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-content h1 .highlight {
    color: var(--primary);
}

.hero-content h1 .brand-badge {
    background: var(--primary);
    color: var(--secondary);
    font-size: 1.1rem;
    padding: 4px 12px;
    border-radius: 8px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    display: inline-block;
    transform: skewX(-10deg);
    text-shadow: none;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 680px;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); /* Subtle shadow for readable contrast over white mist */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 8px 16px 8px 8px;
    margin-bottom: 2.2rem;
}

.hero-badge .badge-icon {
    background: var(--primary);
    color: var(--secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.85rem;
}

.hero-badge p {
    margin: 0;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.hero-badge .highlight-text {
    color: var(--primary);
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 2.4rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-btns .btn {
    min-width: 170px;
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 1.8rem;
    }
    .hero-btns .btn {
        width: 100%;
        min-width: auto;
        text-align: center;
    }
}

.hero-content .btn-outline {
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    background: transparent !important;
}

.hero-content .btn-outline:hover {
    background: var(--white) !important;
    color: var(--secondary) !important;
    border-color: var(--white) !important;
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-features .f-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.hero-features .f-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-features .f-text strong {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-features .f-text span {
    font-size: 0.78rem;
    color: #cbd5e1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: unset;
        padding-top: 120px;
        padding-bottom: 40px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        justify-content: center;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
    }
    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.1rem;
    }
    .hero-content p {
        text-align: center;
        max-width: 100%;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
}

/* CuadrÃ­cula de Servicios */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

@media (max-width: 640px) {
    .section-header { margin-bottom: 40px; }
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 968px) {
    .section-header h2 { font-size: 2rem; }
}

@media (max-width: 640px) {
    .section-header h2 { font-size: 1.7rem; }
}

.underline {
    width: 80px;
    height: 5px;
    background: var(--primary);
    margin: 0 auto 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

@media (max-width: 968px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
}

.service-card {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: var(--white);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    overflow: visible;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--secondary);
    text-align: center;
    box-shadow: var(--shadow);
}

@media (max-width: 968px) {
    .service-card { padding: 30px 25px; min-height: 350px; }
}

@media (max-width: 640px) {
    .service-card { padding: 25px 20px; min-height: 0; }
}

/* Removed pseudo-element overlay */

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Removed hover overlay */

.service-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.service-card:hover .service-card-content {
    transform: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--secondary);
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 15px;
    margin-top: 10px;
    color: var(--secondary);
    font-size: 1.35rem;
    font-weight: 800;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 968px) {
    .service-card h3 { font-size: 1.15rem; margin-top: 8px; }
}

@media (max-width: 640px) {
    .service-card h3 { font-size: 1rem; margin-bottom: 12px; }
}

.service-card p {
    margin-bottom: 25px;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

@media (max-width: 968px) {
    .service-card p { margin-bottom: 20px; font-size: 0.85rem; }
}

@media (max-width: 640px) {
    .service-card p { margin-bottom: 15px; font-size: 0.8rem; }
}

.service-card .btn {
    margin-top: auto;
}

.service-card:hover p {
    opacity: 1;
}

/* SecciÃ³n de Beneficios */
.benefits-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

@media (max-width: 1024px) {
    .benefits-flex { gap: 50px; }
}

@media (max-width: 768px) {
    .benefits-flex { flex-direction: column; gap: 40px; }
}

@media (max-width: 480px) {
    .benefits-flex { gap: 30px; }
}

.benefits-img {
    flex: 1;
}

.benefits-img img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.benefits-content {
    flex: 1;
}

.benefits-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.benefits-list i {
    color: var(--secondary);
    font-size: 1.3rem;
}

/* Testimonios */
.testimonials {
    padding-bottom: 80px;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 10px;
}

.slider-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.testimonial-item {
    min-width: 100%;
    padding: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-radius: 28px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
    text-align: left;
    border-left: 5px solid var(--primary);
}

.testi-text {
    font-style: normal;
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 28px;
    color: #334155;
    position: relative;
}

.testi-text::before {
    content: '“';
    position: absolute;
    left: -28px;
    top: -18px;
    font-size: 4rem;
    color: rgba(245, 158, 11, 0.18);
    line-height: 1;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.testi-user img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.testi-user div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testi-user h4 {
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.testi-user span {
    color: #64748b;
    font-size: 0.95rem;
}

.slider-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #d1d5db;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
    width: 28px;
    border-radius: 999px;
}

.testimonials .section-header {
    margin-bottom: 20px;
}

.testimonials .underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 999px;
    margin: 12px auto 0;
}

.contact.section {
    padding-top: 90px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info,
.contact-form {
    background: var(--white);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 40px;
}

.contact-info {
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55px;
    height: 6px;
    background: var(--primary);
    border-top-left-radius: 28px;
    border-bottom-right-radius: 16px;
}

.contact-info h2 {
    margin-bottom: 18px;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 520px;
}

.contact-details {
    display: grid;
    gap: 18px;
}

.contact-details p {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gray-dark);
    font-weight: 500;
}

.contact-details i {
    color: var(--primary);
    min-width: 24px;
    font-size: 1.1rem;
}

.contact-form {
    position: relative;
    padding: 45px 40px 35px;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 6px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.7));
    border-top-right-radius: 28px;
    border-bottom-left-radius: 16px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    font-family: inherit;
    background: #f8fafc;
    color: #0f172a;
    transition: var(--transition);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.form-group input::placeholder,
.form-group select,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.9);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
    background: #fff;
}

.contact-form button {
    width: 100%;
    max-width: 100%;
    padding: 16px 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Pie de PÃ¡gina (Footer) */
.main-footer {
    background: radial-gradient(circle at top right, #1e293b, #0B1120);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--glass);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-5px);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 1;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
}

/* Animaciones de Revelado */
.reveal-up {
    opacity: 1;
    transform: translate3d(0, 20px, 0);
    transition: none;
    
}

.reveal-left {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
    transition: none;
    
}

.reveal-right {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
    transition: none;
    
}

.active-reveal {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 900;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* NavegaciÃ³n MÃ³vil */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark);
}

.hamburger.active .bar {
    background-color: var(--primary);
}


/* ADN Section */
.adn-highlight {
    color: var(--primary);
}

.adn-row-purpose {
    margin-top: 50px;
    margin-bottom: 30px;
}

.adn-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.adn-col-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.adn-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.adn-card--purpose {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf0 100%);
    border-left: 6px solid var(--primary);
}

.adn-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(234, 179, 8, 0.1);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.adn-icon {
    width: 80px;
    height: 80px;
    background: #FEFCE8;
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.adn-card:hover .adn-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.adn-card h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.adn-sub {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.adn-tagline {
    font-style: italic;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.adn-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Verticales de la Misión */
.adn-verticales-title {
    margin-top: 25px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.adn-verticales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.adn-verticales li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.adn-verticales li i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 1.1rem;
}

.adn-verticales li div strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
}

.adn-verticales li div span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Vision Pills */
.adn-vision-pills {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.adn-vision-pills li {
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adn-vision-pills li i {
    color: var(--primary);
}

/* Valores */
.adn-values {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.adn-values li {
    font-size: 0.9rem;
    line-height: 1.4;
}

.adn-values li strong {
    color: var(--primary);
    display: block;
}

@media (max-width: 1024px) {
    .adn-row-two {
        grid-template-columns: 1fr;
    }
    
    .adn-verticales {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .adn-card--purpose {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .adn-verticales {
        grid-template-columns: 1fr;
    }
    
    .adn-values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .adn-grid {
        grid-template-columns: 1fr;
    }

    .adn-card {
        padding: 40px 30px;
    }
}

/* SecciÃ³n Portal de Pagos */
.payments {
    background-color: var(--light);
    padding: 100px 0;
}

.payment-card {
    background: var(--white);
    border-radius: 40px;
    padding: 70px;
    display: flex;
    align-items: center;
    gap: 60px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    border-top: 6px solid var(--primary);
}

.payment-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 187, 17, 0.1) 0%, rgba(253, 187, 17, 0) 70%);
    z-index: 0;
}

.payment-content {
    flex: 1.6;
    z-index: 2;
}

.payment-title {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
}

.payment-description {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 35px;
    max-width: 650px;
    line-height: 1.7;
}

.payment-description strong {
    color: var(--secondary);
}

.payment-tags {
    display: flex;
    gap: 20px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.payment-tag {
    background: #FEFCE8;
    color: var(--dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #FEF9C3;
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.05);
}

.payment-tag i {
    color: var(--primary);
    font-size: 1.1rem;
}

.btn-be {
    display: inline-flex;
    align-items: center;
    background: #2d1659;
    /* Color original Bemovil */
    color: white;
    padding: 18px 45px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(45, 22, 89, 0.25);
    border: 2px solid transparent;
}

.btn-be:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(45, 22, 89, 0.35);
    background: #3e1f7a;
    border-color: rgba(255, 255, 255, 0.2);
}

.be-logo {
    font-weight: 900;
    margin-right: 15px;
    font-style: italic;
    font-size: 1.6rem;
    text-transform: lowercase;
}

.payment-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.graphic-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-icon {
    font-size: 12rem;
    color: var(--primary);
    opacity: 0.08;
    transform: rotate(-10deg);
}

.arrow-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.15;
    bottom: 40px;
    right: 40px;
    animation: floatArrow 3s ease-in-out infinite;
}

@keyframes floatArrow {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-20px) rotate(-10deg);
    }
}

@media (max-width: 1100px) {
    .payment-card {
        gap: 30px;
        padding: 50px;
    }

    .payment-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 968px) {
    .payment-card {
        flex-direction: column;
        padding: 50px 30px;
        text-align: center;
        border-radius: 30px;
    }

    .payment-content {
        flex: 1;
    }

    .payment-title {
        font-size: 2.2rem;
    }

    .payment-description {
        margin-left: auto;
        margin-right: auto;
    }

    .payment-tags {
        justify-content: center;
    }

    .payment-graphic {
        display: none;
    }
}

/* ======================= */
/* Sedes Section           */
/* ======================= */
/* ======================= */
/* Secciones de Ciudades Individuales */
/* ======================= */
.city-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
    overflow: hidden;
}

.city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

#cartagena .city-overlay,
#cali .city-overlay {
    background: linear-gradient(to left,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 100%);
}

.city-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 60px;
    border-radius: 40px;
    max-width: 600px;
    color: var(--white);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    
    /* OptimizaciÃ³n para 120Hz */
}

#cartagena .container,
#cali .container {
    display: flex;
    justify-content: flex-end;
}

.city-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.city-card h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary);
}

.underline-left {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-bottom: 30px;
}

.city-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.city-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.city-info span {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 600;
}

.city-info i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 25px;
}

/* ======================= */
/* MEDIA QUERIES CONSOLIDADAS */
/* ======================= */

/* Laptops y Pantallas Medianas */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Tablets y Laptops PequeÃ±as (Punto de quiebre para menÃº mÃ³vil) */
@media (max-width: 968px) {
    .main-header {
        padding: 15px 0;
    }



    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 1;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        flex-direction: column;
        justify-content: center;
        background: rgba(234, 179, 8, 0.98);
        /* Oro sÃ³lido premium */
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);
        padding: 60px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.3rem;
        color: var(--secondary) !important;
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.05);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
        padding: 10px 0;
        margin-top: 10px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .benefits-flex {
        flex-direction: column;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .adn-grid {
        grid-template-columns: 1fr;
    }

    .payment-card {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }

    .payment-graphic {
        display: none;
    }
}

/* Smartphones y Tablets pequeÃ±as */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .city-section {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .city-card {
        padding: 40px 25px;
        text-align: center;
    }

    .city-card h2 {
        font-size: 2.8rem;
    }

    .city-info span {
        justify-content: center;
    }

    .city-badge {
        margin: 0 auto 25px;
    }
}

/* Smartphones PequeÃ±os */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .main-logo {
        height: 60px;
    }

    .container {
        padding: 0 20px;
    }
}
/* =========================================
   SECCIÓN COTIZADOR SOAT INNOVADOR
   ========================================= */
.soat-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.soat-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.soat-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secondary);
}

.soat-interactive-card {
    margin-top: 50px;
}

/* Selector de Vehículo */
.vehicle-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.v-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px;
    width: 140px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.v-option i {
    font-size: 2rem;
    color: var(--gray);
    transition: var(--transition);
}

.v-option span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray);
}

.v-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.v-option.active {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.2);
}

.v-option.active i {
    color: var(--primary);
    transform: scale(1.1);
}

.v-option.active span {
    color: var(--secondary);
}

/* Input de Placa */
.plate-input-container {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.plate-box {
    background: #ffeb3b; /* Amarillo Placa */
    border: 3px solid #000;
    border-radius: 10px;
    padding: 5px;
    width: 280px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
}

.plate-header {
    font-size: 0.6rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 3px;
    margin-bottom: 2px;
}

.plate-input {
    width: 100%;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    outline: none;
    padding: 10px 0;
}

.plate-input::placeholder {
    color: rgba(0,0,0,0.2);
}

/* Botón WhatsApp */
.btn-whatsapp-soat {
    background: #25D366;
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-soat:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.cta-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

@media (max-width: 768px) {
    .soat-container {
        padding: 40px 20px;
    }
    .v-option {
        width: 45%;
    }
    .plate-box {
        width: 100%;
    }
    .btn-whatsapp-soat {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .main-logo { height: 45px !important; }
    .hero::after { height: 60px !important; }
    .hero-content { padding-bottom: 60px !important; padding-top: 100px; }
    .hero h1 { font-size: 1.8rem !important; margin-bottom: 15px; }
    .hero p { font-size: 1rem !important; margin-bottom: 25px; }
}

@media (max-width: 968px) {
    .main-header {
        padding: 15px 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: absolute;
        top: 75px;
        right: 20px;
        width: 280px;
        max-width: calc(100vw - 40px);
        height: auto;
        max-height: 80vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background: #FFFFFF;
        border-radius: 20px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.1);
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 15px 0;
        overflow-y: auto;
        pointer-events: none;
        border: 1px solid #f1f5f9;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 25px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #334155 !important;
        letter-spacing: 0;
        text-transform: none;
        border-bottom: none;
        transition: background 0.2s ease;
    }

    .nav-link:hover {
        background: #f8fafc;
        color: var(--primary) !important;
    }

    .dropdown-content {
        position: static;
        background: #f8fafc;
        box-shadow: none;
        padding: 5px 0;
        margin: 0;
        border-radius: 0;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content li a {
        color: #64748b !important;
        font-size: 0.85rem;
        padding: 10px 40px;
        display: block;
        text-align: left;
    }

    .dropdown:hover .dropdown-content {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu { pointer-events: auto; }
}


/* GLOBAL RESPONSIVE FIXES */
.container { padding-left: 20px !important; padding-right: 20px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
@media (max-width: 768px) {
    .adn-hero { padding-top: 120px !important; padding-bottom: 60px !important; min-height: unset !important; }
    .adn-hero h1 { font-size: 2rem !important; line-height: 1.2 !important; }
    .adn-hero p { font-size: 1rem !important; }
    section { overflow-x: hidden !important; }
    .adn-section { padding: 40px 0 !important; }
}

/* FINAL COMPREHENSIVE RESPONSIVE FIX */
html, body { overflow-x: hidden !important; position: relative !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
* { box-sizing: border-box !important; }
.container { width: 100% !important; max-width: 1200px !important; padding: 0 20px !important; margin: 0 auto !important; }
@media (max-width: 1024px) {
    .adn-hero, .hero { padding-top: 120px !important; padding-bottom: 60px !important; height: auto !important; min-height: unset !important; }
    .adn-hero-content, .hero-content { padding-top: 20px !important; padding-bottom: 20px !important; }
    .main-logo { height: 65px !important; }
    .main-header { padding: 8px 0 !important; }
    section { padding: 60px 20px !important; }
}
@media (max-width: 768px) {
    .adn-hero, .hero { padding-top: 100px !important; padding-bottom: 50px !important; height: auto !important; min-height: 300px !important; }
    .adn-hero-content, .hero-content { padding-top: 20px !important; padding-bottom: 20px !important; }
    .main-logo { height: 55px !important; }
    .main-header { padding: 5px 0 !important; }
    section { padding: 50px 15px !important; }
}
@media (max-width: 480px) {
    .adn-hero, .hero { padding-top: 80px !important; padding-bottom: 40px !important; }
    section { padding: 40px 15px !important; }
}

.footer-logo { height: 80px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; }

@media (max-width: 768px) {
    .hero { padding-bottom: 120px !important; }
    .hero-content { padding-bottom: 40px !important; }
    .hero-btns { margin-bottom: 30px !important; }
}

/* SERVICES GRID FIXES */
.service-card .icon-box { background: var(--primary) !important; color: var(--secondary) !important; display: flex !important; align-items: center !important; justify-content: center !important; width: 50px !important; height: 50px !important; border-radius: 12px !important; margin-bottom: 20px !important; overflow: visible !important; }
.service-card .icon-box i { color: var(--secondary) !important; font-size: 1.5rem !important; display: block !important; }
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .service-card { min-height: unset !important; height: auto !important; }
    .service-card h3 { min-height: unset; margin-bottom: 15px; }
    .service-card p { min-height: unset; }
}

.icon-box i { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }

/* WHITE BUTTONS WITH YELLOW TEXT FIX */
.adn-cta .btn-dark {
    background: #FFFFFF !important;
    color: #fdbb11 !important;
    border: 2px solid #FFFFFF !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.payment-action-box .btn-primary {
    background: #FFFFFF !important;
    color: #7c3aed !important;
    border: 2px solid #7c3aed !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.12) !important;
    transition: all 0.3s ease !important;
}

.payment-action-box .btn-primary:hover {
    background: #7c3aed !important;
    color: #FFFFFF !important;
    border-color: #7c3aed !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3) !important;
}

.payment-sidebar .btn-secondary {
    background: #FFFFFF !important;
    color: #fdbb11 !important;
    border: 2px solid #fdbb11 !important;
    font-weight: 700 !important;
}

/* FORZAR ALINEACIÓN DEL HERO A LA IZQUIERDA (DEBAJO DEL LOGO) EN ESCRITORIO */
@media (min-width: 1025px) {
    .hero-section .hero-container.container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 50px !important;
        padding-right: 50px !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        margin-top: -60px !important; /* Raise the hero text vertically by 60px */
    }
}

/* DISTRIBUCIÓN DE ESPACIO DE DOS COLUMNAS EN EL FOOTER EN DESKTOP */
@media (min-width: 769px) {
    .main-footer .footer-grid {
        grid-template-columns: 2fr 1fr !important;
        gap: 80px;
    }
}

/* FOOTER BOTTOM LEGAL LINKS */
.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-legal-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}
.footer-legal-links a:hover {
    opacity: 1;
    color: var(--primary);
}
.footer-legal-links .divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
    }
}

/* ADDITIONAL GLOBAL RESPONSIVE IMPROVEMENTS */
html, body {
    min-width: 320px;
    word-wrap: break-word;
}
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .hero-section-premium {
        background-position: center center !important;
    }
    .hero-container-premium {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .service-card {
        min-height: auto !important;
    }
    .service-card-content {
        padding: 30px 24px !important;
    }
    .adn-hero, .hero {
        background-position: center center !important;
    }
    .main-white-card {
        padding: 40px 25px !important;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 8px 0 !important;
    }
    .navbar {
        flex-wrap: wrap !important;
        gap: 15px;
    }
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    section {
        padding: 50px 15px !important;
    }
    .hero-section-premium {
        min-height: auto !important;
        padding-top: 110px !important;
        padding-bottom: 50px !important;
    }
    .hero-title-premium {
        font-size: clamp(2rem, 6vw, 3.2rem) !important;
    }
    .hero-desc-premium {
        max-width: 100% !important;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .service-card {
        min-height: auto !important;
        padding: 0 !important;
    }
    .service-card-content {
        padding: 28px 22px !important;
    }
    .adn-hero {
        padding-top: 90px !important;
        min-height: 320px !important;
    }
    .adn-hero p, .adn-hero h1 {
        padding: 0 15px !important;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 6px 0 !important;
    }
    .hero-btns-premium,
    .hero-btns {
        gap: 12px !important;
    }
    .btn-premium,
    .btn {
        width: 100% !important;
    }
    .hero-features-glass {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .adn-section,
    .service-detail-page section,
    .section {
        padding: 45px 12px !important;
    }
    .main-white-card,
    .service-card-content {
        padding: 22px !important;
    }
    .section-header {
        text-align: center !important;
    }
}

/* COOKIE CONSENT BANNER (GLASSMORPHIC PREMIUM) */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(50px) scale(0.95);
    width: 90%;
    max-width: 580px;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(253, 187, 17, 0.15), 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    display: block !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.cookie-banner-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner-content h4 i {
    color: #fdbb11;
}

.cookie-banner-content p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-banner-content p a {
    color: #fdbb11;
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-banner-content p a:hover {
    color: var(--white);
}

.cookie-banner-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-banner-btns .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-banner-btns .btn-accept {
    background: #fdbb11;
    color: #0f172a;
    border: none;
}

.cookie-banner-btns .btn-accept:hover {
    background: #e0a30b;
    transform: translateY(-2px);
}

.cookie-banner-btns .btn-reject {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner-btns .btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 580px) {
    .cookie-banner {
        bottom: 15px;
        padding: 20px;
        width: 95%;
    }
    .cookie-banner-btns {
        flex-direction: column;
    }
    .cookie-banner-btns .btn {
        width: 100%;
        text-align: center;
    }
}

/* CUSTOM LEGAL MODALS (GLASSMORPHIC BLUR BACKGROUND) */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal.show {
    display: flex;
    opacity: 1;
}

.legal-modal-card {
    background: var(--white);
    border-radius: 24px;
    width: 90%;
    max-width: 680px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal.show .legal-modal-card {
    transform: scale(1) translateY(0);
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
}

.legal-modal-header h3 {
    color: var(--secondary) !important;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.close-legal-modal {
    background: #f1f5f9;
    border: none;
    color: var(--secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transition: var(--transition);
}

.close-legal-modal:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 32px;
    max-height: 60vh;
    overflow-y: auto;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
}

.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.legal-modal-body h5 {
    color: var(--secondary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-modal-body p {
    margin-bottom: 16px;
}

.legal-modal-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-modal-body li {
    margin-bottom: 8px;
}

/* ============================================================
   ESTILOS COMPARTIDOS PARA HEROES DE PÁGINAS INTERNAS (ADN, PAGOS, DETALLES)
   ============================================================ */
.adn-hero {
    position: relative;
    padding-top: 170px !important; /* Separación de seguridad generosa para el menú fixed */
    padding-bottom: 80px !important;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white) !important;
    overflow: hidden;
    z-index: 1;
}

.adn-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1; /* Asegura que la imagen quede al fondo */
}

.adn-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.adn-hero h1 {
    color: var(--white) !important;
    font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.adn-hero p {
    color: #e2e8f0 !important;
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    max-width: 800px;
    margin: 0 auto !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

/* ============================================================
   ANIMACIÓN NOTIFICACIONES FORMULARIO DE CONTACTO
   ============================================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-response {
    margin-top: 16px;
    min-height: 0;
    transition: opacity 0.5s ease;
}

.form-response > div {
    animation: slideInUp 0.4s ease forwards;
}
