/* Estilos Generales */
nav.nav-bg-active .logo img {
    filter: invert(1) brightness(2);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
    padding-top: 70px; /* Espacio para el nav fijo. Ajustar si la altura del nav cambia. */
}

html {
    scroll-behavior: smooth;
}

/* Contenedor Principal de la Landing */
.landing-container {
    margin-left: 0;
    margin-right: 0;
    background-color: #fff; /* Fondo blanco para la parte principal de la landing */
    overflow: hidden;
}

/* Navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo inicial del nav */
    backdrop-filter: blur(8px);
    padding: 10px 25px;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    height: 70px;
}

nav.nav-bg-active { /* Cuando el menú móvil está abierto */
    background-color: #2c3e50;
    backdrop-filter: none;
}

/* Estilos para el Logo con Eslogan */
.logo {
    display: flex;
    align-items: center;
    z-index: 101;
    color: #2c3e50;
}

.logo img {
    height: 40px;
    margin-right: 8px;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main-text {
    font-size: 1.5em;
    font-weight: 700;
}

.logo-slogan {
    font-size: 1.15em;
    font-weight: 500;
    opacity: 0.8;
    margin-top: -2px;
}


nav.nav-bg-active .logo-main-text,
nav.nav-bg-active .logo-slogan {
    color: white;
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 28px;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
    padding: 5px 0;
}

nav.nav-bg-active ul li a {
    color: white;
    opacity: 0.9;
}

nav ul li a:hover,
nav.nav-bg-active ul li a:hover {
    color: #e67e22;
    opacity: 1;
}


.nav-button {
    background-color: #e67e22;
    color: white;
    padding: 9px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    border: none;
    height: auto;
}

.nav-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.nav-button .arrow {
    margin-left: 8px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}
.nav-button:hover .arrow {
    transform: translateX(3px);
}

/* Menú Hamburguesa (Móvil) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    /* order: 3; No es necesario si el HTML está ordenado: logo, ul, toggle, button y se ocultan ul/button */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
nav.nav-bg-active .menu-toggle .bar {
    background-color: white;
}

/* Animación X del menú hamburguesa */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Sección Hero */
.hero {
    height: calc(100vh - 70px);
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25)), url('https://a0.muscache.com/im/pictures/miso/Hosting-48225671/original/5c557a2b-a236-4daf-8b17-6b4003c9b8d8.jpeg?im_w=1200');
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25)), url('https://static.tripzilla.com/thumb/7/5/170357_800x.jpg'); */
    /* background-image: linear-gradient(rg⁄ba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25)), url('https://images.unsplash.com/photo-1599777560450-e462cffc5368'); */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

/* Elementos Inferiores del Hero */
.hero-bottom-elements {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 30px;
    flex-shrink: 0;
}

.hero-bottom-left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
    flex-basis: 60%;
}

