/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Uncut Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #1c1300;
    overflow-x: hidden;
}

/* Container principal */
.web-content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #ffffff;
}

.main-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Exactamente 100vh - landing page completa */
    height: 100dvh; /* Dynamic viewport height para móviles */
    overflow: hidden; /* No scroll dentro de esta sección */
    position: relative; /* Para posicionar la imagen absolutamente */
}

/* Banner superior */
.banner {
    background-color: #f6591f;
    padding: 8px 0; /* Reducido para móviles */
    text-align: center;
    width: 100%;
}

.banner p {
    font-family: 'Uncut Sans', sans-serif;
    color: white;
    font-size: 12px; /* Reducido para móviles */
    font-weight: 400; /* Uncut Sans Regular */
    letter-spacing: -0.24px;
    margin: 0;
    line-height: 1.2;
}

.banner .bold {
    font-weight: 600; /* Uncut Sans Semibold */
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px; /* Reducido para móviles */
    width: 100%;
    background-color: white;
    min-height: 60px; /* Altura mínima controlada */
}

.menu-button,
.cart-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px; /* Reducido de 24px */
    height: 20px; /* Reducido de 24px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button img,
.cart-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo {
    width: 140px; /* Ligeramente más grande para móviles base */
    height: 39px; /* Proporción mantenida */
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navegación desktop (oculta por defecto) */
.desktop-nav {
    display: none;
}

/* Contenido principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Volver a arriba */
    align-items: center;
    padding: 20px 16px 0 16px;
    height: calc(100vh - 83px); /* Altura total menos banner y header */
    height: calc(100dvh - 83px); /* Dynamic viewport height para móviles */
    position: relative;
    z-index: 5; /* Encima de la imagen */
}

/* Texto y botón */
.text-and-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Reducido para aprovechar mejor el espacio */
    text-align: center;
    width: 100%;
    z-index: 10; /* Asegurar que esté encima de todo */
    position: relative;
    margin-top: 20px; /* Mínimo margen para aprovechar espacio */
    margin-bottom: 20px; /* Mínimo espacio antes de la imagen */
}

.title-container {
    width: 280px; /* Reducido para dispositivos pequeños */
    height: auto; /* Altura automática para optimizar espacio */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-container br {
    line-height: 1.0; /* Controlar espacio entre líneas */
}

.main-title {
    font-family: 'Uncut Sans', sans-serif;
    font-size: 32px; /* Reducido de 40px para dispositivos pequeños */
    font-weight: 700; /* Uncut Sans Bold */
    line-height: 1.0; /* Más compacto */
    letter-spacing: -0.6px;
    color: #1c1300;
    text-align: center;
    margin: 0;
    white-space: nowrap; /* Evitar line-breaks automáticos */
}

.subtitle {
    font-family: 'Uncut Sans', sans-serif;
    font-size: 14px; /* Reducido de 16px */
    font-weight: 400; /* Uncut Sans Regular */
    letter-spacing: -0.28px;
    color: #1c1300;
    text-align: center;
    margin: 0;
    width: 100%;
}

.cta-button {
    font-family: 'Uncut Sans', sans-serif;
    background-color: #f6591f;
    border: 1px solid #f2dbdb;
    border-radius: 40px;
    padding: 10px 28px; /* Reducido para optimizar espacio */
    font-size: 14px; /* Reducido de 16px */
    font-weight: 700; /* Uncut Sans Bold */
    letter-spacing: -0.28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 20; /* Asegurar que esté encima de la imagen */
    pointer-events: auto;
}

.cta-button:hover {
    background-color: #e54a15;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(246, 89, 31, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Sección de imagen */
.image-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45vh; /* Reducido para dar más espacio al contenido superior */
    height: 45dvh; /* Dynamic viewport height - considera barras del navegador */
    min-height: 320px; /* Mínimo controlado */
    max-height: 420px; /* Más controlado */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 1; /* Detrás del contenido de texto */
    pointer-events: none;
}

/* Soporte adicional para navegadores móviles con barras problemáticas */
@supports not (height: 1dvh) {
    .image-section {
        height: calc(50vh + 30px); /* Compensación mínima */
        min-height: 370px;
    }
}

.image-container {
    width: 100%;
    max-width: min(90vw, 400px); /* Adaptativo al ancho, máximo 400px */
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    pointer-events: none;
    z-index: 0;
    /* Asegurar que la imagen nunca se corte */
    max-height: 100%;
    max-width: 100%;
}

.gradient-overlay {
    width: 100%;
    height: 70%; /* Altura mayor para transición suave */
    min-height: 160px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2; /* Encima de la imagen pero debajo del texto */
    pointer-events: none;
}

/* Menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    left: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #1c1300;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    margin-top: 60px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    font-family: 'Uncut Sans', sans-serif;
    color: #1c1300;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600; /* Uncut Sans Semibold */
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #f6591f;
}

