/* ========================================
   HOME CUSTOM STYLES - David M Calduch
   VERSIÓN 5 - Ajustes finales
   ======================================== */

/* Hero Section - 100% ANCHO (BREAKOUT) */
.home-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
}

.home-hero-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

.home-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Navigation - 4 Botones Circulares */
.home-hero-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: -60px auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hero-nav-item:hover {
    transform: translateY(-5px);
}

.hero-nav-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.hero-nav-item:hover .hero-nav-icon {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Color de iconos: #3f80df */
.hero-nav-icon i {
    font-size: 4rem;
    color: #3f80df;
}

/* Texto más grande */
.hero-nav-label {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1f2937;
    text-align: center;
}

/* Metodología HDIC AI-Ready */
.home-metodologia {
    padding: 4rem 2rem;
    background: #f9fafb;
}

.home-metodologia-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Título EN NEGRITA */
.metodologia-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: left;
}

/* Banner con 2 columnas */
.metodologia-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 3rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.metodologia-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Columna izquierda - Título grande */
.metodologia-banner-left {
    position: relative;
    z-index: 2;
}

.metodologia-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Columna derecha - Detalles y botón */
.metodologia-banner-right {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metodologia-banner-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metodologia-bullet {
    font-size: 1.5rem;
    color: #60a5fa;
    line-height: 1;
}

/* Texto más grande: 1.25rem */
.metodologia-text {
    font-size: 1.25rem;
    color: white;
    font-weight: 400;
    line-height: 1.4;
}

/* Botón más grande: 1.125rem */
.metodologia-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #1e3a8a;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
}

.metodologia-button:hover {
    background: #f0f9ff;
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.metodologia-button i {
    font-size: 1rem;
}

/* Experiencia y Eventos */
.home-experiencia {
    padding: 4rem 2rem;
    background: white;
}

.home-experiencia-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Título EN NEGRITA */
.experiencia-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: left;
}

.experiencia-carousel {
    position: relative;
}

.experienciaSwiper {
    padding: 0 50px;
}

.experiencia-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.experiencia-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.experiencia-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.experiencia-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f3f4f6;
}

.experiencia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.experiencia-item:hover .experiencia-image img {
    transform: scale(1.05);
}

.experiencia-content {
    padding: 1.5rem;
}

.experiencia-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #3f80df;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.25rem;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #3f80df;
    color: white;
}

/* Impacto Real */
.home-impacto {
    padding: 4rem 2rem;
    background: #f9fafb;
}

.home-impacto-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Título EN NEGRITA */
.impacto-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: left;
}

.impacto-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.impacto-link {
    display: block;
    text-decoration: none;
}

.impacto-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.impacto-link:hover .impacto-image {
    transform: scale(1.02);
}

/* Footer - 3 Columnas de Links */
.footer-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-logo {
    grid-column: 1;
}

.footer-links-columns {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
}

.footer-links-list a:hover {
    color: #3f80df;
}

.footer-icons {
    grid-column: 3;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-description {
    font-size: 1rem;
    margin-top: 1rem;
    color: #6b7280;
}

.footer-copyright {
    font-size: 1rem;
    text-align: center;
    padding: 2rem 0 1rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    /* Hero Navigation */
    .home-hero-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: -40px;
        padding: 0 1.5rem;
    }

    .hero-nav-icon {
        width: 70px;
        height: 70px;
    }

    .hero-nav-icon i {
        font-size: 3rem;
    }

    .hero-nav-label {
        font-size: 0.9375rem;
    }

    /* Metodología - 1 columna en tablet */
    .home-metodologia {
        padding: 3rem 1.5rem;
    }

    .metodologia-title {
        font-size: 1.5rem;
    }

    .metodologia-banner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 2rem;
    }

    .metodologia-banner-title {
        font-size: 2rem;
    }

    .metodologia-text {
        font-size: 1.125rem;
    }

    .metodologia-button {
        font-size: 1rem;
    }

    /* Experiencia */
    .home-experiencia {
        padding: 3rem 1.5rem;
    }

    .experiencia-title {
        font-size: 1.5rem;
    }

    .experienciaSwiper {
        padding: 0 40px;
    }

    /* Impacto */
    .home-impacto {
        padding: 3rem 1.5rem;
    }

    .impacto-title {
        font-size: 1.5rem;
    }

    .impacto-content {
        padding: 1.5rem;
    }
    
    /* Footer - 2 Columnas en tablet */
    .footer-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        grid-column: 1;
        text-align: center;
    }
    
    .footer-links-columns {
        grid-column: 1;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-icons {
        grid-column: 1;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Hero Navigation - 4 ICONOS EN 1 LÍNEA */
    .home-hero-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-top: -30px;
        padding: 0 1rem;
    }

    .hero-nav-icon {
        width: 60px;
        height: 60px;
    }

    .hero-nav-icon i {
        font-size: 1.75rem;
    }

    .hero-nav-label {
        font-size: 0.75rem;
    }

    /* Metodología */
    .home-metodologia {
        padding: 2rem 1rem;
    }

    .metodologia-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .metodologia-banner {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .metodologia-banner-title {
        font-size: 1.5rem;
    }

    .metodologia-banner-details {
        align-items: flex-start;
    }

    .metodologia-text {
        font-size: 1rem;
    }

    .metodologia-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Experiencia */
    .home-experiencia {
        padding: 2rem 1rem;
    }

    .experiencia-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .experienciaSwiper {
        padding: 0 30px;
    }

    .experiencia-image {
        height: 180px;
    }

    .experiencia-content {
        padding: 1rem;
    }

    .experiencia-item-title {
        font-size: 0.9375rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 0.875rem;
    }

    /* Impacto */
    .home-impacto {
        padding: 2rem 1rem;
    }

    .impacto-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .impacto-content {
        padding: 1rem;
    }
    
    /* Footer - 1 Columna en mobile */
    .footer-wrap {
        padding: 2rem 1rem;
    }
    
    .footer-links-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-links-list a {
        font-size: 0.9375rem;
    }
}

/* Mobile extra pequeño - 4 iconos más compactos */
@media (max-width: 480px) {
    .home-hero-nav {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    .hero-nav-icon {
        width: 55px;
        height: 55px;
    }

    .hero-nav-icon i {
        font-size: 1.5rem;
    }

    .hero-nav-label {
        font-size: 0.7rem;
    }
}

/* ========================================
   MENÚ DESKTOP SIEMPRE VISIBLE
   ======================================== */

/* Desktop: Forzar menú visible sin hamburger */
@media (min-width: 1024px) {
    /* Ocultar botón hamburger y 3 puntos */
    .header-toggle {
        display: none !important;
    }
    
    .header-toggle,
    .header-checkbox,
    label[for="toggle"] {
        display: none !important;
    }
    
    /* Mostrar menú siempre */
    .header-nav nav {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        transform: none !important;
        height: auto !important;
    }
    
    /* Navegación horizontal */
    .header-nav nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .header-nav nav ul li {
        margin: 0;
    }
    
    /* Resetear estilos de mobile */
    .header-nav nav,
    .header-nav .is-search {
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Checkbox oculto */
    .header-checkbox {
        display: none !important;
    }
}

/* Ocultar cualquier icono de menú/hamburger en desktop */
@media (min-width: 1024px) {
    /* Ocultar cualquier variante del toggle */
    .header-nav .header-toggle,
    .header-nav label.header-toggle,
    .header-nav label[for="toggle"],
    .header-nav .header-checkbox,
    .header-nav input[type="checkbox"],
    .header-nav input#toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