.hero-main-text {
    animation: fadeInText 1s 0.2s ease-out forwards;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-main-text h1 {
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-main-text p {
    font-size: 1.1em;
    margin-bottom: 0;
    line-height: 1.65;
    opacity: 0.9;
}

/* Formulario de Email */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 450px;
}

.email-form input[type="email"] {
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95em;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
}
.email-form input[type="email"]::placeholder {
    color: #777;
}

.email-form button[type="submit"] {
    background-color: #e67e22;
    color: white;
    padding: 15px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.email-form button[type="submit"]:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Sección de Estadísticas */
.stats-section {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 18px 22px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 25px;
    z-index: 10;
    animation: fadeInStats 0.8s 0.5s ease-out forwards;
    align-self: flex-end;
}

@keyframes fadeInStats {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 1.7em;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.stat-item .text {
    font-size: 0.8em;
    color: #566573;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popups de Notificación */
.popup {
    position: fixed;
    top: 85px;
    right: 20px;
    padding: 16px 20px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1001;
    display: none;
    font-size: 0.9em;
    min-width: 280px;
    text-align: center;
}
.popup-success {
    background-color: #2ecc71;
}
.popup-error {
    background-color: #e74c3c;
}

/* Secciones de Contenido Adicional */
.content-section {
    padding: 70px 40px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}
.content-section:last-of-type {
    padding-bottom: 80px;
}

.content-section h2 {
    font-size: 2.6em;
    margin-bottom: 25px;
    color: #333;
}

/* Restaurar el párrafo introductorio de las secciones que no sean "Quiénes Somos" */
.content-section > p:first-of-type {
    font-size: 1.15em;
    line-height: 1.75;
    max-width: 750px;
    margin-bottom: 50px;
    color: #555;
}


/* Colores de fondo para secciones */
#services { background-color: #f9f9f9; }
#automation { background-color: #eef3f7; }
#about {
    background-color: #f9f9f9;
    /* Remover estilos de tarjeta y flex para la sección #about */
    padding: 70px 40px; /* Restaurar padding normal para centrar contenido */
    text-align: center; /* Asegura que el contenido se centre */
    align-items: center; /* Asegura que los hijos estén centrados horizontalmente */
}
#contact { background-color: #eef3f7; }
/* #contact { background-color: #eef7f0; } */


/* Estilos para la sección "Quiénes Somos" */
.about-container {
    /* Quitar display: flex y related styles */
    display: block; /* Vuelve al comportamiento de bloque normal */
    width: 100%;
    max-width: 900px; /* Ancho máximo para el contenido, incluida la imagen */
    min-height: auto;
    border-radius: 0; /* Quitar bordes redondeados */
    box-shadow: none; /* Quitar sombra */
    background-color: transparent; /* Quitar color de fondo del contenedor, se lo da la sección #about */
    margin-top: 30px;
    margin-left: auto; /* Centrar el contenedor */
    margin-right: auto; /* Centrar el contenedor */
}

.about-image {
    /* Ajustar para que la imagen no ocupe 30% sino un ancho definido y centrado */
    width: 100%; /* Ocupa el 100% del contenedor about-container */
    max-width: 600px; /* Ancho máximo de la imagen */
    height: 350px; /* Altura fija para la imagen */
    margin: 0 auto 40px auto; /* Centrar y agregar margen inferior */
    background-color: #f0f0f0; /* Fondo de fallback */
    border-radius: 8px; /* Bordes redondeados para la imagen */
    overflow: hidden; /* Asegura que la imagen se adapte a los bordes redondeados */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Sombra para la imagen */
    display: block; /* Asegura que margin: auto funcione */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
    display: block;
}

.about-content {
    /* Ya no es flex item, solo es un contenedor de texto */
    padding: 0; /* Eliminar padding, se manejará con el padding de la sección */
    text-align: center; /* Centrar el texto */
}

.about-content p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 750px; /* Limita el ancho del texto para mejor legibilidad */
    margin-left: auto; /* Centrar el párrafo */
    margin-right: auto; /* Centrar el párrafo */
    text-align: center; /* Asegura que el texto esté centrado */
}

.about-content p:last-child {
    margin-bottom: 0;
}


/* Formulario de Contacto (en sección #contact) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 550px;
    background-color: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    box-sizing: border-box;
}
.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}
.contact-form button {
    background-color: #2c3e50;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #34495e;
}

/* --- Estilos para Tarjetas (Servicios y Automatismos) --- */

.pricing-cards-container,
.automation-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Incrementado para más espacio entre tarjetas */
    width: 100%;
    max-width: 1150px;
    margin-top: 20px;
}

.pricing-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    width: 320px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.automation-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    width: 320px;
    overflow: hidden;
    text-align: left; /* Alineación del texto para las cards de automatismos */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid #ddd; /* Borde de 2px para las cards de automatismos */
}

