/* ==========================================================================
   FLORISTERÍA LAUXAN · ADAPTABILIDAD RESPONSIVE (MÓVIL, TABLET, ESCRITORIO)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PANTALLAS GRANDES Y MEDIANAS (Hasta 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    :root {
        --container-padding: 1.5rem;
    }

    .desktop-nav .nav-links {
        gap: 0.75rem;
    }

    .presentation-grid {
        gap: 3.5rem;
    }

    .services-editorial-grid {
        gap: 1.75rem;
    }

    .services-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card-1,
    .service-card-2,
    .service-card-3,
    .service-card-4,
    .service-card-5,
    .service-card-6 {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-auto-rows: 200px;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   2. TABLETS EN ORIENTACIÓN VERTICAL (Hasta 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Navegación Móvil */
    .desktop-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero-section {
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 5rem;
    }

    /* Presentación */
    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .media-composition {
        max-width: 600px;
        margin: 0 auto;
    }

    .media-frame-large {
        height: 420px;
    }

    .store-photo-grid .media-frame {
        height: 150px;
    }

    .store-credentials {
        grid-template-columns: 1fr;
    }

    .store-credentials-image {
        height: 240px;
    }

    /* Galería */
    .gallery-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 220px;
    }

    .gallery-item { grid-column: span 3; }
    .gallery-item.item-large { grid-column: span 6; grid-row: span 2; }
    .gallery-item.item-wide { grid-column: span 6; }
    .gallery-item.item-tall { grid-column: span 3; grid-row: span 2; }
    .gallery-item:nth-child(4n + 1) { grid-column: span 6; grid-row: span 2; }
    .gallery-item:nth-child(4n + 2) { grid-column: span 3; grid-row: span 1; }
    .gallery-item:nth-child(4n + 3) { grid-column: span 3; grid-row: span 2; }
    .gallery-item:nth-child(4n + 4) { grid-column: span 6; grid-row: span 1; }
    .gallery-item.item-tall { grid-column: span 3; grid-row: span 2; }

    /* Lightbox flechas laterales */
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }

    /* Experiencia 3D */
    .three-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .three-canvas-wrapper {
        height: 440px;
    }

    /* Emociones */
    .emotion-block,
    .emotion-block-reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .emotion-block-reverse .emotion-media {
        order: 1;
    }

    .emotion-block-reverse .emotion-content {
        order: 2;
    }

    .emotion-media {
        height: 380px;
    }

    /* Proceso */
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Ubicación */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand-col {
        grid-column: span 2;
    }
}

