/* ============================================ */
/* CASAS PREFABRICADAS CANARIAS - CSS OPTIMIZADO */
/* ============================================ */

:root {
    --primary: 205 65% 35%;
    --accent: 155 55% 38%;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --header-height: 72px;
    --container-max: 1200px;
    --border-radius: 1rem;
    --border-radius-sm: 0.75rem;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background-color: #ffffff;
    color: var(--gray-900);
    line-height: 1.6;
    padding-top: var(--header-height);
}
h1, h2, h3, h4, .brand-title { font-family: 'Playfair Display', serif; line-height: 1.2; font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

/* UTILIDADES */
.section-container { 
    max-width: var(--container-max); 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    width: 100%; 
}
.section-padding { padding: 5rem 0; }
@media (max-width: 768px) { 
    .section-padding { padding: 3.5rem 0; }
    .section-container { 
        padding: 0 1.25rem; 
    }
}
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.delay-100 { animation-delay: 100ms; }

/* HEADER */
.header-fixed {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200); transition: var(--transition);
}
.header-fixed.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.logo-box { width: 45px; height: 45px; border-radius: 10px; background: linear-gradient(135deg, #2c5f8a, #1e4a6e); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.logo-box:hover { transform: rotate(-5deg); }
.logo-box img { width: 28px; height: 28px; }
.brand-title { font-size: 1.25rem; font-weight: 700; background: linear-gradient(135deg, #2c5f8a, #2d6a4f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-sub { font-size: 0.75rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.nav-link { font-weight: 500; color: var(--gray-600); position: relative; padding: 0.5rem 0; transition: color 0.3s ease; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: #2c5f8a; font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #2c5f8a, #2d6a4f); border-radius: 2px; }

/* Separación del logo en móvil - SOLO EL LOGO */
@media (max-width: 768px) {
    .header-fixed .flex.items-center > a.flex.items-center {
        margin-left: 0.25rem;
    }
}

/* DROPDOWN ISLAS (CLICK) */
.dropdown-islas { position: relative; }
.dropdown-islas .dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
    background: white; border-radius: 0.75rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all 0.2s ease; z-index: 1000;
}
.dropdown-islas.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-islas .fa-chevron-down { transition: transform 0.2s ease; }
.dropdown-islas.open .fa-chevron-down { transform: rotate(180deg); }
.dropdown-islas .dropdown-menu a {
    display: block; padding: 0.625rem 1rem; color: #334155; text-decoration: none;
    font-size: 0.875rem; font-weight: 500; transition: all 0.2s ease;
}
.dropdown-islas .dropdown-menu a:hover { background-color: #f0fdf4; color: #16a34a; }
.dropdown-islas .dropdown-menu span { display: block; padding: 0.625rem 1rem; color: #94a3b8; font-size: 0.875rem; cursor: default; }
.dropdown-islas .dropdown-menu .divider { border-top: 1px solid #e2e8f0; margin: 0.25rem 0; }

/* MENÚ MÓVIL */
.mobile-menu-container {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5);
    z-index: 9999; display: none; backdrop-filter: blur(4px);
}
.mobile-menu-container.open { display: block; }
.mobile-menu-content {
    position: absolute; top: 0; right: 0; width: 92%; max-width: 380px; height: 100%;
    background: white; box-shadow: -4px 0 20px rgba(0,0,0,0.1); overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu-container.open .mobile-menu-content { transform: translateX(0); }
.mobile-menu-header { padding: 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-logo { display: flex; align-items: center; gap: 0.75rem; }
.mobile-menu-close { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }
.mobile-menu-nav { padding: 1.5rem; }
.mobile-menu-item { display: flex; align-items: center; padding: 1rem 0; color: var(--gray-600); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--gray-100); }
.mobile-menu-icon { width: 24px; margin-right: 0.75rem; color: var(--gray-300); }
.mobile-islas-trigger { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.mobile-islas-trigger span { display: flex; align-items: center; gap: 0.75rem; color: var(--gray-600); font-weight: 500; }
.mobile-islas-trigger i { transition: transform 0.2s ease; }
.mobile-islas-submenu { padding-left: 2rem; padding-bottom: 0.75rem; display: none; }
.mobile-islas-submenu.open { display: block; }
.mobile-islas-submenu a { display: block; padding: 0.625rem 0; color: #475569; text-decoration: none; font-size: 0.875rem; }
.mobile-islas-submenu a:hover { color: #16a34a; }
.mobile-islas-submenu span { display: block; padding: 0.625rem 0; color: #94a3b8; font-size: 0.875rem; cursor: default; }
.mobile-menu-cta { margin: 1.5rem; }
.mobile-menu-footer { padding: 1.5rem; border-top: 1px solid var(--gray-200); color: var(--gray-600); font-size: 0.875rem; }

/* BOTONES */
.btn-cta {
    background: linear-gradient(135deg, #2d6a4f, #1e4a3a); color: white; padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-sm); font-weight: 600; display: inline-flex; align-items: center;
    justify-content: center; gap: 0.5rem; box-shadow: 0 4px 15px rgba(45,106,79,0.3);
    transition: var(--transition); text-decoration: none; border: none; cursor: pointer;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,106,79,0.4); }
.btn-secondary {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white;
    padding: 0.875rem 1.75rem; border-radius: var(--border-radius-sm); font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); text-decoration: none;
}
.btn-secondary:hover { background: white; color: var(--gray-900); transform: translateY(-2px); }

/* HERO */
.hero-section { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    background: var(--gray-900); 
    overflow: hidden; 
    color: white; 
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    opacity: 0.4; 
    z-index: 1; 
}

.badge-floating { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    background: rgba(15,23,42,0.7); 
    backdrop-filter: blur(12px); 
    color: #e5f9ed; 
    padding: 0.6rem 1.4rem; 
    border-radius: 999px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    border: 1px solid rgba(74,222,128,0.35); 
}

/* Contenedor de botones - alineado a la izquierda en escritorio */
.hero-section .flex.flex-col.sm\:flex-row {
    justify-content: flex-start !important;
}

/* Botones - texto centrado */
.hero-section .btn-cta,
.hero-section .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Asegurar que el texto del botón "Ver ejemplos" esté centrado */
.hero-section .btn-secondary {
    text-align: center;
}

/* Responsive: en móvil los botones se centran */
@media (max-width: 640px) {
    .hero-section .flex.flex-col.sm\:flex-row {
        justify-content: center !important;
    }
}


/* ============================================ */
/* TARJETAS DE PASOS - OPTIMIZADO PARA MÓVIL   */
/* ============================================ */

.steps-container-enhanced { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 2rem; 
    margin: 0 auto; 
}

.step-card-enhanced {
    flex: 1; 
    min-width: 280px; 
    max-width: 350px; 
    background: white; 
    border-radius: 1.5rem;
    padding: 2rem 1.5rem; 
    text-align: center; 
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Eliminar el gris al tocar */
}

/* Efecto hover SOLO en escritorio (dispositivos con mouse) */
@media (hover: hover) and (pointer: fine) {
    .step-card-enhanced:hover { 
        transform: translateY(-6px); 
        border-color: var(--gray-200); 
        box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08); 
    }
    
    .step-card-enhanced:hover .step-icon-enhanced { 
        background: #166534; 
    }
    
    .step-card-enhanced:hover .step-icon-enhanced i { 
        color: white; 
    }
}

/* Efecto active (al tocar) EN MÓVIL - feedback visual sutil */
@media (hover: none) and (pointer: coarse) {
    .step-card-enhanced:active {
        transform: scale(0.98);
        transition: transform 0.05s ease;
    }
    
    .step-card-enhanced:active .step-icon-enhanced {
        background: #166534;
        transition: background 0.05s ease;
    }
    
    .step-card-enhanced:active .step-icon-enhanced i {
        color: white;
    }
}

.step-icon-enhanced { 
    width: 70px; 
    height: 70px; 
    background: #f0fdf4; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
    transition: all 0.3s ease; 
}

.step-icon-enhanced i { 
    font-size: 2rem; 
    color: #166534; 
}

.step-title-enhanced { 
    font-size: 1.35rem; 
    font-weight: 700; 
    color: var(--gray-800); 
    margin-bottom: 0.75rem; 
}

.step-description-enhanced { 
    font-size: 0.95rem; 
    color: var(--gray-600); 
    line-height: 1.6; 
}
/* ============================================ */
/* CARRUSEL - BOTONES MÁS PEQUEÑOS             */
/* ============================================ */

/* Contenedor principal - posición relativa para los botones */
.carousel-modern-container { 
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Wrapper con overflow hidden - SOLO el carrusel */
.carousel-modern-wrapper { 
    overflow: hidden; 
    border-radius: 1rem;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15); 
}

.carousel-modern { 
    position: relative; 
    width: 100%; 
}

.carousel-modern-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2,0.9,0.4,1.1);
    touch-action: pan-y;
}

.carousel-modern-slide { 
    flex: 0 0 100%; 
}

/* Imagen */
.carousel-modern-image { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9;
    background: #0f172a; 
    overflow: hidden; 
    cursor: pointer; 
}

.carousel-modern-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.6s cubic-bezier(0.2,0.9,0.4,1.1); 
}

.carousel-modern-slide:hover .carousel-modern-image img { 
    transform: scale(1.05); 
}

/* Overlay */
.carousel-modern-overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); 
    padding: 2rem 1.5rem 1.5rem; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    pointer-events: none; 
}

.carousel-modern-slide:hover .carousel-modern-overlay { 
    opacity: 1; 
}

/* Caption */
.carousel-modern-caption { 
    color: white; 
    text-align: left; 
}

.carousel-modern-caption h4 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.25rem; 
    font-family: 'Playfair Display', serif; 
}

.carousel-modern-caption p { 
    font-size: 0.85rem; 
    opacity: 0.9; 
}

/* BOTONES MÁS PEQUEÑOS */
.carousel-modern-btn {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%); 
    background: white; 
    border: none;
    border-radius: 50%; 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all 0.2s ease; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 20; 
    -webkit-tap-highlight-color: transparent; 
    outline: none;
}

.carousel-modern-btn.prev { 
    left: -18px; 
}

.carousel-modern-btn.next { 
    right: -18px; 
}

.carousel-modern-btn i { 
    font-size: 0.9rem; 
    color: #1e293b; 
    transition: color 0.2s ease; 
    pointer-events: none; 
}

/* Flechas solo en escritorio */
@media (max-width: 1024px) {
    .carousel-modern-btn {
        display: none !important;
    }
}

/* Hover escritorio */
@media (min-width: 769px) {
    .carousel-modern-btn:hover { 
        background: #22c55e; 
        transform: translateY(-50%) scale(1.05); 
        box-shadow: 0 4px 12px rgba(34,197,94,0.25); 
    }
    
    .carousel-modern-btn:hover i { 
        color: white; 
    }
}

/* DOTS Y NOTA */
.carousel-modern-dots { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 0.6rem; 
    margin-top: 1.75rem; 
    margin-bottom: 0.25rem;
}

.carousel-modern-dots .dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: #cbd5e1; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.2,0.9,0.4,1.1); 
}

