/* css/styles.css */

/* ===== VARIABLES CSS ===== */
:root {
    --color-azul: #2E578C;
    /* Mantenemos este para el botón por ahora, o usamos uno más oscuro si es necesario */
    --color-azul-oscuro: #1A3A5F;
    /* Para hover o variantes */
    --color-verde: #51A657;
    --color-naranja: #F29E38;
    --color-blanco: #FFFFFF;
    --color-negro: #000000;

    --font-family: 'Rubik', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    color: var(--color-negro);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    /* transition: background 0.3s ease; Removed transition */
    /* animation: slideDown 0.6s ease-out forwards; Removed animation */
}

.header.scrolled {
    background: var(--color-blanco);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 10px 0;
}

.nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    position: relative;
    z-index: 2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;

    /* Absolute centering */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 10;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
    animation: fadeIn 0.8s ease-out forwards;
}

.nav-link:nth-child(1) {
    animation-delay: 0.3s;
}

.nav-link:nth-child(2) {
    animation-delay: 0.4s;
}

.nav-link:nth-child(3) {
    animation-delay: 0.5s;
}

.nav-link:nth-child(4) {
    animation-delay: 0.6s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-verde);
    transition: width 0.3s ease;
}

/* .nav-link:hover,
.nav-link.active {
    color: var(--color-azul);
} */

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
    position: relative;
    z-index: 2;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-negro);
}

.goog-te-gadget-icon {
    display: none !important;
}

/* Navigation Work Button (Moved here) */
.nav-work-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background-color: var(--color-azul-oscuro);
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(26, 58, 95, 0.2);
    margin-left: 20px;
    /* Add spacing from language selector */
}

.nav-work-btn:hover {
    background-color: var(--color-azul);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 58, 95, 0.3);
}

/* Accessibility Panel Fixed Position */
.accessibility-panel {
    position: fixed !important;
    top: 50% !important;
    right: 70px !important;
    transform: translateY(-50%) !important;
    width: 300px;
    background: var(--color-blanco);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 20px;
    display: none;
    z-index: 2147483647;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #eee;
}

.accessibility-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.acc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.acc-panel-header h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-negro);
}

.acc-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.acc-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.acc-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acc-option:hover,
.acc-option.active {
    background: var(--color-azul);
    color: var(--color-blanco);
    border-color: var(--color-azul);
}

.acc-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.acc-option span:last-child {
    font-size: 12px;
    text-align: center;
}

.acc-reset {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.acc-reset:hover {
    background: #f1f1f1;
    color: var(--color-azul);
}

/* Updated Accessibility Button - Floating Side Widget */
.accessibility-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--color-azul);
    border: none;
    border-radius: 30px 0 0 30px;
    color: var(--color-blanco);
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    width: 48px;
    /* Initial width - icon only */
    overflow: hidden;
    white-space: nowrap;
}

.accessibility-btn:hover {
    width: 180px;
    /* Expanded width to show text */
    background: var(--color-azul-oscuro);
}

.accessibility-btn span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accessibility-btn:hover span {
    opacity: 1;
}

.accessibility-btn svg {
    min-width: 24px;
    min-height: 24px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    /* Ensure clickable */
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-negro);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: var(--color-blanco);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Forma naranja del fondo */
/* Forma naranja del fondo eliminada */

/* Ajuste para móviles - la curva cambia */
/* Ajuste para móviles */
@media screen and (max-width: 1024px) {
    /* Reglas anteriores eliminadas */
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    animation: fadeInLeft 1s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    color: var(--color-verde);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.hero-title {
    font-size: 58px;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    color: var(--color-negro);
    margin-bottom: 25px;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Estilo de subrayado tipo pincel */
.highlight-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('../images/Decore.webp') no-repeat center center;
    background-size: contain;
    z-index: -1;
    animation: fadeIn 1s ease-out 1s forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-negro);
    margin-bottom: 22px;
    animation: fadeIn 1s ease-out 0.7s forwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: #1A3A5F;
    /* Azul más oscuro como en la imagen */
    color: var(--color-blanco);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(26, 58, 95, 0.2);
    animation: fadeIn 1s ease-out 0.9s forwards;
}

