/* ===================================================
   GOLDEN DAWN - RESPONSIVE LAYER (responsive.css)
   Media Queries Consolidados por Breakpoint
   =================================================== */

/* ---------------------------------------------------
   1. Dispositivos sin hover (Touch screens)
   --------------------------------------------------- */
@media (hover: none) {
    .zoom-label {
        display: none;
    }
}

/* ---------------------------------------------------
   2. Breakpoint: max-width 1050px (Laptops pequeñas y Tablets)
   --------------------------------------------------- */
@media (max-width: 1050px) {
    header { padding: 0 5vw; }
    nav { gap: 1.4rem; margin-left: auto; margin-right: 1.5rem; }
    .hero { grid-template-columns: 50% 50%; min-height: 700px; }
    .hero { align-items: start; }
    .hero-art {
        aspect-ratio: 1;
        min-height: 0;
        width: 100%;
    }
    .sun-disc {
        height: min(43vw, 500px);
        width: min(43vw, 500px);
    }
    .hero-content { padding-left: 8vw; }
    h1 { font-size: clamp(3.5rem, 8vw, 6rem); }
    .catalogo, footer, .trust-strip, .custom-promo-banner, .studio-hero, .studio-grid {
        padding-left: 8vw;
        padding-right: 8vw;
    }
    .product-detail {
        padding-left: 8vw;
        padding-right: 8vw;
    }
    .section-heading { gap: 2rem; }
    .studio-grid { gap: 4vw; }

    .custom-promo-banner {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        justify-items: center;
        text-align: center;
    }
    .custom-promo-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        max-width: 620px;
    }
    .custom-promo-content .eyebrow {
        justify-content: center;
    }
    .custom-promo-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .custom-promo-actions {
        align-items: center;
    }
    .custom-promo-stamp {
        align-self: center;
        justify-self: center;
        margin: 0;
    }
}

/* ---------------------------------------------------
   3. Breakpoint: max-width 900px (Tablets verticales)
   --------------------------------------------------- */
@media (max-width: 900px) {
    .section-heading {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.5rem;
    }
    .section-heading > p:last-child {
        grid-column: 2;
        justify-self: end;
    }
    .product-detail {
        gap: 3rem;
        grid-template-columns: minmax(0, 1fr);
        padding-top: calc(82px + 1.5rem);
    }
    .product-gallery {
        margin: 0 auto;
    }
    .product-copy {
        margin: 0 auto;
        max-width: 620px;
        width: 100%;
    }
    .studio-grid {
        gap: 3rem;
        grid-template-columns: minmax(0, 1fr);
    }
    .mockup-sticky {
        margin: 0 auto;
        max-width: 620px;
        position: static;
        width: 100%;
    }
    .studio-panel {
        max-width: 620px;
        width: 100%;
    }
    .dtf-hero,
    .dtf-calc-section {
        padding-left: 6vw;
        padding-right: 6vw;
    }
    .dtf-hero-grid {
        gap: 2.5rem;
    }
    .dtf-hero-grid,
    .dtf-calc-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .dtf-specs-grid {
        grid-template-columns: 1fr;
        gap: .85rem;
    }
    .dtf-calc-intro {
        margin-bottom: 2.5rem;
    }
    .dtf-calc-layout > div:last-child {
        position: static;
    }
}

/* ---------------------------------------------------
   4. Breakpoint: max-width 700px (Móviles horizontales y estándar)
   --------------------------------------------------- */