/* iPhone 14 Pro y dispositivos similares (390x844) */
@media (min-width: 375px) and (max-width: 400px) and (min-height: 800px) and (max-height: 900px) {
    /* Banner responsive */
    .banner {
        font-size: 11px;
        padding: 6px 12px;
        letter-spacing: -0.22px;
    }
    
    /* Header responsive */
    .header {
        padding: 10px 12px;
        min-height: 55px;
    }
    
    .logo {
        width: 110px; /* Ligeramente más grande para iPhone 14 Pro */
        height: 31px; /* Proporción mantenida */
    }
    
    .hamburger-icon {
        width: 18px;
        height: 18px;
    }
    
    .cart-button img {
        width: 18px;
        height: 18px;
    }
    
    .mobile-menu-button,
    .cart-button {
        padding: 5px;
    }
    
    /* Contenido principal */
    .main-title {
        font-size: 30px; /* Reducido para iPhone 14 Pro */
        line-height: 0.95;
        white-space: nowrap;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .cta-button {
        font-size: 13px;
        padding: 9px 26px;
    }
    
    .text-and-button {
        gap: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .title-container {
        width: 260px; /* Más compacto para iPhone 14 Pro */
    }
    
    .image-section {
        height: 38vh; /* Significativamente reducido para evitar colisión */
        height: 38dvh;
        max-height: 320px;
        min-height: 280px;
    }
    
    .gradient-overlay {
        height: 70%;
        min-height: 120px;
    }
}

/* Media query para pantallas altas móviles */
@media (min-height: 800px) and (max-width: 767px) {
    /* Banner responsive */
    .banner {
        font-size: 13px;
        padding: 8px 14px;
        letter-spacing: -0.26px;
    }
    
    /* Header responsive */
    .header {
        padding: 14px 16px;
        min-height: 65px;
    }
    
    .logo {
        width: 130px; /* Para pantallas altas móviles */
        height: 36px; /* Proporción mantenida */
    }
    
    .hamburger-icon {
        width: 22px;
        height: 22px;
    }
    
    .cart-button img {
        width: 22px;
        height: 22px;
    }
    
    .mobile-menu-button,
    .cart-button {
        padding: 7px;
    }
    
    /* Contenido principal */
    .main-title {
        font-size: 36px; /* Ligeramente más grande en pantallas altas */
        line-height: 1.05;
        white-space: nowrap;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .cta-button {
        font-size: 15px;
        padding: 11px 30px;
    }
    
    .text-and-button {
        gap: 14px;
        margin-top: 30px; /* Reducido para aprovechar espacio */
        margin-bottom: 25px;
    }
    
    .image-section {
        height: 45vh; /* Controlado para pantallas altas */
        height: 45dvh;
        max-height: 400px;
        min-height: 320px;
    }
    
    .gradient-overlay {
        height: 70%;
        min-height: 140px;
    }
}

/* Responsive Design - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-container {
        max-width: 768px;
        margin: 0 auto;
    }
    
    .header {
        padding: 20px 32px;
    }
    
    .main-content {
        padding: 40px 32px 0 32px;
        height: calc(100vh - 100px); /* Ajuste para tablet */
        justify-content: flex-start;
    }
    
    .main-title {
        font-family: 'Uncut Sans', sans-serif;
        font-size: 48px;
        font-weight: 700; /* Uncut Sans Bold */
        letter-spacing: -0.96px;
    }
    
    .subtitle {
        font-size: 18px;
        letter-spacing: -0.36px;
    }
    
    .cta-button {
        font-size: 18px;
        padding: 14px 40px;
    }
    
    .image-section {
        height: 50vh; /* Aumentado para tablet */
        min-height: 350px;
        max-height: 500px;
    }
    
    .text-and-button {
        margin-top: 25px;
        margin-bottom: 40px;
    }
    
    .image-container {
        max-width: min(85vw, 500px);
    }
    
    .gradient-overlay {
        height: 45%;
        min-height: 150px;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .main-container {
        max-width: 1024px;
    }
    
    .header {
        padding: 24px 48px;
    }
    
    .main-content {
        padding: 48px 48px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 48px;
        height: calc(100vh - 120px); /* Altura completa menos header */
    }
    
    .text-and-button {
        flex: 1;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }
    
    .title-container {
        width: auto;
        height: auto;
    }
    
    .main-title {
        font-family: 'Uncut Sans', sans-serif;
        font-size: 56px;
        font-weight: 700; /* Uncut Sans Bold */
        letter-spacing: -1.12px;
        text-align: left;
    }
    
    .subtitle {
        text-align: left;
        font-size: 20px;
    }
    
    .cta-button {
        align-self: flex-start;
        font-size: 20px;
        padding: 16px 48px;
    }
    
    /* En desktop, la imagen ocupa el lado derecho */
    .image-section {
        position: static;
        flex: 1;
        height: 100%;
        max-height: none;
        justify-content: center;
    }
    
    .image-container {
        width: 100%;
        max-width: 500px;
        height: 100%;
        justify-content: center;
    }
    
    .hero-image {
        object-position: center;
    }
    
    .gradient-overlay {
        height: 30%;
        min-height: 120px;
    }
    
    /* Ocultar menú hamburguesa en desktop */
    .menu-button {
        display: none;
    }
    
    /* Mostrar navegación desktop */
    .desktop-nav {
        display: flex !important;
        gap: 32px;
        align-items: center;
    }
    
    .desktop-nav a {
        font-family: 'Uncut Sans', sans-serif;
        color: #1c1300;
        text-decoration: none;
        font-weight: 600; /* Uncut Sans Semibold */
        font-size: 16px;
        transition: color 0.3s ease;
    }
    
    .desktop-nav a:hover {
        color: #f6591f;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .main-container {
        max-width: 1200px;
    }
    
    .main-title {
        font-family: 'Uncut Sans', sans-serif;
        font-size: 64px;
        font-weight: 700; /* Uncut Sans Bold */
        letter-spacing: -1.28px;
    }
    
    .subtitle {
        font-size: 22px;
    }
}

/* Optimización para pantallas pequeñas */
@media (max-width: 360px) {
    /* Banner responsive */
    .banner {
        font-size: 10px;
        padding: 6px 10px;
        letter-spacing: -0.20px;
    }
    
    /* Header responsive */
    .header {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .logo {
        width: 100px; /* Pantallas pequeñas */
        height: 28px; /* Proporción mantenida */
    }
    
    .hamburger-icon {
        width: 16px;
        height: 16px;
    }
    
    .cart-button img {
        width: 16px;
        height: 16px;
    }
    
    .mobile-menu-button,
    .cart-button {
        padding: 4px;
    }
    
    /* Contenido principal */
    .main-title {
        font-size: 28px; /* Aún más pequeño en pantallas muy pequeñas */
        line-height: 0.95;
        white-space: nowrap;
    }
    
    .subtitle {
        font-size: 12px; /* Más pequeño en pantallas muy pequeñas */
    }
    
    .cta-button {
        font-size: 12px;
        padding: 8px 24px;
    }
    
    .text-and-button {
        gap: 8px; /* Gap mínimo para pantallas muy pequeñas */
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .title-container {
        width: 250px; /* Más pequeño en pantallas muy pequeñas */
    }
    
    .image-section {
        height: 40vh; /* Reducido para dar más espacio al texto */
        height: 40dvh;
        min-height: 280px;
        max-height: 350px;
    }
    
    .image-container {
        max-width: 95vw;
    }
}

/* Dispositivos extremadamente pequeños */
@media (max-width: 280px) {
    /* Banner responsive */
    .banner {
        font-size: 9px;
        padding: 5px 8px;
        letter-spacing: -0.18px;
    }
    
    /* Header responsive */
    .header {
        padding: 6px 8px;
        min-height: 45px;
    }
    
    .logo {
        width: 85px; /* Dispositivos extremos */
        height: 24px; /* Proporción mantenida */
    }
    
    .hamburger-icon {
        width: 14px;
        height: 14px;
    }
    
    .cart-button img {
        width: 14px;
        height: 14px;
    }
    
    .mobile-menu-button,
    .cart-button {
        padding: 3px;
    }
    
    /* Contenido principal */
    .main-title {
        font-size: 24px; /* Más pequeño para dispositivos extremos */
        line-height: 0.9;
        white-space: nowrap;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .cta-button {
        font-size: 11px;
        padding: 7px 20px;
    }
    
    .text-and-button {
        gap: 6px; /* Gap mínimo para dispositivos extremos */
        margin-top: 12px;
        margin-bottom: 12px;
    }
    
    .title-container {
        width: 220px; /* Más compacto */
    }
    
    .image-section {
        height: 35vh; /* Significativamente reducido */
        height: 35dvh;
        min-height: 240px; /* Mínimo más bajo */
        max-height: 300px; /* Máximo más controlado */
    }
    
    .gradient-overlay {
        height: 65%; /* Overlay proporcionalmente reducido */
        min-height: 100px; /* Mínimo más bajo */
    }
    
    .image-container {
        max-width: 90vw; /* Ligeramente más pequeño */
    }
    
    .hero-image {
        object-fit: contain; /* Asegurar que se mantenga proporcionado */
        object-position: bottom center;
    }
}

/* Pantallas extra altas móviles */
@media (min-height: 900px) and (max-width: 767px) {
    .image-section {
        height: 65vh; /* Aumentado para pantallas muy altas */
        height: 65dvh; /* Dynamic viewport height */
        max-height: 600px;
        min-height: 470px; /* Mínimo mayor */
    }
    
    .text-and-button {
        margin-top: 20px; /* Reducido */
        margin-bottom: 45px;
    }
    
    .gradient-overlay {
        height: 65%;
        min-height: 200px;
    }
}

/* Pantallas extra altas tablets */
@media (min-height: 900px) and (min-width: 768px) and (max-width: 1023px) {
    .image-section {
        height: 55vh; /* Aumentado para tablets muy altas */
        max-height: 550px;
        min-height: 380px;
    }
    
    .text-and-button {
        margin-top: 40px;
        margin-bottom: 60px;
    }
    
    .gradient-overlay {
        height: 55%;
        min-height: 170px;
    }
}

/* Dispositivos ultra altos como Samsung S25 Ultra */
@media (min-height: 1000px) and (max-width: 767px) {
    /* Banner responsive */
    .banner {
        font-size: 15px;
        padding: 10px 18px;
        letter-spacing: -0.30px;
    }
    
    /* Header responsive */
    .header {
        padding: 18px 20px;
        min-height: 75px;
    }
    
    .logo {
        width: 160px; /* S25 Ultra más grande */
        height: 44px; /* Proporción mantenida */
    }
    
    .hamburger-icon {
        width: 26px;
        height: 26px;
    }
    
    .cart-button img {
        width: 26px;
        height: 26px;
    }
    
    .mobile-menu-button,
    .cart-button {
        padding: 9px;
    }
    
    /* Contenido principal */
    .main-title {
        font-size: 42px; /* Más grande en S25 Ultra */
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 17px;
    }
    
    .cta-button {
        font-size: 17px;
        padding: 13px 34px;
    }
    
    .text-and-button {
        gap: 18px;
        margin-top: 40px; /* Optimizado para aprovechar espacio */
        margin-bottom: 30px;
    }
    
    .image-section {
        height: 50vh; /* Controlado para S25 Ultra */
        height: 50dvh;
        max-height: 500px;
        min-height: 400px;
    }
    
    .gradient-overlay {
        height: 75%;
        min-height: 180px;
    }
}

/* Soporte adicional para S25 Ultra sin dvh */
@media (min-height: 1000px) and (max-width: 767px) {
    @supports not (height: 1dvh) {
        .image-section {
            height: calc(60vh + 50px); /* Compensación para barras */
            min-height: 520px;
        }
    }
}

/* Dispositivos extremadamente altos */
@media (min-height: 1200px) and (max-width: 767px) {
    .image-section {
        height: 75vh; /* Máxima altura para dispositivos extremos */
        height: 75dvh; /* Dynamic viewport height */
        max-height: 800px;
        min-height: 550px; /* Mínimo extremadamente alto */
    }
    
    .text-and-button {
        margin-top: 10px;
        margin-bottom: 30px; /* Mínimo espacio para máxima imagen */
    }
    
    .gradient-overlay {
        height: 75%;
        min-height: 240px;
    }
}

/* Animaciones y transiciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title,
.subtitle,
.cta-button {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states mejorados */
.menu-button:focus,
.cart-button:focus,
.cta-button:focus,
.close-menu:focus {
    outline: 2px solid #f6591f;
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-nav a:focus,
.desktop-nav a:focus {
    outline: 2px solid #f6591f;
    outline-offset: 2px;
    border-radius: 4px;
}