/* --------------------------------------------------------------------------
   3. DISPOSITIVOS MÓVILES (Hasta 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 72px;
        --space-3xl: 4rem;
        --space-2xl: 2.75rem;
    }

    html, body {
        overflow-x: clip;
        max-width: 100%;
    }

    /* Cabecera y Menú en Móvil */
    .site-header {
        height: 72px;
    }

    .brand-name {
        font-size: 1.55rem;
    }

    .brand-tagline {
        font-size: 0.625rem;
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
    }

    /* Hero */
    .hero-section {
        padding-top: calc(var(--header-height) + 1.25rem);
        padding-bottom: 4.5rem;
        min-height: 92vh;
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
    }

    .hero-eyebrow {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .hero-eyebrow .eyebrow-line {
        width: 22px;
    }

    .hero-headline {
        font-size: clamp(2.4rem, 9vw, 3.4rem);
        line-height: 1.14;
        margin-bottom: 1.35rem;
    }

    .hero-subtext {
        font-size: 1.05rem;
        margin-bottom: 2.25rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        padding: 1.05rem 1.5rem;
    }

    .hero-scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 2rem;
    }

    .scroll-link {
        flex-direction: row;
        gap: 0.75rem;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }

    .scroll-mouse {
        flex-shrink: 0;
    }

    /* Presentación */
    .lead-paragraph {
        font-size: 1.25rem;
    }

    .media-composition {
        gap: 1rem;
    }

    .media-frame-large {
        height: 340px;
    }

    .store-photo-grid .media-frame {
        height: 120px;
    }

    .store-credentials {
        gap: 1rem;
        padding: 0.75rem;
    }

    .store-credentials-image {
        height: 190px;
    }

    /* Servicios en columna única con botones cómodos para pulgar */
    .services-editorial-grid {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }

    .service-media {
        height: 220px;
    }

    .service-featured .service-media {
        height: 240px;
    }

    .service-content {
        padding: 1.75rem 1.35rem;
    }

    .service-title {
        font-size: 1.6rem;
    }

    .service-action-btn {
        width: 100%;
        min-height: 48px;
        display: flex;
        justify-content: center;
    }

    /* Galería con filtros deslizables horizontalmente */
    .gallery-filters {
        width: 100%;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.6rem;
        scrollbar-width: none;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.65rem 1.15rem;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .gallery-item,
    .gallery-item.item-large,
    .gallery-item.item-wide,
    .gallery-item.item-tall {
        height: 280px;
    }

    /* Lightbox en Móvil */
    .lightbox-container {
        max-width: 95vw;
        width: 95vw;
    }

    .lightbox-content {
        width: 100%;
    }

    .lightbox-image {
        max-height: 48vh;
    }

    .lightbox-caption {
        padding: 1.25rem 1.25rem;
    }

    .lightbox-title {
        font-size: 1.35rem;
    }

    .lightbox-close {
        top: -3.2rem;
        right: 0.25rem;
        width: 42px;
        height: 42px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
    }

    .lightbox-prev {
        left: 0.25rem;
    }

    .lightbox-next {
        right: 0.25rem;
    }

    /* Three.js Canvas en Móvil */
    .three-section {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    .three-layout {
        gap: 2rem;
    }

    .three-info .section-tag {
        margin-bottom: 1rem;
    }

    .three-info .section-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.12;
        margin-bottom: 1.25rem;
    }

    .three-description {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .three-instructions {
        gap: 0.85rem;
        margin-bottom: 1.5rem;
        padding: 1.1rem;
    }

    .instruction-item {
        align-items: flex-start;
        gap: 0.65rem;
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .instruction-dot {
        margin-top: 0.45rem;
    }

    .three-cta-wrap,
    .three-cta-wrap .btn {
        width: 100%;
    }

    .three-cta-wrap .btn {
        min-height: 50px;
        padding: 0.85rem 1rem;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }

    .three-canvas-wrapper {
        height: min(78vw, 390px);
        min-height: 315px;
        border-radius: var(--radius-md);
    }

    .canvas-hint {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
        transform: none;
        justify-content: center;
        padding: 0.45rem 0.7rem;
        font-size: 0.68rem;
        text-align: center;
        box-sizing: border-box;
    }

    /* Emociones */
    .emotions-blocks {
        gap: 2.5rem;
    }

    .emotion-media {
        width: 100%;
        height: clamp(210px, 58vw, 280px);
        aspect-ratio: 16 / 10;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .emotion-media img {
        display: block;
        object-position: center center;
        transform: none;
    }

    .emotion-content {
        padding: 0 0.25rem;
    }

    .emotion-tag {
        margin-bottom: 0.6rem;
    }

    .emotion-heading {
        font-size: clamp(2rem, 9vw, 2.2rem);
        margin-bottom: 0.9rem;
    }

    .emotion-text {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 1.35rem;
    }

    .emotion-cta {
        max-width: 100%;
        align-items: flex-start;
        line-height: 1.35;
    }

    .emotion-cta span {
        flex: 1;
    }

    .emotion-cta .icon {
        flex: 0 0 auto;
        margin-top: 0.15rem;
    }

    /* Proceso */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .process-step {
        padding: 2rem 1.5rem;
    }

    .process-banner {
        padding: 2rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .process-banner .btn {
        width: 100%;
    }

    /* Formulario de WhatsApp en Móvil */
    .contact-card-wrapper {
        padding: 2.25rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-group-full {
        grid-column: span 1;
    }

    /* Evitar zoom automático en Safari iOS en inputs */
    .form-control {
        font-size: 16px !important;
        padding: 0.95rem 1.15rem;
    }

    .btn-submit,
    .btn-whatsapp-submit {
        width: 100%;
        min-width: 0;
        padding: 1.15rem 1.25rem;
        font-size: 1.02rem;
        white-space: normal;
        text-align: center;
    }

    /* Ubicación y Ficha */
    .location-card {
        padding: 2rem 1rem;
    }

    .location-card .section-tag {
        gap: 0.4rem;
        letter-spacing: 0.1em;
        line-height: 1.4;
    }

    .location-heading {
        font-size: clamp(1.9rem, 8vw, 2.35rem);
        line-height: 1.1;
    }

    .location-intro {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .location-action-btns {
        flex-direction: column;
        gap: 0.85rem;
    }

    .location-action-btns .btn {
        width: 100%;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
    }

    .map-wrapper {
        min-height: 320px;
    }

    .map-wrapper iframe {
        min-height: 320px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Botón Flotante WhatsApp */
    .floating-whatsapp {
        bottom: 4rem;
        right: 1.25rem;
    }

    .whatsapp-btn {
        width: 54px;
        height: 54px;
    }

    .whatsapp-btn .icon {
        width: 30px;
        height: 30px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* Banner Cookies */
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-actions .btn {
        flex: 1;
    }
}

/* --------------------------------------------------------------------------
   4. MÓVILES ESTRECHOS (Hasta 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero-section {
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 3rem;
    }

    .hero-eyebrow .eyebrow-text {
        font-size: 0.58rem;
        letter-spacing: 0.14em;
    }

    .hero-headline {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .hero-subtext {
        font-size: 0.98rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
    }

    .hero-cta-group {
        gap: 0.7rem;
    }

    .hero-cta-group .btn {
        min-height: 52px;
        padding: 0.9rem 1rem;
        white-space: normal;
        line-height: 1.25;
    }

    .hero-scroll-indicator {
        margin-top: 1.5rem;
    }

    .scroll-link {
        font-size: 0.62rem;
    }

    .three-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .three-canvas-wrapper {
        height: min(84vw, 350px);
        min-height: 290px;
    }

    .canvas-hint {
        font-size: 0.62rem;
    }
}

/* --------------------------------------------------------------------------
   4. TELÉFONOS MUY PEQUEÑOS (Hasta 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
    .brand-name {
        font-size: 1.45rem;
    }

    .section-title {
        font-size: 1.95rem;
    }

    .hero-headline {
        font-size: 2.35rem;
    }

    .emotions-blocks {
        gap: 2.25rem;
    }

    .emotion-media {
        width: 100%;
        height: 205px;
    }

    .emotion-content {
        padding: 0;
    }

    .emotion-text {
        font-size: 0.94rem;
    }
}