.cta-button:hover {
    background: #2E578C;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(26, 58, 95, 0.3);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Stats Section */
.stats-container {
    display: flex;
    gap: 50px;
    margin-top: 17px;
    /* Reducido de 50px para acercarlo al botón */
    animation: fadeIn 1s ease-out 1.1s forwards;
}

.stat-item {
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 1.2s;
}

.stat-item:nth-child(2) {
    animation-delay: 1.3s;
}

.stat-item:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-size: 32px;
    /* Reducido de 42px */
    font-weight: var(--font-weight-bold);
    color: var(--color-negro);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    /* Reducido de 15px */
    color: var(--color-negro);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}

/* Hero Right - Image Section */
.hero-right {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    /* Restaurado a 0 para centrado natural y evitar solapamiento */
}

.hero-image {
    width: auto;
    height: 550px;
    /* Aumentar tamaño ligeramente */
    max-width: 130%;
    /* Permitir que salga un poco si es necesario */
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: floatImage 3s ease-in-out infinite;
}

.hero-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.decorative-plane {
    position: absolute;
    animation: flyPlane 8s ease-in-out infinite;
    z-index: 3;
}

.decorative-plane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plane-1 {
    top: 10%;
    left: -15%;
    width: 180px;
    height: 130px;
    animation-delay: 0s;
}

.plane-2 {
    top: 50%;
    right: -10%;
    width: 180px;
    height: 130px;
    animation-delay: 4s;
}

@keyframes flyPlane {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate(100px, -50px) rotate(15deg);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(200px, -100px) rotate(25deg);
        opacity: 0;
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal.animate {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ===== UTILITY ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Only Utility */
.mobile-only {
    display: none;
}

@media screen and (max-width: 991px) {
    .mobile-only {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .mobile-only .nav-link {
        display: inline-block;
        color: var(--color-azul);
        font-weight: 600;
        padding: 10px 0;
    }
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 42px;
        /* Scaled down for tablet */
    }

    .nav-menu {
        gap: 20px;
        /* Reduced gap for tablet */
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-image {
        margin-top: 10px;
        height: 250px;
        /* Reduced height for tablet */
        width: auto;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 40px;
    }

    /* .nav-menu display: none removed to allow sliding menu */

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        /* Ensure it's last */
    }

    .nav-right {
        order: 2;
        /* Language selector before menu */
        margin-right: 15px;
        /* Spacing */
    }

    .nav-right .nav-work-btn {
        display: none;
        /* Hide header button on smaller mobile */
    }

    /* Show button on tablets */
    @media (min-width: 769px) {
        .nav-right .nav-work-btn {
            display: inline-flex;
            margin-right: 15px;
        }
    }

    .hero {
        padding: 180px 0 80px;
        /* Increased top padding */
        min-height: 100vh;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 40px;
        /* Gap between content */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-right {
        display: none;
        /* Hide hero image on mobile */
    }

    .hero-image-container {
        display: none;
    }

    .stats-container {
        flex-direction: row;
        /* Keep horizontal */
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 25px;
    }

    .stat-number {
        font-size: 24px;
        /* Smaller font */
    }

    .stat-label {
        font-size: 11px;
    }

    .plane-1,
    .plane-2 {
        width: 120px;
        height: 90px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-image {
        height: 300px;
    }

    .cta-button {
        font-size: 14px;
        padding: 14px 24px;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    position: relative;
    padding: 100px 0;
    background: var(--color-blanco);
    text-align: center;
    overflow: hidden;
}

.features-header {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-negro);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-negro);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--color-blanco);
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Sombra suave como en la imagen */
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.icon-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-azul);
    /* Azul para títulos de tarjeta */
    margin-bottom: 15px;
}

.card-description {
    font-size: 14px;
    color: var(--color-negro);
    line-height: 1.6;
}

.decorative-dots {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 1;
    opacity: 0.6;
}

/* Responsive Features */
@media screen and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:nth-child(3) {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
        /* Reset margin from tablet view */
    }

    .section-title {
        font-size: 28px;
    }

    .decorative-dots {
        display: none;
    }
}

/* ===== EXCELLENCE SECTION ===== */
.excellence-section {
    padding: 100px 0;
    background: #f8fcfd;
    /* Very subtle background color */
    overflow: hidden;
}

.excellence-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.excellence-left {
    padding-right: 20px;
}

.excellence-left .section-title {
    margin-bottom: 50px;
    text-align: left;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.info-icon-placeholder {
    min-width: 60px;
    height: 60px;
    background: #e1e8ef;
    border-radius: 12px;
}

.info-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-azul);
    margin-bottom: 10px;
}

.info-description {
    font-size: 15px;
    color: var(--color-negro);
    line-height: 1.6;
}