.pricing-card:hover,
.automation-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Específicos de Pricing Card */
.pricing-card-header {
    padding: 30px 20px 25px 20px;
    color: white;
}
.pricing-card-header.basic { background-color: #ffb74d; }
.pricing-card-header.pro { background-color: #66bb6a; }
.pricing-card-header.premium { background-color: #42a5f5; }

.pricing-card-price {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1;
}
.pricing-card-price span.term {
    font-size: 0.4em;
    font-weight: 500;
    display: block;
    opacity: 0.9;
    text-transform: uppercase;
    margin-top: 4px;
}
.pricing-card-title {
    font-size: 1.5em;
    margin-top: 10px;
    font-weight: 600;
}
.pricing-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pricing-card-features {
    list-style: none;
    padding-left: 25px;
    padding-right: 20px;
    text-align: left;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}
.pricing-card-features li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    /* border-bottom: 3px solid #898989; */
    border-bottom: 3px solid #2c3e505a;
}
.pricing-card-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.pricing-card-button {
    background-color: #555;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin-top: auto;
}
.pricing-card-button:hover {
    background-color: #333;
    transform: scale(1.03);
}
.pricing-card .ribbon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 110px;
    height: 110px;
    overflow: hidden;
    display: none;
}
.pricing-card.has-ribbon .ribbon {
    display: block;
}
.pricing-card .ribbon-text {
    position: absolute;
    display: block;
    width: 150px;
    padding: 6px 0;
    background-color: #e67e22;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg) translate(22px, -38px);
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

/* Específicos de Automation Card */
.automation-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #e9ecef;
    border-bottom: 1px solid #eee;
}
.automation-card-content {
    padding: 20px;
    flex-grow: 1;
}
.automation-card-content h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}
.automation-card-content p {
    font-size: 0.88em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.automation-disclaimer {
    font-size: 0.85em;
    color: #777;
    margin-top: 40px;
    max-width: 750px;
}

/* --- Media Queries --- */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    body {
        padding-top: 60px;
    }
    nav {
        height: 60px;
        padding: 10px 20px;
    }
    .logo-main-text { font-size: 1.4em; }
    .logo-slogan { font-size: 1.1em; margin-top: -1px;}

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #34495e;
    }
    nav ul.nav-active { display: flex; }

    nav ul li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    nav ul li a {
        padding: 14px 20px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        color: white;
        opacity: 0.9;
        font-size: 1em;
    }
    nav ul li a:hover {
        background-color: #34495e;
        opacity: 1;
    }

    .menu-toggle {
        display: flex;
        /* order: -1;  REMOVED to allow natural order (logo left, toggle right) */
    }
    .nav-button { display: none; }

    .hero {
        height: auto;
        min-height: calc(100vh - 60px);
        padding: 20px;
        justify-content: center;
    }
    .hero-main-text h1 { font-size: 2.6em; }
    .hero-main-text p { font-size: 1em; }

    .hero-bottom-elements {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 30px;
    }
    .hero-bottom-left-column {
        align-items: center;
        text-align: center;
        max-width: 100%;
        flex-basis: auto;
    }
    .email-form {
        width: 90%;
        max-width: 400px;
    }
    .stats-section {
        width: auto;
        max-width: calc(100% - 40px);
        flex-direction: row;
        justify-content: space-around;
        margin-top: 0;
        align-self: center;
    }
    .content-section h2 { font-size: 2.2em; }
    .pricing-card, .automation-card {
        width: calc(50% - 20px);
        max-width: 330px;
    }
    /* Añadido para el espaciado entre tarjetas en tabletas */
    .automation-card {
        margin-bottom: 30px;
    }

    /* Estilos para "Quiénes Somos" en tablets */
    #about {
        padding: 50px 0; /* Restaurar un padding general para la sección */
        text-align: center; /* Centrar el título */
    }
    .about-container {
        flex-direction: column; /* Apilar imagen y texto */
        min-height: auto;
        width: 90%; /* Ajustar ancho para tablets */
        margin-top: 20px;
    }
    .about-image {
        flex: none; /* Resetear flex para que ocupe todo el ancho */
        width: 100%; /* Ocupa el 100% del ancho */
        max-width: 500px; /* Ancho máximo de la imagen en tablet */
        height: 250px; /* Altura fija para la imagen */
    }
    .about-content {
        padding: 30px;
        text-align: center; /* Centrar texto */
    }
    .about-content p {
        text-align: center; /* Centrar los párrafos */
    }
}