.carousel-modern-dots .dot.active { 
    background: #22c55e; 
    width: 24px; 
    border-radius: 12px; 
}

.carousel-modern-note { 
    font-size: 0.8rem; 
    color: #94a3b8; 
    text-align: center; 
    margin-top: 1.25rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
}

/* ============================================ */
/* RESPONSIVE - MÓVIL CORREGIDO                 */
/* ============================================ */

@media (max-width: 768px) {
    /* Anular padding del section-container solo para el carrusel */
    .section-container:has(.carousel-modern-container) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Wrapper sin bordes */
    .carousel-modern-wrapper { 
        border-radius: 0; 
        box-shadow: none;
    }
    
    /* Imagen */
    .carousel-modern-image { 
        aspect-ratio: 16 / 9; 
    }
    
    /* Overlay siempre visible */
    .carousel-modern-overlay { 
        opacity: 1; 
        padding: 1.5rem 1rem 1rem; 
    }
    
    /* BOTONES EN MÓVIL - POSICIÓN CORREGIDA */
    .carousel-modern-btn { 
        width: 36px; 
        height: 36px; 
        background: rgba(255,255,255,0.95);
        top: 40% !important;
        transform: translateY(-50%) !important;
    }
    
    .carousel-modern-btn.prev { 
        left: 10px !important; 
    }
    
    .carousel-modern-btn.next { 
        right: 10px !important; 
    }
    
    .carousel-modern-btn i { 
        font-size: 0.85rem; 
    }
    
    .carousel-modern-caption h4 { 
        font-size: 1rem; 
    }
    
    .carousel-modern-caption p { 
        font-size: 0.75rem; 
    }
    
    .carousel-modern-note { 
        font-size: 0.7rem; 
        padding: 0 1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .carousel-modern-btn { 
        width: 32px !important; 
        height: 32px !important; 
        top: 40% !important;
    }
    
    .carousel-modern-btn i { 
        font-size: 0.75rem !important; 
    }
    
    .carousel-modern-caption h4 { 
        font-size: 0.9rem; 
    }
    
    .carousel-modern-caption p { 
        font-size: 0.65rem; 
    }
    
    .carousel-modern-btn.prev { 
        left: 8px !important; 
    }
    
    .carousel-modern-btn.next { 
        right: 8px !important; 
    }
    
    .carousel-modern-overlay { 
        padding: 1rem 0.75rem 0.75rem; 
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-modern-container { 
        max-width: 95%; 
        margin: 0 auto;
    }
    
    .carousel-modern-btn { 
        width: 34px; 
        height: 34px; 
        top: 50%;
    }
    
    .carousel-modern-btn.prev { 
        left: -12px; 
    }
    
    .carousel-modern-btn.next { 
        right: -12px; 
    }
    
    .carousel-modern-btn i { 
        font-size: 0.85rem; 
    }
    
    .carousel-modern-image { 
        aspect-ratio: 16 / 9; 
    }
}

/* Escritorio */
@media (min-width: 1025px) {
    .carousel-modern-container { 
        max-width: 1200px; 
    }
    
    .carousel-modern-image { 
        aspect-ratio: 16 / 9; 
    }
    
    .carousel-modern-btn { 
        width: 38px; 
        height: 38px; 
        top: 50%;
    }
    
    .carousel-modern-btn.prev { 
        left: -19px; 
    }
    
    .carousel-modern-btn.next { 
        right: -19px; 
    }
    
    .carousel-modern-btn i { 
        font-size: 0.9rem; 
    }
    
    .carousel-modern-caption h4 { 
        font-size: 1.35rem; 
    }
    
    .carousel-modern-caption p { 
        font-size: 0.9rem; 
    }
}
/* CTA SIMPLE */
.cta-simple { width: 100%; background: #eef2ff; padding: 3rem 0; }
.cta-simple-content { max-width: 700px; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.cta-simple-title { font-size: 1.75rem; font-weight: 600; color: #0f172a; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.cta-simple-text { font-size: 1rem; color: #334155; margin-bottom: 1.75rem; line-height: 1.5; }
.cta-simple-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: #2d6a4f; color: white; font-weight: 500; font-size: 0.95rem; padding: 0.75rem 1.75rem; border-radius: 999px; text-decoration: none; transition: all 0.2s ease; border: none; cursor: pointer; }
.cta-simple-btn:hover { background: #1e4a3a; transform: translateY(-1px); }
.cta-simple-btn i { transition: transform 0.2s ease; }
.cta-simple-btn:hover i { transform: translateX(3px); }
.cta-simple-features { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.cta-simple-features span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #475569; white-space: nowrap; }
.cta-simple-features i { color: #2d6a4f; font-size: 0.7rem; }
@media (max-width: 768px) { 
    .cta-simple { padding: 2.5rem 0; } 
    .cta-simple-title { font-size: 1.5rem; } 
    .cta-simple-features { gap: 1.2rem; } 
    .cta-simple-features span { font-size: 0.75rem; } 
}
@media (max-width: 500px) { 
    .cta-simple-features { gap: 1rem; flex-wrap: wrap; } 
    .cta-simple-features span { white-space: normal; font-size: 0.7rem; } 
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 1.25rem 0; }
.faq-question { list-style: none; cursor: pointer; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; color: var(--gray-800); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question i { transition: transform 0.3s ease; }
.faq-item[open] .faq-question i { transform: rotate(180deg); }
.faq-answer { padding-top: 1rem; color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; }

/* FORMULARIO */
.form-container { background: white; border-radius: var(--border-radius); padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.form-container-white input:not([type="checkbox"]),
.form-container-white select,
.form-container-white textarea {
    width: 100%; padding: 0.75rem 1rem; border: 2px solid #e2e8f0; border-radius: 0.75rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.95rem; transition: all 0.3s ease;
    background-color: #ffffff !important; color: #1e293b !important;
}
.form-container-white input::placeholder,
.form-container-white textarea::placeholder { color: #94a3b8 !important; }
.form-container-white input:focus,
.form-container-white select:focus,
.form-container-white textarea:focus { outline: none; border-color: #2d6a4f !important; box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }
.form-container-white select {
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.2em;
    background-color: #ffffff !important; cursor: pointer;
}
.form-container-white select option { color: #1e293b !important; background-color: #ffffff !important; }
.form-container-white label { color: #334155 !important; font-weight: 500; margin-bottom: 0.5rem; display: block; font-size: 0.875rem; }
.form-container-white .bg-blue-50 { background-color: #eff6ff !important; border: 1px solid #dbeafe !important; }
.form-container-white .bg-blue-50 label { display: flex !important; align-items: center !important; gap: 0.5rem !important; margin-bottom: 0 !important; cursor: pointer !important; }
.form-container-white input[type="checkbox"] { width: 1rem !important; height: 1rem !important; margin: 0 !important; padding: 0 !important; flex-shrink: 0 !important; accent-color: #2d6a4f !important; cursor: pointer !important; background-color: white !important; }
.form-container-white input[type="checkbox"]:checked { background-color: #2d6a4f !important; border-color: #2d6a4f !important; }
.form-container-white .bg-blue-50 span { color: #475569 !important; line-height: 1.4 !important; }
.form-container-white .bg-blue-50 a { color: #2563eb !important; text-decoration: underline !important; }
.form-container-white .bg-blue-50 a:hover { color: #1d4ed8 !important; }
.form-container-white h3 { color: #0f172a !important; }
.form-container-white p { color: #475569 !important; }
.form-container input:not([type="checkbox"]), .form-container select, .form-container textarea { background-color: #ffffff !important; color: #1e293b !important; }

/* MEDIA QUERIES GLOBALES */
@media (max-width: 768px) {
    .logo-box { width: 40px; height: 40px; }
    .brand-title { font-size: 1.15rem; }
    .brand-sub { font-size: 0.7rem; }
    .btn-cta, .btn-secondary { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
    .badge-floating { font-size: 0.85rem; padding: 0.55rem 1.3rem; }
}
@media (max-width: 480px) { .mobile-menu-content { width: 95%; max-width: 340px; } }
@media (max-width: 768px) { input, select, textarea { font-size: 16px !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ============================================ */
/* DROPDOWN ISLAS - BASE + ESTILO ACTIVO       */
/* ============================================ */

/* Contenedor principal del dropdown */
.dropdown-islas { 
    position: relative; 
}

/* Menú desplegable */
.dropdown-islas .dropdown-menu {
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0; 
    min-width: 200px;
    background: white; 
    border-radius: 0.75rem; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-8px);
    transition: all 0.2s ease; 
    z-index: 1000;
    overflow: hidden;
}

/* Abrir el dropdown */
.dropdown-islas.open .dropdown-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/* Rotación de la flecha */
.dropdown-islas .fa-chevron-down { 
    transition: transform 0.2s ease; 
}

.dropdown-islas.open .fa-chevron-down { 
    transform: rotate(180deg); 
}

/* Estilos para los enlaces del dropdown */
.dropdown-islas .dropdown-menu a {
    display: block; 
    padding: 0.75rem 1rem; 
    color: #334155; 
    text-decoration: none;
    font-size: 0.875rem; 
    font-weight: 500; 
    transition: all 0.2s ease;
}

/* Hover para los enlaces */
.dropdown-islas .dropdown-menu a:hover { 
    background-color: #f0fdf4; 
    color: #16a34a; 
}

/* ============================================ */
/* ESTILO ACTIVO - EL QUE YA TENÍAS            */
/* ============================================ */

/* Estilo para el enlace activo dentro del dropdown */
.dropdown-islas .dropdown-menu a.active {
    background-color: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
    position: relative;
}

/* Indicador visual en el lado izquierdo */
.dropdown-islas .dropdown-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #16a34a;
    border-radius: 0 2px 2px 0;
}

/* Estilos para spans (próximamente) */
.dropdown-islas .dropdown-menu span { 
    display: block; 
    padding: 0.75rem 1rem; 
    color: #94a3b8; 
    font-size: 0.875rem; 
    cursor: default; 
}

/* ============================================ */
/* MENÚ MÓVIL - ESTILO ACTIVO PARA ISLAS       */
/* ============================================ */

/* Submenú de Islas - para móvil */
.mobile-islas-submenu { 
    padding-left: 2rem;
    padding-bottom: 0.75rem; 
    display: none; 
}

.mobile-islas-submenu.open { 
    display: block; 
}

.mobile-islas-submenu a { 
    display: block; 
    padding: 0.625rem 0; 
    color: #475569; 
    text-decoration: none; 
    font-size: 0.875rem; 
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-islas-submenu a:hover { 
    color: #16a34a; 
}

/* Estilo para el enlace activo en el submenú móvil */
.mobile-islas-submenu a.active {
    color: #16a34a;
    font-weight: 600;
    border-left: 3px solid #16a34a;
    padding-left: 0.5rem;
}

/* Desktop - Inicio activo */
.nav-link.active {
    color: #2c5f8a;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2c5f8a, #2d6a4f);
    border-radius: 2px;
}

/* Móvil - Inicio activo */
.mobile-menu-item.active {
    color: #2c5f8a;
    font-weight: 600;
}

.mobile-menu-item.active .mobile-menu-icon {
    color: #2c5f8a;
}

/* ============================================ */
/* MENÚ MÓVIL - ISLAS SUBMENU CORREGIDO        */
/* ============================================ */

/* Submenú de Islas - oculto por defecto */
.mobile-islas-submenu {
    display: none;
    padding-left: 0;
    padding-bottom: 0.5rem;
}

/* Submenú visible cuando tiene la clase "show" */
.mobile-islas-submenu.show {
    display: block;
}

/* Estilos para los enlaces dentro del submenú */
.mobile-islas-submenu a {
    display: block;
    padding: 0.75rem 0 0.75rem 2.25rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.mobile-islas-submenu a:last-child {
    border-bottom: none;
}

.mobile-islas-submenu a:hover {
    color: #16a34a;
    background-color: #f0fdf4;
}

/* Asegurar que el trigger tenga cursor pointer */
.mobile-islas-trigger {
    cursor: pointer;
}

/* DROPDOWN ISLAS (DESKTOP) */
.dropdown-islas {
    position: relative;
}

.dropdown-islas .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-islas.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-islas .fa-chevron-down {
    transition: transform 0.2s ease;
}

.dropdown-islas.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* ============================================ */
/* FIX DROPDOWN DESKTOP - SOBRESCRITURA        */
/* ============================================ */

/* Asegurar que el contenedor tenga posición relativa y z-index alto */
.dropdown-islas {
    position: relative !important;
    z-index: 9999 !important;
}

/* Asegurar que el menú se vea por encima de todo */
.dropdown-islas .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2) !important;
    border: 1px solid #e2e8f0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: all 0.2s ease !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

/* Estado abierto */
.dropdown-islas.open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Forzar que el botón no tenga overflow oculto */
#dropdownIslasBtn {
    position: relative !important;
    z-index: 10001 !important;
    background: transparent !important;
}

/* Asegurar que ningún contenedor padre tenga overflow: hidden */
header,
.header-fixed,
nav,
.section-container {
    overflow: visible !important;
}

/* Estilo de los enlaces del dropdown */
.dropdown-islas .dropdown-menu a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.dropdown-islas .dropdown-menu a:hover {
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
}

/* ============================================ */
/* PÁGINA DE AGRADECIMIENTO (gracias.html)    */
/* ============================================ */

.thank-you-container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--gray-200);
    animation: fadeInUp 0.8s ease-out;
    margin: 80px auto 60px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d6a4f, #1e4a3a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.3);
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.thank-you-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.thank-you-container p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.thank-you-container .highlight-box {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 1rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.thank-you-container .highlight-box p {
    margin-bottom: 0;
    color: #166534;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2c5f8a, #1e4a6e);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(44, 95, 138, 0.2);
}

.btn-back:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1e4a6e, #0f3a55);
    box-shadow: 0 6px 20px rgba(44, 95, 138, 0.3);
}

.contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.contact-info a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .thank-you-container {
        margin: 60px 1rem;
        padding: 2rem 1.5rem;
    }
    
    .thank-you-container h1 {
        font-size: 1.5rem;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    .btn-back {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}


/* =========================================================
   TABLAS 
   ========================================================= */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: white;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

.article-table th {
    background: var(--color-accent-bg);
    color: var(--color-accent-dark);
    font-weight: 600;
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--color-accent-soft);
}

.article-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.article-table tbody tr:hover td {
    background: var(--color-section-alt);
}

/* ============================================ */
/* TARJETAS MÓVIL - ESTILOS                    */
/* ============================================ */

.error-card-mobile {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.error-card-mobile:hover {
    border-color: var(--color-accent-soft);
    transform: translateY(-1px);
}

.error-card-content {
    padding: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Iconos */
.error-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.error-icon i {
    font-size: 0.75rem;
}

.error-icon-red {
    background-color: #fef2f2;
}
.error-icon-red i {
    color: #ef4444;
}

.error-icon-orange {
    background-color: #fff7ed;
}
.error-icon-orange i {
    color: #f97316;
}

.error-icon-amber {
    background-color: #fffbeb;
}
.error-icon-amber i {
    color: #f59e0b;
}

.error-icon-blue {
    background-color: #eff6ff;
}
.error-icon-blue i {
    color: #3b82f6;
}

/* Información del error */
.error-info {
    flex: 1;
}

.error-title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-text-strong);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.error-consequence {
    font-size: 0.6875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.error-consequence-red {
    color: #dc2626;
}

.error-consequence-orange {
    color: #ea580c;
}

.error-consequence-amber {
    color: #d97706;
}

.error-consequence-blue {
    color: #2563eb;
}

.error-solution {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.solution-check {
    color: #16a34a;
    flex-shrink: 0;
}

/* ============================================ */
/* RESPONSIVE ADICIONAL                        */
/* ============================================ */

@media (max-width: 480px) {
    .error-card-content {
        padding: 0.625rem;
        gap: 0.5rem;
    }
    
    .error-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .error-icon i {
        font-size: 0.6875rem;
    }
    
    .error-title {
        font-size: 0.75rem;
    }
    
    .error-consequence {
        font-size: 0.625rem;
    }
    
    .error-solution {
        font-size: 0.625rem;
    }
}

/* Para pantallas muy pequeñas, cambiar a columna */
@media (max-width: 360px) {
    .error-card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .error-icon {
        margin: 0 auto 0.25rem;
    }
    
    .error-info {
        text-align: center;
    }
    
    .error-solution {
        justify-content: center;
    }
}

/* ============================================ */
/* TRUST STATS (bajo el carrusel)              */
/* ============================================ */

.trust-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-stat {
    flex: 1;
    text-align: center;
    padding: 0.25rem 1.5rem;
}

.trust-stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #16a34a;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.trust-stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.trust-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: #e2e8f0;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .trust-stats {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }
    .trust-stat-divider { display: none; }
    .trust-stat { min-width: 40%; padding: 0.25rem 0.5rem; }
    .trust-stat-number { font-size: 1.625rem; }
}

/* ============================================ */
/* ERROR CARDS - GRID UNIFICADO                */
/* ============================================ */

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

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

.error-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ec--red    { border-left-color: #ef4444; }
.ec--orange { border-left-color: #f97316; }
.ec--amber  { border-left-color: #f59e0b; }
.ec--blue   { border-left-color: #3b82f6; }

.ec-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.ec-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.ec--red    .ec-icon { background: #fef2f2; color: #ef4444; }
.ec--orange .ec-icon { background: #fff7ed; color: #f97316; }
.ec--amber  .ec-icon { background: #fffbeb; color: #f59e0b; }
.ec--blue   .ec-icon { background: #eff6ff; color: #3b82f6; }

.ec-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #0f172a;
    line-height: 1.3;
}

.ec-consequence {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ec--red    .ec-consequence { background: #fef2f2; color: #dc2626; }
.ec--orange .ec-consequence { background: #fff7ed; color: #ea580c; }
.ec--amber  .ec-consequence { background: #fffbeb; color: #d97706; }
.ec--blue   .ec-consequence { background: #eff6ff; color: #2563eb; }

.ec-badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.65;
}

.ec-solution {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #334155;
    background: #f0fdf4;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.ec-solution i {
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