/* Pyramid Carousel */
.excellence-right {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-shape-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    object-fit: contain;
}

.pyramid-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel-item {
    position: absolute;
    width: 240px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ddd;
}

.carousel-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-negro);
    background: #ccc;
    font-weight: bold;
}

/* Carousel Positions */
/* Pos 1: Top Right */
.carousel-item.pos-1 {
    top: 5%;
    right: 5%;
    z-index: 3;
    transform: scale(1);
}

/* Pos 2: Bottom Left */
.carousel-item.pos-2 {
    top: 45%;
    left: 5%;
    z-index: 3;
    transform: scale(1);
}

/* Pos 3: Bottom Right */
.carousel-item.pos-3 {
    top: 60%;
    right: 15%;
    z-index: 4;
    /* Front most */
    transform: scale(1.1);
}

@media screen and (max-width: 1024px) {
    .excellence-content {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .excellence-right {
        height: 400px;
    }

    .carousel-item {
        width: 200px;
        height: 140px;
    }
}

@media screen and (max-width: 480px) {
    .excellence-right {
        height: 350px;
    }

    .carousel-item {
        width: 160px;
        height: 110px;
    }


}

/* Image Styling Updates */
.info-icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 0;
    background: var(--color-blanco);
}

.text-center {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    background: #eee;
    /* Fallback */
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    text-align: left;
}

.service-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-azul);
    /* Azul específico del diseño */
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: black;
    line-height: 1.6;
}

.services-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-ver-todos {
    padding: 15px 40px;
    background: #F29E38;
    /* Color naranja botones */
    color: var(--color-blanco);
    border: none;
    border-radius: 50px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-ver-todos:hover {
    background: #e08b2b;
    transform: scale(1.05);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--color-blanco);
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.testimonials-left .section-title {
    font-size: 42px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--color-negro);
}

.testimonials-right {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    height: 300px;
    /* Altura fija para el stack vertical */
}

.testimonial-stack-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-card {
    position: absolute;
    top: 50%;
    left: 0;
    width: 85%;
    padding: 40px 30px 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    z-index: 1;
}

/* Estado Activo (Tarjeta Azul) */
.testimonial-card.active {
    background: #2E578C;
    /* Azul oscuro */
    color: var(--color-blanco);
    z-index: 3;
    opacity: 1;
    top: 50%;
    /* Centrada */
    transform: translateY(-50%) scale(1);
    box-shadow: 0 15px 30px rgba(46, 87, 140, 0.3);
}

.testimonial-card.active .client-name,
.testimonial-card.active .client-location,
.testimonial-card.active p {
    color: var(--color-blanco);
}

/* Estado Siguiente (Tarjeta Fondo Claro Debajo) */
.testimonial-card.next {
    top: 65%;
    /* Desplazada hacia abajo */
    z-index: 2;
    opacity: 0.6;
    background: #fdfdfd;
    border: 1px solid #eee;
    transform: translateY(-50%) scale(0.95);
}

.profile-pic-container {
    position: absolute;
    top: -25px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    /* Borde blanco para resaltar */
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.client-name {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 2px;
    color: var(--color-negro);
}

.client-location {
    font-size: 12px;
    color: #777;
    display: block;
}

.testimonial-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: var(--color-azul);
    background: #f0f4f8;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(3) {
        grid-column: span 2;
    }

    .testimonials-wrapper {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .testimonials-left {
        text-align: center;
    }

    .testimonial-dots {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(3) {
        grid-column: auto;
    }

    .testimonials-right {
        flex-direction: column;
        height: auto;
        min-height: 400px;
    }

    .testimonial-card {
        width: 100%;
        position: relative;
        top: 0 !important;
        left: 0;
        transform: none !important;
        display: none;
        opacity: 0;
    }

    .testimonial-card.active {
        display: block;
        opacity: 1;
    }

    .testimonial-card.next {
        display: none;
    }

    .testimonial-controls {
        flex-direction: row;
        margin-top: 20px;
    }
}





.service-card:hover {
    transform: translateY(-5px);
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    background: #eee;
    /* Fallback */
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    text-align: left;
}

.service-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-azul);
    /* Azul específico del diseño */
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: black;
    line-height: 1.6;
}

.services-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-ver-todos {
    padding: 15px 40px;
    background: #F29E38;
    /* Color naranja botones */
    color: var(--color-blanco);
    border: none;
    border-radius: 50px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-ver-todos:hover {
    background: #e08b2b;
    transform: scale(1.05);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--color-blanco);
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.testimonials-left .section-title {
    font-size: 42px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--color-negro);
}