/* Móviles */
@media (max-width: 767px) {
    nav {
        padding: 10px 15px;
    }
    .logo-main-text { font-size: 1.3em; }
    .logo-slogan { font-size: 1.0em; margin-top: 0px;}
    .logo img { height: 26px; }

    .menu-toggle {
        margin-left: auto; /* Ensures it's pushed to the right, complementing justify-content: space-between on nav */
    }
    nav ul {
        top: 60px;
    }

    .hero { padding: 20px; padding-bottom: 30px; }
    .hero-main-text h1 { font-size: 2.1em; }
    .hero-main-text p { font-size: 0.95em; }

    .stats-section {
        gap: 15px;
        padding: 12px 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-item .number { font-size: 1.5em; }
    .stat-item .text { font-size: 0.75em; }

    .popup {
        top: 70px; right: 10px; left: 10px;
        width: auto; min-width: 0;
        font-size: 0.85em;
    }
    .content-section { padding: 50px 20px; }
    .content-section h2 { font-size: 1.9em; }
    .pricing-card, .automation-card {
        width: 85%;
        max-width: 300px;
    }
    /* Asegura el espaciado entre tarjetas en móviles */
    .automation-card {
        margin-bottom: 30px;
    }
    .contact-form { padding: 25px; }

    /* Estilos para "Quiénes Somos" en móviles */
    #about {
        padding: 40px 0; /* Reducir padding general */
    }
    .about-container {
        width: 95%; /* Ajustar ancho para móviles */
        margin-top: 15px;
    }
    .about-image {
        height: 200px; /* Reducir altura de la imagen */
        max-width: 100%; /* La imagen puede ocupar el 100% de su contenedor */
    }
    .about-content {
        padding: 25px; /* Reducir padding de contenido */
    }
    .about-content p {
        font-size: 0.95em; /* Reducir tamaño de fuente */
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    body { padding-top: 50px; }
    nav {
        height: 50px;
        padding: 8px 15px;
    }

    .logo-main-text { font-size: 1.2em; }
    .logo-slogan { font-size: 0.9em; margin-top: 0px;}
    .logo img { height: 24px; margin-right: 6px;}

    .menu-toggle {
        width: 24px;
        height: 20px;
    }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    nav ul {
        top: 50px;
    }
    nav ul li a {
        padding: 10px 15px;
        font-size: 0.9em;
    }


    .hero-main-text h1 { font-size: 1.8em; }
    .hero-main-text p { font-size: 0.9em; }
    .email-form input[type="email"], .email-form button[type="submit"] {
        width: 100%;
        font-size: 0.9em;
        padding: 12px;
        box-sizing: border-box;
    }
    .stats-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .pricing-card, .automation-card {
        width: 90%;
    }
    
    .content-section h2 { font-size: 1.7em; }
    .content-section > p:first-of-type { font-size: 1em; margin-bottom: 30px; }

    /* Estilos para "Quiénes Somos" en pantallas muy pequeñas */
    .about-image {
        height: 180px;
    }
    .about-content {
        padding: 20px;
    }
}

/* Ajustes para pantallas cortas pero anchas (ej. móvil en horizontal) */
@media (max-height: 500px) and (min-width: 768px) {
    .hero { padding-top: 15px; padding-bottom: 15px; min-height: auto; }
    .hero-main-text h1 { font-size: 2.2em; }
    .hero-main-text p { font-size: 0.95em; margin-bottom: 10px; }
    .hero-bottom-left-column { gap: 15px; }
    .email-form { gap: 8px; flex-direction: row; align-items: center; }
    .email-form input[type="email"]{ flex-grow: 1; }
    .email-form button[type="submit"] { padding: 12px 20px; font-size: 0.9em; }
    .hero-bottom-elements { padding-bottom: 15px; gap: 15px; flex-direction: row; align-items: flex-end; }
    .stats-section { padding: 10px 15px; gap: 15px; flex-direction: row; }
    .stat-item .number { font-size: 1.4em; }
    .stat-item .text { font-size: 0.7em; }

    nav {
        height: 50px;
        padding-top: 0;
        padding-bottom: 0;
    }
    body { padding-top: 50px; }
    nav ul { top: 50px; }
    .logo-main-text { font-size: 1.3em; }
    .logo-slogan { font-size: 1.0em; margin-top: -1px;}
    .logo img { height: 24px; }

    /* Ajustes para "Quiénes Somos" en pantallas horizontales de móvil */
    #about {
        padding: 20px 0;
    }
    .about-container {
        min-height: 250px; /* Reducir altura mínima */
    }
    .about-content {
        padding: 20px;
    }
    .about-content p {
        font-size: 0.9em;
    }
}
/* --- Footer --- */
.site-footer {
    background-color: #2c3e50;
    color: #f4f4f4;
    padding: 60px 40px 0 40px;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1150px;
    margin: 0 auto;
    padding-bottom: 30px;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
}

.footer-column p {
    font-size: 0.9em;
    line-height: 1.7;
    color: #bdc3c7;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #e67e22;
}


.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: white !important; /* Forzar color de texto */
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #34495e;
    margin-top: 30px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85em;
    color: #95a5a6;
}

.footer-bottom a {
    color: #95a5a6;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #bdc3c7;
    text-decoration: underline;
}

/* --- Footer Media Queries --- */
@media (max-width: 767px) {
    .site-footer {
        padding: 40px 20px 0 20px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
    .footer-column h4 {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-bottom {
        padding: 20px 10px; /* Más padding lateral para evitar que el texto toque los bordes */
    }
    .footer-bottom p {
        font-size: 0.8em;
    }
}
/* --- Estilos para Páginas de Contenido Legal --- */
.legal-content-section {
    padding: 120px 40px 80px 40px; /* Más padding superior para compensar el nav fijo */
    max-width: 850px;
    margin: 0 auto;
    background-color: #fff;
    min-height: calc(100vh - 280px); /* Asegura que el contenido empuje el footer hacia abajo */
}

.legal-content-section h1 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #e67e22;
    padding-bottom: 15px;
}

.legal-content-section h2 {
    font-size: 1.6em;
    color: #34495e;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content-section p, 
.legal-content-section li {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 15px;
}

.legal-content-section ul {
    list-style-type: disc;
    padding-left: 25px;
}

.legal-content-section strong {
    color: #333;
}

.legal-content-section .update-date {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 35px;
}

/* Media Query para páginas legales */
@media (max-width: 767px) {
    .legal-content-section {
        padding: 90px 20px 60px 20px;
    }
    .legal-content-section h1 {
        font-size: 2.2em;
    }
    .legal-content-section h2 {
        font-size: 1.4em;
    }
}
/* --- Estilos para la Página de FAQ --- */

.faq-container {
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.faq-container h2 {
    font-size: 1.8em;
    color: #34495e;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-top: 40px;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px 10px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: 300;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #e67e22;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fdfdfd;
}

.faq-answer p {
    padding: 20px 15px;
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
}