/* ============================================
   FRONT-PAGE.CSS - Poppy's 80 Homepage
   Estilos para la página de inicio multiidioma
   ============================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 }
 
 body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;
 }
 
 /* SCROLL SNAP CORREGIDO - RESPETA EL HEADER */
 html {
     scroll-snap-type: y proximity;
     scroll-behavior: smooth;
     scroll-padding-top: 70px; /* ESPACIO PARA HEADER */
 }
 
 /* HEADER MÓVIL SIEMPRE VISIBLE Y FUNCIONAL */
 .main-header-mobile {
     position: relative !important;
     display: block !important;
     visibility: visible !important;
     opacity: 1 !important;
     z-index: 1000 !important;
     background: white !important;
     border-bottom: 2px solid #000 !important;
     transform: none !important;
     transition: none !important;
     animation: none !important;
 }

 /* GARANTIZAR QUE EL HEADER ESTÉ VISIBLE EN HOME */
 body.home .main-header-mobile,
 body.front-page .main-header-mobile {
     position: relative !important;
     display: block !important;
     visibility: visible !important;
     opacity: 1 !important;
 }

 .hero-section {
    height: 100vh;
    min-height: 100vh;
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('https://www.poppys80.com/wp-content/uploads/2025/08/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 70px; /* RESPETA EL HEADER */
 }
 
 .hero-content {
    max-width: 900px;
    padding: 0 20px;
    animation: fadeIn 2s ease-out;
 }
 
 .hero-title {
    font-family: 'Russo One', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    text-shadow: 
        3px 3px 0px #000,
        6px 6px 0px #333;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
 }
 
 .hero-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #ccc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
 }
 
 .hero-description {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 300;
 }
 
 .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
 }
 
 .hero-button {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 15px 30px;
    border: 3px solid #fff;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
 }
 
 .hero-button:hover {
    background: #000;
    color: #fff;
    box-shadow: 5px 5px 0px #ccc;
    transform: translateY(-3px);
 }
 
 .hero-button.secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
 }
 
 .hero-button.secondary:hover {
    background: #fff;
    color: #000;
 }
 
 .main-content {
    background: #fff;
    color: #000;
 }
 
 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
 }
 
 /* SECCIONES 100VH CON SCROLL SNAP */
 .section {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 70px; /* RESPETA EL HEADER */
 }
 
 .section:nth-child(even) {
    background: #f8f8f8;
 }
 
 .content-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
 }
 
 .content-row.reverse {
    flex-direction: row-reverse;
 }
 
 .content-image {
    flex: 1;
    max-width: 500px;
 }
 
 .content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 3px solid #000;
 }
 
 .content-text {
    flex: 1;
    max-width: 600px;
 }
 
 .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #ccc;
    line-height: 1.2;
 }
 
 .section-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
 }
 
 .content-text p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
 }
 
 .highlight-text {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
 }
 
 /* Carrusel Styles */
 .carousel-container {
    flex: 1;
    max-width: 500px;
 }
 
 .widget-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 3px solid #000;
 }
 
 .widget-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
 }
 
 .widget-carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
 }
 
 .widget-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 3px solid #fff;
    cursor: pointer;
    padding: 12px 16px;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: bold;
 }
 
 .widget-carousel-control:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
 }
 
 .widget-carousel-control.prev {
    left: 10px;
 }
 
 .widget-carousel-control.next {
    right: 10px;
 }
 
 .widget-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
 }
 
 .widget-indicator {
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
 }
 
 .widget-indicator.active {
    background-color: #fff;
 }
 
 /* Sección Historia */
 .story-section {
    background: #000;
    color: #fff;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 70px; /* RESPETA EL HEADER */
 }
 
 .story-section .section-title {
    color: #fff;
    text-shadow: 2px 2px 0px #333;
    text-align: center;
    margin-bottom: 20px;
 }
 
 .story-section .section-subtitle {
    color: #ccc;
    text-align: center;
    margin-bottom: 50px;
 }
 
 .story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
 }
 
 .story-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #ccc;
    font-weight: 300;
 }
 
 .story-content .highlight-text {
    color: #fff;
    font-weight: 700;
 }
 
 .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
    font-family: 'Bebas Neue', sans-serif;
    cursor: pointer;
 }
 
 /* Flecha Subir Arriba */
 .scroll-to-top {
     position: fixed;
     bottom: 30px;
     right: 30px;
     width: 50px;
     height: 50px;
     background: #8B0000;
     color: white;
     border: none;
     border-radius: 50%;
     cursor: pointer;
     font-size: 20px;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
     z-index: 1000;
     display: flex;
     align-items: center;
     justify-content: center;
 }
 
 .scroll-to-top.show {
     opacity: 1;
     visibility: visible;
 }
 
 .scroll-to-top:hover {
     background: #660000;
     transform: translateY(-2px);
 }
 
 @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
 }
 
 @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
 }
 
 .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
 }
 
 .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
 }
 
 .pattern-bg {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0,0,0,0.05) 10px,
            rgba(0,0,0,0.05) 20px
        );
 }
 
 .pattern-bg-dark {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.05) 10px,
            rgba(255,255,255,0.05) 20px
        );
 }
 
 /* SCROLL SNAP SOLO PARA SECCIONES, NO PARA FOOTER */
 .hero-section,
 .section:not(:last-child) {
     scroll-snap-align: start;
     scroll-snap-stop: always;
 }
 
 /* La última sección SIN scroll snap */
 .section:last-child {
     scroll-snap-align: none !important;
     height: auto !important;
     min-height: 60vh;
     padding-bottom: 50px;
 }
 
 /* Footer completamente libre */
 .main-footer,
 footer,
 .desktop-footer,
 .mobile-app-footer {
     scroll-snap-align: none !important;
     position: relative;
     z-index: 1;
 }
 
 /* RESPONSIVE DESIGN */
 @media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
 
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
 
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
 
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
 
    .hero-button {
        width: 250px;
        text-align: center;
        padding: 12px 25px;
        font-size: 1.1rem;
    }
 
    .section-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 25px;
        letter-spacing: 1px;
    }
 
    .content-row {
        flex-direction: column !important;
        gap: 40px;
        padding: 0 10px;
    }
 
    .content-image,
    .content-text,
    .carousel-container {
        max-width: 100%;
        width: 100%;
    }
 
    .content-image img,
    .widget-carousel-inner img {
        height: 280px;
        width: 100%;
        border: 2px solid #000;
    }
 
    .content-text {
        text-align: center;
        padding: 0 15px;
    }
 
    .content-text p {
        font-size: 1rem;
        margin-bottom: 18px;
    }
 
    .widget-carousel {
        border: 2px solid #000;
    }
 
    .widget-carousel-control {
        padding: 8px 12px;
        font-size: 16px;
        border: 2px solid #fff;
    }
 
    .story-content {
        padding: 0 20px;
    }
 
    .story-content p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
 
    .container {
        padding: 0 10px;
    }
    
    .scroll-indicator {
        bottom: 5px;
    }
 
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* HEADER MÓVIL EN MÓVIL - COMPORTAMIENTO NORMAL */
    .main-header-mobile {
        position: relative !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000 !important;
        background: white !important;
        border-bottom: 2px solid #000 !important;
    }
    
    /* AJUSTAR SCROLL SNAP PARA MÓVIL */
    html {
        scroll-padding-top: 60px;
    }
    
    .hero-section,
    .section {
        scroll-margin-top: 60px;
    }
 }
 
 @media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }
 
    .hero-subtitle {
        font-size: 1.1rem;
    }
 
    .hero-description {
        font-size: 0.9rem;
    }
 
    .hero-button {
        width: 200px;
        padding: 10px 20px;
        font-size: 1rem;
    }
 
    .section-title {
        font-size: 1.7rem;
    }
 
    .content-image img,
    .widget-carousel-inner img {
        height: 220px;
    }
 
    .content-text p {
        font-size: 0.95rem;
    }
 
    .story-content p {
        font-size: 1rem;
    }
 
    .container {
        padding: 0 5px;
    }
 }
 
 /* Mejoras de rendimiento */
 img {
    max-width: 100%;
    height: auto;
 }
 
 /* Estados de focus para accesibilidad */
 .hero-button:focus,
 .widget-carousel-control:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
 }
 
 /* Prevenir flash de contenido sin estilo */
 .fade-in {
    will-change: opacity, transform;
 }