.testimonials-right {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    height: 300px;
    /* Altura fija para el stack vertical */
}

.testimonial-stack-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-card {
    position: absolute;
    top: 50%;
    left: 0;
    width: 85%;
    padding: 40px 30px 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    z-index: 1;
}

/* Estado Activo (Tarjeta Azul) */
.testimonial-card.active {
    background: #2E578C;
    /* Azul oscuro */
    color: var(--color-blanco);
    z-index: 3;
    opacity: 1;
    top: 50%;
    /* Centrada */
    transform: translateY(-50%) scale(1);
    box-shadow: 0 15px 30px rgba(46, 87, 140, 0.3);
}

.testimonial-card.active .client-name,
.testimonial-card.active .client-location,
.testimonial-card.active p {
    color: var(--color-blanco);
}

/* Estado Siguiente (Tarjeta Fondo Claro Debajo) */
.testimonial-card.next {
    top: 65%;
    /* Desplazada hacia abajo */
    z-index: 2;
    opacity: 0.6;
    background: #fdfdfd;
    border: 1px solid #eee;
    transform: translateY(-50%) scale(0.95);
}

.profile-pic-container {
    position: absolute;
    top: -25px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    /* Borde blanco para resaltar */
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.client-name {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 2px;
    color: var(--color-negro);
}

.client-location {
    font-size: 12px;
    color: #777;
    display: block;
}

.testimonial-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: var(--color-azul);
    background: #f0f4f8;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(3) {
        grid-column: span 2;
    }

    .testimonials-wrapper {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .testimonials-left {
        text-align: center;
    }

    .testimonial-dots {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(3) {
        grid-column: auto;
    }

    .testimonials-right {
        flex-direction: column;
        height: auto;
        min-height: 400px;
    }

    .testimonial-card {
        width: 100%;
        position: relative;
        top: 0 !important;
        left: 0;
        transform: none !important;
        display: none;
        opacity: 0;
    }

    .testimonial-card.active {
        display: block;
        opacity: 1;
    }

    .testimonial-card.next {
        display: none;
    }

    .testimonial-controls {
        flex-direction: row;
        margin-top: 20px;
    }
}

/* ===== PARTNERS SECTION (SCROLL INFINITO) ===== */
.partners-section {
    padding: 60px 0 100px;
    background: var(--color-blanco);
    overflow: hidden;
}

.partners-carousel {
    max-width: 1000px;
    margin: 50px auto 0;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 80px;
    align-items: center;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* Duplicar el ancho para seamless loop */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* -50% del ancho total del track (todos los items + duplicados) */
}

/* Pause on hover */
.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

.partner-logo {
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}


/* ===== CTA TRANSFORMATION SECTION ===== */
.cta-transform-section {
    padding: 0 0 100px;
    background: var(--color-blanco);
}

.cta-transform-wrapper {
    position: relative;
    background: #fcfdff;
    /* Fondo muy claro, casi blanco */
    background: linear-gradient(135deg, #f9fbff 0%, #f4f8ff 100%);
    border-radius: 40px;
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 87, 140, 0.05);
    /* Sombra suave azulada */
}

/* Decoraciones espiral/ondas */
.decoration-svg {
    position: absolute;
    width: 400px;
    /* Ajustar tamaño según SVG */
    opacity: 0.05;
    /* Muy sutil */
    z-index: 1;
    pointer-events: none;
}

.left-decoration {
    top: -50px;
    left: -50px;
    transform: rotate(180deg);
}

.right-decoration {
    bottom: -100px;
    right: -50px;
    width: 500px;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.cta-title {
    font-size: 38px;
    font-weight: var(--font-weight-bold);
    color: var(--color-negro);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text {
    font-size: 16px;
    color: black;
    line-height: 1.6;
    max-width: 90%;
}

.cta-action {
    position: relative;
    z-index: 2;
}

.btn-cta-orange {
    padding: 18px 40px;
    background: #F29E38;
    color: var(--color-blanco);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(242, 158, 56, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-orange:hover {
    background: #e08b2b;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(242, 158, 56, 0.4);
}

/* Icono Flotante */
.floating-icon-wrapper {
    position: absolute;
    top: 30px;
    right: 80px;
    animation: floatIcon 4s ease-in-out infinite;
    z-index: 3;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #6a6aff;
    /* Tono morado/azul vibrante según imagen */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(106, 106, 255, 0.3);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .cta-transform-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
        gap: 40px;
    }

    .cta-content {
        max-width: 100%;
        margin-bottom: 0;
    }

    .cta-text {
        margin: 0 auto;
    }

    .floating-icon-wrapper {
        top: 20px;
        right: 20px;
        transform: scale(0.8);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #e8eef1;
    /* Color gris suave de la imagen */
    padding: 80px 0 30px;
    font-size: 14px;
    color: #4a5a6a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 70px;
    /* Ajustar según logo real */
    width: auto;
    display: block;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    /* Placeholder styles until icons are added */
    /* border: 1px solid #ccc;  Opcional placeholder visual */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-title {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-negro);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #556b82;
    /* Azul grisáceo */
    transition: color 0.3s ease;
    font-weight: var(--font-weight-medium);
}

.footer-links a:hover {
    color: var(--color-azul);
    text-decoration: underline;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px !important;
    line-height: 1.5;
}

.contact-info span {
    color: #556b82;
}

.footer-bottom {
    border-top: 1px solid #ccd6e0;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #8898aa;
}

/* Footer Work Button */
.footer-work-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin-top: 20px;
    background-color: var(--color-azul-oscuro);
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(26, 58, 95, 0.2);
}

.footer-work-btn:hover {
    background-color: var(--color-azul);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 58, 95, 0.3);
}

/* Footer Responsive */
@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media screen and (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-logo img {
        margin: 0 auto 25px;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-info {
        justify-content: center;
    }

    .footer-work-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
    }
}

@media screen and (max-width: 768px) {
    .partner-logo {
        width: 100px;
        height: 50px;
    }

    .cta-title {
        font-size: 28px;
    }

    .btn-cta-orange {
        width: 100%;
        padding: 15px 20px;
    }

    .floating-icon-wrapper {
        display: none;
        /* Ocultar en móviles pequeños si molesta */
    }
}

/* Google Translate Customization */
.language-selector {
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
}

#google_translate_element {
    display: inline-block;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    font-size: 14px !important;
    font-family: var(--font-family) !important;
    padding: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: var(--color-negro) !important;
    padding-right: 5px !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    border-left: none !important;
    color: #444 !important;
    font-weight: 500 !important;
}

.goog-te-gadget-simple .goog-te-menu-value img {
    display: none !important;
    /* Hide Google Icon */
}

/* Hide the top banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Hover effect */
.goog-te-gadget-simple:hover .goog-te-menu-value span {
    color: var(--color-azul) !important;
}

/* ===== ACCESSIBILITY PANEL ===== */
.accessibility-panel {
    position: absolute;
    top: 70px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    z-index: 1000;
    border: 1px solid #eee;
}

.accessibility-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.acc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.acc-panel-header h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-negro);
}