@media (max-width: 700px) {
    body {
        overflow-x: clip;
    }

    /* Cabecera, Menú Móvil y Barra de Anuncios */
    header { height: 70px; padding: 0 6vw; }
    nav { display: none; }
    .menu-toggle { display: flex; }
    .header-link { display: none; }
    header .header-cart-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: .5rem;
        min-width: 44px;
        min-height: 44px;
        padding: .4rem .55rem;
        border-bottom: none;
    }
    .header-cart-btn .cart-btn-label {
        display: none;
    }
    .mobile-nav-cart {
        display: flex;
    }

    /* Hero */
    .hero {
        display: block;
        min-height: auto;
        padding-top: 70px;
    }
    .hero-content { padding: 5.5rem 8vw 3.5rem; }
    h1 { font-size: clamp(3.7rem, 17vw, 6rem); }
    .hero-proof {
        gap: .8rem;
        justify-content: space-between;
        margin-top: 3rem;
    }
    .hero-proof span { font-size: .58rem; }
    .hero-art {
        min-height: clamp(330px, 92vw, 520px);
        width: 100%;
    }
    .hero-art::after { inset: 1rem; }
    .sun-disc {
        height: min(80vw, 420px);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(80vw, 420px);
    }
    .hero-stamp {
        font-size: .68rem;
        height: 62px;
        width: 62px;
    }
    .hero-caption {
        bottom: 9%;
        right: 8%;
        font-size: .62rem;
    }

    /* Catálogo */
    .catalogo { padding: 6rem 8vw 7rem; }
    .section-heading { display: block; margin-bottom: 3rem; }
    .section-heading > div:first-child { margin-bottom: 2rem; }
    .section-heading h2 { font-size: clamp(2.8rem, 14vw, 4rem); }
    .section-heading > p:last-child {
        margin-top: 1.5rem;
        max-width: 34rem;
    }
    .section-intro { max-width: none; }
    .grid-productos {
        gap: 1.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-image { aspect-ratio: 1 / 1.08; }
    .product-image::before { font-size: .55rem; }

    /* Franja de Confianza y Banner Promo */
    .trust-strip { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 8vw; }
    .custom-promo-banner { grid-template-columns: 1fr; gap: 2rem; padding: 5rem 8vw; }

    /* Footer */
    footer { padding: 6rem 8vw 2rem; }
    .footer-main { min-height: 400px; }
    .footer-main h2 { font-size: clamp(3rem, 14vw, 4rem); }
    .btn, .btn-whatsapp, .btn-gold { max-width: 100%; }
    .footer-bottom { flex-wrap: wrap; gap: .8rem; }
    .footer-legal-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: .85rem;
    }
    .cookie-banner {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        padding: 1.15rem 1.2rem;
    }

    /* Detalle de Producto, Reseñas y Páginas Legales */
    .product-detail {
        display: block;
        padding: calc(100px + 1.5rem) 6vw 6rem;
    }
    .reviews-page #main-content,
    .legal-page #main-content {
        padding-top: calc(100px + 1.5rem);
    }
    .review-create-card {
        padding: 1.4rem 1.15rem;
        margin-bottom: 2.5rem;
        border-width: 2.5px;
        box-shadow: 4px 4px 0 var(--ink);
    }
    .review-create-card-header {
        margin-bottom: 1.2rem;
        padding-bottom: .9rem;
    }
    .review-create-card-header h2 {
        font-size: 1.55rem;
    }
    .review-modal {
        padding: 2.2rem 0 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .review-modal-card {
        max-height: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        min-height: min(calc(100dvh - 2.2rem), calc(100vh - 2.2rem));
        border-width: 2.5px 0 0 0;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
    }
    .review-modal-card #review-form {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .review-modal-header {
        padding: 1.15rem 1.25rem .85rem;
        border-radius: 14px 14px 0 0;
    }
    .review-modal-header h3 {
        font-size: 1.35rem;
    }
    .review-modal-body {
        padding: 1rem 1.25rem 1.5rem;
        flex: 1;
    }
    .review-modal-footer {
        padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 12px));
        background: #ffffff !important;
        position: sticky;
        bottom: 0;
        z-index: 20;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
        border-top: 2px dashed var(--line);
    }
    .review-modal-footer::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 250px;
        background: #ffffff;
        pointer-events: none;
    }
    .review-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .star-picker-container {
        padding: .85rem .5rem;
    }
    .star-picker-btn svg {
        width: 28px;
        height: 28px;
    }
    .btn-submit-review {
        padding: .95rem 1.2rem;
        font-size: .92rem;
    }
    .product-copy { margin-top: 3rem; }
    .product-copy h1 { overflow-wrap: anywhere; }
    .product-thumbnails { gap: .5rem; }
    .product-actions {
        gap: .65rem;
        max-width: none;
    }
    .product-actions > .action-primary,
    .product-actions > .action-secondary {
        font-size: .7rem;
        letter-spacing: .08em;
        min-height: 54px;
        padding-left: .8rem;
        padding-right: .8rem;
    }
    .size-header {
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }

    /* Estudio de Personalización */
    .studio-page { padding-top: 70px; }
    .studio-hero h1 { overflow-wrap: anywhere; }
    .studio-grid { grid-template-columns: 1fr; padding: 3rem 8vw 6rem; }
    .mockup-sticky { position: static; }
    .base-options, .placement-options, .dual-upload-grid { grid-template-columns: 1fr; }

    /* DTF */
    .dtf-hero { padding-top: 5rem; }
    .dtf-hero-grid { grid-template-columns: 1fr; }
    .dtf-specs-grid { grid-template-columns: 1fr; }
    .dtf-calc-section { padding: 4.5rem 6vw 5.5rem; }
    .dtf-calc-intro { display: block; margin-bottom: 2.5rem; }
    .dtf-calc-intro .eyebrow { margin-bottom: 1.25rem; }
    .dtf-calc-intro h2 { font-size: clamp(2.8rem, 14vw, 4.2rem); margin-bottom: 1.5rem; }
    .dtf-calc-intro > p:last-child { max-width: none; padding-left: 1rem; }
    .dtf-calc-layout { gap: 2rem; }
    .dtf-calculator-card,
    .dtf-total-card,
    .dtf-guidelines-box {
        padding: 1.15rem;
    }
    .dtf-total-card { box-shadow: 4px 4px 0 var(--ink); }
    .dtf-total-usd { font-size: 2.15rem; }
    .dtf-dimensions-box {
        align-items: flex-start;
        flex-direction: column;
        gap: .35rem;
    }
    .dtf-cart-cta,
    .btn-submit-order,
    .btn-whatsapp-secondary {
        min-height: 52px;
    }

    /* Modales y Formularios */
    .checkout-modal-content {
        padding: 1.5rem 1.15rem;
        width: 100%;
        max-width: min(calc(100vw - 1.5rem), 540px);
        max-height: min(92dvh, 92vh);
        overflow-x: hidden;
        margin: auto;
        box-shadow: 6px 6px 0 var(--ink);
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: .85rem;
    }
    .form-label { min-height: auto; }
    .payment-info-card { padding: 1.15rem 1rem; }
    .btn-copy-all {
        font-size: .78rem;
        padding: .95rem .75rem;
    }
    .payment-copy-options { grid-template-columns: 1fr; }
    .payment-copy-options .btn-copy-all { min-height: 52px; }

    .modal-overlay {
        padding: .75rem;
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .modal-content {
        max-height: min(calc(100dvh - 1.5rem), calc(100vh - 1.5rem));
        overflow-y: auto;
        overflow-x: hidden;
        padding: 2rem 1.15rem 1.5rem;
        width: 100%;
        max-width: min(calc(100vw - 1.5rem), 520px);
        margin: auto;
    }
    .order-summary-box {
        padding: .85rem 1rem;
        font-size: .82rem;
        margin: .85rem 0 1.15rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .modal-dual-design-grid {
        grid-template-columns: 1fr;
        gap: .6rem;
    }

    /* Carrito Drawer */
    .cart-drawer {
        max-width: 100%;
        border-left: none;
    }
    .cart-drawer-header { padding: 1.15rem 1.25rem; }
    .cart-drawer-body { padding: 1rem 1.25rem; }
    .cart-drawer-footer { padding: 1.15rem 1.25rem; }
    .cart-toast {
        width: 90%;
        max-width: 340px;
        text-align: center;
        white-space: normal;
        bottom: 1.5rem;
    }
}

/* ---------------------------------------------------
   5. Breakpoint: max-width 480px (Móviles pequeños)
   --------------------------------------------------- */
@media (max-width: 480px) {
    .hero-content {
        padding-left: 6vw;
        padding-right: 6vw;
    }
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .hero-actions .btn,
    .hero-actions .btn-gold,
    .hero-actions .text-link {
        align-self: flex-start;
    }
    .hero-proof {
        flex-wrap: wrap;
    }
    .grid-productos {
        grid-template-columns: 1fr;
    }
    .product-image {
        aspect-ratio: 1 / .95;
    }
    .product-actions > .action-primary,
    .product-actions > .action-secondary {
        font-size: .66rem;
        letter-spacing: .06em;
    }
    .custom-promo-banner {
        padding-left: 6vw;
        padding-right: 6vw;
    }
    .custom-promo-stamp {
        height: 92px;
        width: 92px;
    }
    .footer-main h2 {
        font-size: clamp(2.8rem, 15vw, 4rem);
    }
    .bank-toggle-group,
    .payment-copy-options {
        grid-template-columns: 1fr;
    }
    .form-input,
    .form-select,
    .form-textarea {
        max-width: 100%;
    }
    .size-stepper-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .65rem;
    }
}
