:root {
    --bg-color: #f8f9fa;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-color: #3b82f6;
    /* Azul moderno para banner */
    --accent-hover: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.05);
    /* Casi transparente para que se vea el video */
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Header (Glassmorphism, Fijo arriba)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.header-hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.logo .icon {
    font-size: 2rem;
}

/* Pestañas centrales (1, 2, 3) */
.center-nav {
    display: flex;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.center-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.center-nav a:hover,
.center-nav a.active {
    color: var(--accent-color);
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.3s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.center-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.center-nav a:hover::after,
.center-nav a.active::after {
    width: 100%;
}

/* Pestaña Derecha (Contacto) */
.btn-contact {
    text-decoration: none;
    background: white;
    color: var(--text-primary);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.btn-contact:hover,
.active-btn {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   Body / Main Content (Pantalla completa, Unida al header)
   ========================================================================== */
.main-content {
    /* El header es fijo, pero el section hero ocupará 100vh para que quede justo debajo y llene la pantalla */
}



/* Secciones continuas que llenan la pantalla */

.logo-img {
    width: 100px;
    /* Este es el tamaño visual que tendrá el logo */
    height: auto;
    /* Esto mantiene la proporción original automáticamente */
    display: block;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 2rem;
    /* padding top para compensar el fixed header */
    position: relative;
    width: 100%;
}



.content-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Hero Section (Parte 1 - Estilo Imagen 1) */
.hero-section {
    background: transparent;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 5rem;
    padding-top: 14rem;
}

.hero-content {
    max-width: 750px;
    /* Un poco más ancho para el nuevo texto */
    margin-top: 0;
    margin-bottom: 5rem;
    opacity: 0;
    animation: hero-fade-loop 19s infinite;
}

@keyframes hero-fade-loop {

    0%,
    47.36% {
        /* 0 a 9s invisible */
        opacity: 0;
        transform: translateY(30px);
        filter: blur(15px);
        /* Efecto de creándose desde cero */
    }

    63.15%,
    94.73% {
        /* 12s a 18s totalmente visible (toma 3 segundos en aparecer lentamente) */
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    100% {
        /* 19s fin del ciclo, desaparece */
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(10px);
    }
}

.hero-large-text {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    /* Azul marino oscuro */
    margin-top: 2rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #000;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 1);
}

.hero-content p {
    font-size: 1.2rem;
    color: #111;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 1);
}

/* Placeholders para futuras imágenes/videos (Estilo cruz/esfera de la imagen 1) */
.media-placeholder {
    position: relative;
    width: 280px;
    height: 250px;
    margin: 2rem auto;
    animation: float 6s ease-in-out infinite;
}

.element {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: inset 10px 10px 20px #cccccc,
        inset -10px -10px 20px #ffffff,
        20px 20px 60px rgba(0, 0, 0, 0.1),
        -20px -20px 60px #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
}

.element:hover {
    transform: scale(1.05);
}

.top-h {
    top: 0;
    left: 50%;
    margin-left: -70px;
    z-index: 2;
}

.bottom-o {
    bottom: 0;
    left: 0;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
}

.bottom-h {
    bottom: 0;
    right: 0;
}

.top-h::after,
.bottom-h::after {
    content: 'H';
    font-size: 5rem;
    color: #ef4444;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.bottom-o::after {
    content: '';
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #ef4444;
}

/* Partes 2 y 3 continuas */
.part-2 {
    background: #fdfdfd;
}

.part-3 {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Footer (Estilo Imagen 2)
   ========================================================================== */
.site-footer {
    background: #f4f6fa;
    /* Plomo para todo el footer */
}

.newsletter-wrapper {
    background: transparent;
    padding: 4rem 2rem 0 2rem;
    /* Quitamos el padding inferior para que el banner toque el fondo de abajo */
}

/* Banner de Suscripción Azul */
.newsletter-banner {
    background: #507bed;
    border-radius: 16px;
    margin: 0 auto;
    max-width: 1000px;
    padding: 2.5rem 3.5rem;
    /* Menor padding para reducir la altura general */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 10px 30px rgba(80, 123, 237, 0.2);
    position: relative;
    /* Añadido para anclar la imagen absoluta */
}

.banner-image {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.img-placeholder {
    position: absolute;
    width: 280px;
    /* Reducimos el ancho */
    height: 320px;
    /* Reducimos la altura */
    bottom: -50px;
    /* Al estar el padding inferior en 0, esto hace que sobresalga 50px sobre la zona blanca */
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    /* Blanco sólido para el cuadro 3D */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Sombra para resaltar sobre el fondo plomo/azul */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
    /* 👈 Esto recorta todo lo que salga del cuadro */
}

/* Imagen dentro del placeholder: ocupa todo el cuadro */
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta y centra la imagen para que llene sin deformarse */
    object-position: center top;
    /* Centra desde arriba para mostrar la parte principal */
    display: block;
}

.placeholder-text {
    color: #4b5563;
    /* Texto oscuro para que se lea sobre fondo blanco */
    font-weight: 600;
    font-size: 1.2rem;
}

.banner-content {
    flex: 1.2;
    max-width: 550px;
}

.banner-content h3 {
    font-size: 1.8rem;
    /* Letras más pequeñas para reducir la altura de la caja */
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.banner-content p {
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    /* Letras más pequeñas */
}

.footer-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.btn-footer-wa, .btn-footer-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-footer-wa {
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-footer-wa:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-footer-contact {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-footer-contact:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.banner-content small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 0.5rem;
}

.banner-content small a {
    color: white;
    text-decoration: underline;
}

/* Contenido Principal Footer */
.footer-main {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 4rem 6rem;
    border-bottom: 1px solid #e5e7eb;
    /* Línea separadora un poco más oscura para el fondo plomo */
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #111;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.brand-col p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: inline-block;
    color: #111;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0;
}

.social-links a:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-col p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-icon {
    color: #507bed;
    font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: transparent;
    /* Ya tiene el fondo plomo heredado */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.bottom-links {
    display: flex;
    gap: 2rem;
}

.bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.bottom-links a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Animaciones
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==========================================================================
   Responsive (Adaptación a pantallas más pequeñas)
   ========================================================================== */
@media (max-width: 1200px) {
    .site-header {
        padding: 1.5rem 2rem;
    }

    .footer-main {
        padding: 4rem 2rem;
    }

    .footer-bottom {
        padding: 2rem;
    }

    .newsletter-banner {
        margin: 0 2rem 4rem 2rem;
        padding: 3rem;
    }
}

@media (max-width: 992px) {
    .center-nav {
        position: static;
        transform: none;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .newsletter-banner {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .banner-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .center-nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .feature-section h2 {
        font-size: 2.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Sección Hormn (Parte 2 estilo imagen)
   ========================================================================== */
.hormn-section {
    padding: 4rem 4rem 4rem 4rem;
    /* Unida suavemente sin top padding */
    background: var(--bg-color);
    width: 100%;
}

.hormn-container {
    background: #6b8cbd;
    /* Azul suave inspirado en la imagen */
    border-radius: 32px;
    display: flex;
    padding: 4rem;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.hormn-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hormn-tag {
    background: white;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hormn-tag .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.hormn-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hormn-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hormn-desc {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
}

.hormn-list {
    list-style: none;
    margin-bottom: 3rem;
}

.hormn-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.check-icon {
    background: white;
    color: #6b8cbd;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.hormn-btn {
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.hormn-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.hormn-trustpilot {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tp-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
}

.star-icon {
    color: #00b67a;
    font-size: 1.5rem;
}

.stars-green {
    color: #00b67a;
    letter-spacing: 2px;
}

.hormn-trustpilot small {
    color: rgba(255, 255, 255, 0.8);
}

.hormn-right {
    flex: 1;
}

.hormn-grid {
    display: flex;
    gap: 1.5rem;
}

.grid-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hormn-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hormn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

.modal-image-container {
    width: 100%;
    text-align: center;
}

.modal-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.modal-text-container {
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: center;
}

.modal-text-container h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.modal-text-container p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-extra-data {
    padding: 1rem 2rem 2rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
}

.hormn-card.tall {
    height: 340px;
}

.hormn-card.short {
    height: 220px;
}

/* ==========================================================================
   Contacto Page Styles
   ========================================================================== */
.contact-hero {
    position: relative;
    padding: 12rem 5% 5rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.contact-header-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin-bottom: 3rem;
}

.contact-header-text h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.contact-header-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    background: white;
    width: 100%;
    max-width: 1200px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    padding: 4rem;
    border-right: 1px solid #f0f0f0;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(0, 112, 243, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form-container {
    flex: 1;
    padding: 4rem;
    background: #fafafa;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit-contact {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s, transform 0.3s;
    margin-top: 1rem;
}

.btn-submit-contact:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Map */
.map-section {
    width: 100%;
    margin-bottom: -5px;
    /* Removes gap between map and next section */
}

/* Farewell Section */
.farewell-section {
    position: relative;
    padding: 8rem 5%;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.farewell-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.farewell-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.farewell-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.farewell-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-whatsapp {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 10px 20px rgba(0, 112, 243, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
}

@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .contact-header-text h1 {
        font-size: 2.5rem;
    }

    .farewell-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Efectos de fondo para simular las imágenes */
}

.placeholder-1 {
    background: linear-gradient(to bottom, #d6d3d1 0%, #a8a29e 100%);
}

.placeholder-2 {
    background: linear-gradient(to bottom, #fed7aa 0%, #fdba74 100%);
}

.placeholder-3 {
    background: linear-gradient(to bottom, #9ca3af 0%, #6b7280 100%);
}

.placeholder-4 {
    background: linear-gradient(to bottom, #7dd3fc 0%, #38bdf8 100%);
}

.placeholder-5 {
    background: linear-gradient(to bottom, #fca5a5 0%, #f87171 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-percent {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.card-content p {
    font-size: 1.05rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
}

.card-content .highlight {
    color: #bfdbfe;
    /* Resaltado azul claro */
    font-weight: 700;
}

/* Fix responsive for hormn section */
@media (max-width: 1200px) {
    .hormn-container {
        padding: 3rem;
        gap: 2rem;
        flex-direction: column;
    }

    .hormn-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hormn-container {
        padding: 2rem;
        border-radius: 24px;
    }

    .hormn-title {
        font-size: 2.8rem;
    }

    .hormn-grid {
        flex-direction: column;
    }

    .hormn-section {
        padding: 0 1rem 2rem 1rem;
    }
}

/* ==========================================================================
   Sección 3: Tarjetas Expansibles (Estilo bancario)
   ========================================================================== */
.cards-section {
    padding: 8rem 4rem;
    background: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 1400px;
    margin-bottom: 4rem;
    gap: 4rem;
}

.cards-header-left {
    flex: 1.2;
}

.cards-tag {
    color: #65a30d;
    /* Verde lima oscuro para el tag */
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.cards-title {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.cards-title em {
    font-style: normal;
    color: #4b5563;
    position: relative;
}

.cards-title em::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #d9f99d;
    /* Subrayado sutil */
    z-index: -1;
}

.cards-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cards-header-right p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.cards-btn {
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 0.6rem 0.6rem 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.cards-btn:hover {
    background: #333;
}

.cards-btn .arrow {
    background: white;
    color: #1a1a1a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 1.2rem;
}

.expandable-cards-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 550px;
    gap: 1.5rem;
}

.exp-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.2, 1);
    /* Transición suave de flex-grow */
    flex: 1;
    /* Estado colapsado */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.exp-card.active {
    flex: 4;
    /* Estado expandido (ocupa 4 veces más que las otras) */
    cursor: default;
}

.exp-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

.exp-card:hover .exp-card-bg {
    transform: scale(1.02);
}

.bg-personal {
    background: linear-gradient(135deg, #e7cfc6 0%, #c1a299 100%);
}

.bg-business {
    background: linear-gradient(135deg, #f3b97b 0%, #c96b00 100%);
}

.bg-freelance {
    background: linear-gradient(135deg, #a4bc9f 0%, #465a31 100%);
}

.exp-card-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease 0.3s, visibility 0.5s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Texto arriba */
}

.exp-card.active .exp-card-content {
    opacity: 1;
    visibility: visible;
}

.exp-card-content h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.exp-card-desc {
    font-size: 1.15rem;
    max-width: 400px;
    margin-bottom: 3rem;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Placeholders flotantes (simulando los widgets del diseño) */
.exp-card-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 32px;
    width: 250px;
    margin-top: auto;
    /* Empujar hacia abajo */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.widget {
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.w-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fb923c;
    color: white;
    font-size: 2rem;
}

.w-box {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

/* Título vertical para tarjetas colapsadas */
.exp-card-title-vertical {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 2.2rem;
    font-weight: 400;
    color: white;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.exp-card.active .exp-card-title-vertical {
    opacity: 0;
    pointer-events: none;
}

/* Imagen flotante en tarjetas expandibles */
.exp-card-float-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    max-width: 420px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.6s ease 0.25s, visibility 0.6s ease 0.25s, transform 0.6s ease 0.25s;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.exp-card-float-img img {
    width: 100%;
    height: auto;
    max-height: 90%;
    object-fit: contain;
    object-position: center;
    opacity: 0.82;
    display: block;
}

.exp-card.active .exp-card-float-img {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive cards section */
@media (max-width: 1200px) {
    .cards-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .cards-header-right {
        align-items: flex-start;
        text-align: left;
    }

    .cards-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 900px) {
    .expandable-cards-container {
        flex-direction: column;
        height: auto;
    }

    .exp-card {
        height: 100px;
        transition: height 0.6s cubic-bezier(0.25, 1, 0.2, 1);
    }

    .exp-card.active {
        height: 500px;
        flex: none;
    }

    .exp-card-title-vertical {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Botón Siguiente en tarjetas expandibles */
.next-card-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.exp-card.active .next-card-btn {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    /* Retrasamos ligeramente la aparición para que quede bien con la expansión */
    transition-delay: 0.3s;
}

.next-card-btn:hover {
    background: #333;
    transform: scale(1.05);
}

/* ==========================================================================
   Sección Nuestros Clientes (Parte 4)
   ========================================================================== */
.clients-section {
    background: #ffffff;
    padding: 6rem 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.clients-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.clients-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.clients-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    margin-bottom: 2rem;
    /* Mask for fading edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: fit-content;
}

.marquee-reverse .marquee-group {
    animation-direction: reverse;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
    gap: 2.5rem;
    padding-right: 2.5rem;
    /* Same as gap to keep distance between groups */
    align-items: center;
    animation: marquee-scroll 35s linear infinite;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.client-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .clients-header h2 {
        font-size: 2.5rem;
    }

    .client-item {
        font-size: 1.2rem;
    }

    .client-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .marquee-group {
        gap: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ==========================================================================
   Página de Proyectos
   ========================================================================== */

/* Parte 1: Hero Proyectos */
.proyectos-hero {
    min-height: 50vh;
    padding-top: 10rem;
    text-align: center;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.proyectos-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 1rem;
}

.proyectos-hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn-explorar {
    background: #3b82f6;
    /* Accent color */
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.btn-explorar:hover {
    background: #2563eb;
}

.proyectos-botones {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.proyectos-botones.hidden {
    display: none;
}

.btn-categoria {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-categoria:hover {
    background: #3b82f6;
    color: white;
}

/* Parte 2: Video con Overlay */
.proyectos-video-container {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.proyectos-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.proyectos-video-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 8rem;
    box-sizing: border-box;
}

.video-text {
    flex: 1;
    color: white;
    padding-right: 4rem;
}

.video-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.video-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.video-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.video-image img {
    max-width: 100%;
    width: 400px;
    height: auto;
}

/* Parte 3: Info Izquierda, Imagen Derecha */
.proyectos-info-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 4rem 8rem;
    background: white;
    gap: 4rem;
    min-height: auto;
}

.info-text-box,
.info-image-box {
    flex: 1;
}

.info-text-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.info-text-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin: 2rem 0 1rem;
    text-transform: uppercase;
}

.info-text-box p {
    color: #444;
    font-size: 1.05rem;
}

.info-image-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Parte 4: Info Izquierda, Modelo Derecha */
.proyectos-model-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 4rem 8rem;
    background: white;
    gap: 4rem;
    min-height: auto;
}

.model-text-box {
    flex: 1;
}

.model-text-box h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.model-text-box p {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.model-image-box {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.model-image-box img {
    max-width: 100%;
    width: 450px;
    position: relative;
    z-index: 2;
}

/* Formas de fondo para el modelo */
.model-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape-orange {
    position: absolute;
    background: #f97316;
    width: 250px;
    height: 350px;
    border-radius: 50%;
    top: 50px;
    right: 150px;
    transform: rotate(20deg);
}

.shape-blue {
    position: absolute;
    background: #3b82f6;
    width: 300px;
    height: 300px;
    border-radius: 50% 50% 50% 10%;
    top: 150px;
    right: 250px;
    transform: rotate(-15deg);
}

.shape-yellow {
    position: absolute;
    background: #facc15;
    width: 150px;
    height: 200px;
    border-radius: 50%;
    top: 20px;
    right: 320px;
    transform: rotate(-30deg);
}

/* Parte 5: Soluciones Grid */
.soluciones-impacto {
    padding: 4rem 8rem;
    background: white;
    text-align: center;
    min-height: auto;
}

.soluciones-impacto h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.solucion-card {
    display: flex;
    flex-direction: column;
}

.solucion-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.solucion-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    min-height: 3.4rem;
    /* Force 2 lines height */
}

.solucion-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.solucion-card .btn-leer {
    background: #3a6894;
    /* Darker blue to match image */
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    align-self: flex-start;
    transition: 0.3s;
}

.solucion-card .btn-leer:hover {
    background: #254b6d;
}

/* Parte 6: ODS Section */
.ods-section {
    background: #f4f6fa;
    padding: 3rem 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: auto;
}

.ods-badge {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ods-badge.ibnorca {
    background: transparent;
    color: #333;
    box-shadow: none;
}

.ods-badge.blue {
    background: #0ea5e9;
}

.ods-badge.orange {
    background: #f59e0b;
}

.ods-badge.green {
    background: #22c55e;
}

.ods-badge.dark-green {
    background: #166534;
}

.ods-badge .ods-num {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.ods-badge .ods-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

/* Parte 7: Questions Section */
.questions-section {
    background: linear-gradient(rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0.85)), url('../assets/fondos/fondo1.jpg') center/cover;
    background-color: #3b82f6;
    /* Fallback */
    color: white;
    padding: 4rem 8rem;
    text-align: left;
    min-height: auto;
}

.questions-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.questions-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    opacity: 0.9;
}

.questions-section ul {
    list-style: none;
    padding-left: 0;
}

.questions-section ul li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.questions-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: white;
    font-size: 1.2rem;
}

@media (max-width: 1024px) {

    .proyectos-video-overlay,
    .proyectos-info-section,
    .proyectos-model-section,
    .soluciones-impacto,
    .questions-section {
        padding: 4rem 2rem;
    }

    .proyectos-video-overlay,
    .proyectos-info-section,
    .proyectos-model-section {
        flex-direction: column;
        gap: 2rem;
    }

    .soluciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-image img,
    .model-image-box img {
        width: 300px;
    }

    .shape-blue {
        width: 250px;
        height: 250px;
        top: 50px;
        right: 20px;
    }

    .shape-orange {
        width: 200px;
        height: 300px;
        right: 50px;
    }

    .shape-yellow {
        display: none;
    }
}

@media (max-width: 768px) {
    .soluciones-grid {
        grid-template-columns: 1fr;
    }

    .video-text h2,
    .proyectos-hero h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Página de Casas
   ========================================================================== */

/* Hero Casas */
.casas-hero {
    min-height: 80vh;
    background: url('../assets/proyectos/casas/a1.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 8rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.casas-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.casas-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.casas-hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-calcula {
    background: white;
    color: #111;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.btn-calcula:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Esencial Grid */
.casas-esencial {
    background: white;
    padding: 5rem 2rem;
    text-align: center;
    min-height: auto;
}

.casas-esencial h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 4rem;
}

.esencial-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.esencial-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    max-width: 300px;
}

.icon-circle {
    font-size: 3rem;
}

.esencial-text h3 {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 0.3rem;
}

.esencial-text p {
    font-size: 0.95rem;
    color: #555;
}

/* Múltiples Soluciones */
.casas-soluciones {
    background: #f2f7fb;
    padding: 5rem 2rem;
    text-align: center;
    min-height: auto;
}

.casas-soluciones h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 4rem;
}

.soluciones-icon-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.solucion-icon-item {
    text-align: center;
    max-width: 200px;
}

.icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.solucion-icon-item h3 {
    font-size: 1rem;
    color: #111;
    margin-bottom: 0.5rem;
}

.solucion-icon-item p {
    font-size: 0.9rem;
    color: #64748b;
}

/* Potencial */
.casas-potencial {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 6rem 8rem;
    background: white;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
}

.potencial-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.potencial-image img {
    max-width: 100%;
    width: 500px;
}

.potencial-text {
    flex: 1;
}

.potencial-text h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.potencial-text p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Contacto Form */
.casas-contacto {
    background: #f8fafc;
    padding: 5rem 2rem;
    text-align: center;
    min-height: auto;
}

.casas-contacto h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 3rem;
}

.form-horizontal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid #cbd5e1;
    background: transparent;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-bottom-color: #1e40af;
}

.btn-enviar {
    background: #1e40af;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    min-width: 200px;
}

.btn-enviar:hover {
    background: #1e3a8a;
}

@media (max-width: 1024px) {
    .casas-potencial {
        flex-direction: column;
        padding: 4rem 2rem;
        text-align: center;
    }

    .potencial-image {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .casas-hero h1 {
        font-size: 2.5rem;
    }

    .esencial-grid,
    .soluciones-icon-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .esencial-item {
        max-width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .form-horizontal {
        flex-direction: column;
    }

    .btn-enviar {
        width: 100%;
    }
}

/* ==========================================================================
   PDF FLIPBOOK MODAL & ANIMATION
   ========================================================================== */
.flipbook-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: calc(85vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.flipbook {
    position: relative;
    width: 440px; /* Ancho de una página (para que abierto sea 880px, proporción ~16:9) */
    height: 500px; /* Alto de una página */
    perspective: 1500px;
    transform-style: preserve-3d;
    left: 220px; /* Mueve la espina dorsal (borde izquierdo) justo al centro del wrapper */
}

.flipbook .page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 5px 5px 25px rgba(0,0,0,0.3);
    background: #ffffff;
    border-radius: 4px;
}

/* Página activa (lado derecho) */
.flipbook .page.active {
    z-index: 10;
    pointer-events: auto;
    transform: rotateY(0deg);
}

/* Página volteada (lado izquierdo) */
.flipbook .page.flipped {
    z-index: 1;
    pointer-events: none;
    transform: rotateY(-180deg);
}

.flipbook .page canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

.flipbook-controls {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
    z-index: 20;
}

.flipbook-controls button {
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.flipbook-controls button:hover:not(:disabled) {
    transform: scale(1.1);
    background-color: #475569 !important;
}

.flipbook-controls button:active:not(:disabled) {
    transform: scale(0.95);
}

.flipbook-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsividad para pantallas móviles (cambia a una vista de página centrada sin efecto de espina) */
@media (max-width: 768px) {
    .flipbook {
        width: 280px;
        height: 390px;
        left: 0; /* Centrado en móviles */
    }
    
    .flipbook .page.flipped {
        opacity: 0; /* Oculta la página volteada para no salirse de la pantalla en móvil */
        transform: rotateY(-90deg);
    }
}