.acc-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

.acc-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.acc-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    font-size: 12px;
    color: black;
    text-align: center;
}

.acc-option:hover,
.acc-option.active {
    background: #eef2ff;
    border-color: var(--color-azul);
    color: var(--color-azul);
}

.acc-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.acc-reset {
    grid-column: span 2;
    padding: 10px;
    background: #fff0f0;
    color: #e74c3c;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
}

.acc-reset:hover {
    background: #ffe5e5;
}

/* Accessibility Modes Styles */
html.acc-grayscale {
    filter: grayscale(100%);
}

html.acc-high-contrast {
    filter: contrast(150%);
}

html.acc-high-contrast body {
    background: #000 !important;
    color: #fff !important;
}

html.acc-high-contrast * {
    background-color: #000 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

html.acc-high-contrast img {
    filter: grayscale(100%) contrast(120%);
}

html.acc-highlight-links a,
html.acc-highlight-links button {
    text-decoration: underline !important;
    font-weight: bold !important;
    outline: 2px solid yellow !important;
}

html.acc-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.5px !important;
}

/* ===== ABOUT US PAGE ===== */
.about-hero {
    padding: 120px 40px;
    /* Account for fixed header */
}

.about-hero-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    /* Box shadow to match the clean look slightly? Optional */
}

.about-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    /* Light overlay to contrast with black text */
    backdrop-filter: blur(4px);
    /* Soften background details */
}

.about-hero-title {
    color: var(--color-negro);
    font-size: 40px;
    font-weight: 800;
    /* Extra bold */
    text-align: center;
    max-width: 800px;
    line-height: 1.2;
    /* Glow effect for readability */
}

@media screen and (max-width: 768px) {
    .about-hero-title {
        font-size: 32px;
        padding: 0 20px;
    }

    .about-hero-wrapper {
        height: 350px;
    }

    .about-hero-wrapper {
        height: 350px;
    }
}

/* Services Hero Specifics */
.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.services-hero-title {
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    line-height: 1.1;
    text-align: left;
}

.services-hero-subtitle {
    color: white;
    font-size: 18px;
    max-width: 700px;
    line-height: 1.6;
    text-align: left;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .services-hero-overlay {
        padding: 30px;
    }

    .services-hero-title {
        font-size: 32px;
    }

    .services-hero-subtitle {
        font-size: 16px;
    }
}

/* About Content Styles */
.about-content {
    padding: 100px 0;
    background: var(--color-blanco);
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.about-row:last-child {
    margin-bottom: 0;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: black;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-negro);
    margin-bottom: 20px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.text-green {
    color: var(--color-verde);
    font-weight: 800;
    /* Extra bold */
    font-size: 28px;
    margin-top: 10px;
}

.centered-title,
.text-center {
    text-align: center;
}

/* Centering the content in the second row specifically */
.about-row.reverse .about-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-width: 1024px) {
    .about-row {
        gap: 40px;
    }

    .about-text h2 {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .about-row {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-row.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-image-wrapper {
        height: 300px;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: var(--color-blanco);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pillar-card {
    background: #fff;
    border: 5px solid var(--color-azul);
    /* Blue Border */
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
}

.pillar-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    /* Center the icon */
}

.pillar-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pillar-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-verde);
    margin-bottom: 15px;
}

.pillar-text {
    font-size: 14px;
    color: black;
    line-height: 1.6;
}

/* Mission Vision Section */
.mission-vision-section {
    padding: 60px 0 100px;
    background: var(--color-blanco);
}

.mission-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-content {
    background: #E6F4EA;
    /* Light Green Background */
    border-radius: 40px 100px 40px 40px;
    /* Unique rounding as in design */
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative lines pattern simulation (Optional) */
.mission-content::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.mission-item {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.mission-item:last-child {
    margin-bottom: 0;
}

.mission-title {
    font-size: 24px;
    font-weight: 800;
    color: black;
    margin-bottom: 15px;
}

.mission-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.mission-image-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 50px;
    /* Ensure icon fits well */
}

/* Responsive Styles for New Sections */
@media screen and (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-card:nth-child(3) {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .mission-wrapper {
        padding: 0;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

    .mission-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-content {
        border-radius: 30px;
    }


}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-section .section-header {
    margin-bottom: 60px;
}

.text-green.uppercase {
    color: var(--color-verde);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left Column */
.contact-column-title {
    font-size: 28px;
    font-weight: 800;
    color: black;
    margin-bottom: 40px;
    /* font-family: serif; */
    /* Simulate the serif font from design if needed, or keep sans */
}

.contact-details {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    object-fit: contain;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text a {
    color: var(--color-azul);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    margin-bottom: 5px;
}

.contact-text span {
    color: #444;
    font-size: 14px;
}

.socials-title {
    font-size: 20px;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
    /* font-family: serif; */
}

.social-icons-row {
    display: flex;
    gap: 20px;
}

.social-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.1);
}

/* Right Column: Form */
.contact-form-column .contact-column-title {
    margin-bottom: 20px;

}

.contact-form-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 10px;
    /* Slight styling for the card */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fdfdfd;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-azul);
    background: #fff;
}

.btn-submit {
    width: 100%;
    background: var(--color-azul);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #152e4d;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info-column {
        order: 2;
        /* Put info below form on mobile if preferred, or remove this to keep stacked */
        width: 100%;
    }

    .contact-column-title {
        text-align: center;
    }

    .contact-item {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .contact-text {
        flex: 1;
        min-width: 0;
    }

    .contact-text a {
        font-size: 16px;
        word-break: break-word;
    }

    .contact-socials {
        text-align: center;
    }

    .social-icons-row {
        justify-content: center;
    }
}

/* Location Section */
.location-section {
    padding: 60px 0 100px;
    /* background: #f9f9f9; */
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    /* border: 2px solid #fff; */
}

.schedule-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--color-naranja);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.schedule-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: 15px;
}

.schedule-text {
    font-size: 18px;
    color: var(--color-blanco);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-day {
    font-weight: 600;
}

.address-text {
    font-size: 16px;
    color: var(--color-blanco);
    margin-top: 20px;
    border-top: 1px solid var(--color-blanco);
    padding-top: 15px;
}

/* Specialties Section */
.specialties-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.specialties-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--color-negro);
    font-size: 1.1rem;
}

/* Filter Buttons */
.filter-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 50px;
    padding-bottom: 10px;
    /* Hide scrollbar visually but keep functionality implies removing it via pseudo element or just keeping subtle */
}

.filter-wrapper::-webkit-scrollbar {
    height: 4px;
}

.filter-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.filter-controls {
    display: flex;
    justify-content: flex-start;
    /* Start alignment for scrolling */
    gap: 15px;
    min-width: max-content;
    /* Ensure it expands */
    padding: 0 20px;
    /* Padding for edges */
}

@media (min-width: 992px) {
    .filter-controls {
        justify-content: center;
    }
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #eee;
    background-color: #fff;
    color: var(--color-negro);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent wrapping */
}

.filter-btn:hover {
    background-color: #f0f2f5;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--color-verde);
    color: #fff;
    border-color: var(--color-verde);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Services Grid Mobile */
@media screen and (max-width: 768px) {
    .specialties-section .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        display: grid !important;
        /* Override scroll-reveal animation */
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .specialties-section .services-grid.scroll-reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .specialties-section .service-card {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Also force visibility on section header and filter wrapper */
    .specialties-section .section-header.scroll-reveal,
    .specialties-section .filter-wrapper.scroll-reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

@media screen and (max-width: 480px) {
    .specialties-section .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .specialties-section .service-card {
        padding: 20px;
    }
}

/* Service Card */
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}


/* Link Button style update */
.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-naranja);
    text-decoration: none;
    margin-top: auto;
    /* Push to bottom */
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.service-link:hover:after {
    transform: translateX(5px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: var(--color-verde-claro);
    /* Fallback */
    background: linear-gradient(135deg, var(--color-verde) 0%, var(--color-azul) 100%);
    padding: 40px 30px;
    color: white;
    text-align: center;
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: var(--color-negro);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 18px;
    color: var(--color-verde);
    margin-bottom: 15px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.modal-body ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: var(--color-negro);
}

.modal-body ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-verde);
    font-weight: bold;
}

/* Hide helper class for filtering */
.service-card.hidden {
    display: none;
}

/* ===== SERVICES CAROUSEL SECTION ===== */
.services-carousel-section {
    padding: 60px 0;
    background: #fff;
}

/* Hide carousel section on mobile */
@media screen and (max-width: 768px) {
    .services-carousel-section {
        display: none;
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    width: 100%;
    /* Transition added for future JS implementation */
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 450px;
    /* Fixed height for consistency */
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 50%;
    right: 5%;
    /* Positioned to the right as per image */
    transform: translateY(-50%);
    width: 45%;
    padding: 30px;
    /* Gradient blue overlay background */
    background: linear-gradient(135deg, rgba(20, 50, 90, 0.9), rgba(0, 150, 200, 0.8));
    color: #fff;
    border-radius: 15px 0 15px 15px;
    /* Styled corners */
    backdrop-filter: blur(5px);
}

.carousel-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.carousel-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.carousel-badge {
    display: inline-block;
    padding: 8px 15px;
    background: #ff5e78;
    /* Pink/Red color from image badge */
    color: white;
    font-weight: bold;
    border-radius: 20px;
    font-size: 14px;
}

/* Responsive Carousel */
@media screen and (max-width: 1024px) {
    .carousel-slide {
        height: 300px;
        min-height: unset;
    }

    .carousel-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 768px) {
    .carousel-slide {
        height: 220px;
        min-height: unset;
    }

    .carousel-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .carousel-overlay {
        position: relative;
        width: 90%;
        margin: -50px auto 20px;
        /* Pull up over image */
        transform: none;
        top: auto;
        right: auto;
        border-radius: 15px;
    }
}

/* ===== CTA READY TO START SECTION ===== */
.cta-start-section {
    padding: 80px 0;
    /* Green background similar to uploaded image */
    background-color: #88c488;
    overflow: hidden;
}

.cta-start-content .cta-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-start-content .cta-subtitle {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-orange {
    background-color: #f7941d;
    /* Orange color */
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-orange:hover {
    background-color: #e6830a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
    .cta-start-content .cta-title {
        font-size: 28px;
    }

    .cta-start-content .cta-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .btn-orange {
        padding: 12px 28px;
        font-size: 15px;
        width: auto;
        max-width: 90%;
    }
}

/* ===== GLOBAL RESPONSIVENESS ===== */
/* ===== GLOBAL RESPONSIVENESS ===== */
@media screen and (max-width: 1024px) {

    /* Header & Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease;
        z-index: 1000;
        padding: 20px;
        left: auto;
        transform: none;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 2001;
        position: relative;
        margin-left: 3px;
        /* Gap from language selector */
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Hero Sections */
    .about-hero,
    .services-hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 150px 0 60px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        max-width: 80%;
        height: auto;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.3;
    }

    .highlight-text::after {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Remove large floating bg elements on mobile for clarity */
    .hero-wave,
    .decorative-plane {
        display: none;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    /* Typography Adjustments */
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Services Grid - Single Column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Features Grid - Single Column */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:nth-child(3) {
        grid-column: auto;
        /* Reset column span for tablet/mobile to be consistent 1-col or 2-col depending on grid */
    }

    /* Carousel Adjustments */
    .carousel-slide {
        height: auto;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }

    .carousel-image {
        height: 250px;
        width: 100%;
    }

    .carousel-overlay {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        transform: none;
        margin: -20px 0 0 0;
        background: #1a3a5f;
        /* Solid background for readability */
        border-radius: 0 0 20px 20px;
        padding: 30px 20px;
    }

    /* Footer - Stacked */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .brand-column,
    .footer-column {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

/* Fix for Filter Buttons Scrolling on Mobile */
.filter-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 35px;
    scrollbar-width: none;
    /* Firefox */
}

.filter-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Coming Soon Section */
.coming-soon-section {
    padding: 60px 0;
    background-color: var(--color-blanco);
}

.coming-soon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.coming-soon-text h3 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-azul);
    text-transform: uppercase;
    text-align: center;
}

.coming-soon-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    /* Increased for better visibility */
}

@media (max-width: 768px) {
    .coming-soon-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .coming-soon-text h2 {
        font-size: 28px;
    }
}

/* ===== LEGAL PAGES STYLES ===== */
.legal-page-content {
    padding-top: 120px;
    /* Offset for fixed header */
    padding-bottom: 80px;
    background-color: var(--color-blanco);
}

.page-title {
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    color: var(--color-azul);
    margin-bottom: 40px;
    text-align: center;
}

.legal-section {
    margin-bottom: 50px;
    max-width: 900px;
    /* Improve readability line length */
    margin-left: auto;
    margin-right: auto;
}

.legal-section h2 {
    font-size: 28px;
    color: var(--color-azul-oscuro);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-verde);
    padding-bottom: 10px;
    display: inline-block;
}

.legal-section h3 {
    font-size: 22px;
    color: var(--color-negro);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-section p {
    font-size: 16px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-section li {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
    list-style-type: disc;
}

.legal-section strong {
    font-weight: var(--font-weight-bold);
    color: var(--color-negro);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .legal-page-content {
        padding-top: 100px;
    }

    .page-title {
        font-size: 32px;
    }

    .legal-section h2 {
        font-size: 24px;
    }
}

/* ===== FAQ PAGE STYLES ===== */
.faq-page-content {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.faq-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 30px auto 0;
}

.faq-search-input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--color-azul);
    box-shadow: 0 8px 25px rgba(46, 87, 140, 0.15);
}

.faq-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-azul);
    font-size: 18px;
    cursor: pointer;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--color-blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--color-azul);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: var(--font-weight-medium);
    color: var(--color-negro);
    font-family: var(--font-family);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-azul);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--color-azul);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 25px;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    padding-top: 15px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .faq-page-content {
        padding-top: 120px;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

}

/* Mobile Only Utility */
.mobile-only {
    display: none;
}

@media screen and (max-width: 991px) {
    .mobile-only {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .mobile-only .nav-link {
        display: inline-block;
        color: var(--color-azul);
        font-weight: 600;
        padding: 10px 0;
        font-size: 16px;
    }
}

/* Aggressive Fixes for Mobile Menu */
@media screen and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 20000 !important;
    }

    .nav-menu.active {
        display: flex !important;
        right: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Tablet Landscape Specific Fixes */
@media screen and (min-width: 769px) and (max-width: 1024px) {

    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }

    .feature-card:nth-child(3) {
        grid-column: auto !important;
    }
}