/* ==========================================================================
   FLORISTERÍA LAUXAN · HOJA DE ESTILOS PRINCIPAL
   Dirección de arte: Editorial, elegante, natural, sofisticada y contemporánea.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO & SISTEMA DE TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Paleta Cromática Botánica */
    --color-primary: #263B32;        /* Verde bosque profundo */
    --color-primary-light: #344d42;  /* Verde bosque suave */
    --color-primary-dark: #192721;   /* Verde bosque umbrío */
    --color-secondary: #69775A;      /* Verde oliva botánico */
    --color-secondary-soft: #859573; /* Verde oliva claro */
    --color-secondary-light: #e4e8df;/* Tinte oliva para insignias */
    --color-bg: #F6F3EC;             /* Marfil cálido base */
    --color-bg-white: #FFFDF8;       /* Blanco cálido papel artesano */
    --color-beige: #DCD3C3;          /* Beige lino natural */
    --color-beige-light: #EFE9DE;    /* Beige muy suave */
    --color-text: #282A25;           /* Gris carbón orgánico */
    --color-text-muted: #5E6358;     /* Gris oliva para lectura suave */
    --color-text-light: #F6F3EC;     /* Texto para fondos oscuros */
    --color-text-light-muted: #B8BFB2;/* Texto secundario claro */
    --color-gold: #BFA473;           /* Latón / dorado orgánico */
    --color-terracotta: #C48259;     /* Acento cálido artesano */
    --color-error: #B33927;          /* Rojo terracota para errores */
    --color-success: #366346;        /* Verde botánico para éxito */

    /* Tipografía */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Escala Modular Tipográfica */
    --fs-xs: 0.8125rem;    /* 13px */
    --fs-sm: 0.9375rem;    /* 15px */
    --fs-base: 1.0625rem;  /* 17px */
    --fs-md: 1.25rem;      /* 20px */
    --fs-lg: 1.5rem;       /* 24px */
    --fs-xl: 1.875rem;     /* 30px */
    --fs-2xl: 2.375rem;    /* 38px */
    --fs-3xl: 3.25rem;     /* 52px */
    --fs-4xl: 4.5rem;      /* 72px */

    /* Espaciado & Ritmo Vertical */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4.5rem;
    --space-3xl: 6.5rem;

    /* Estructura & Layout */
    --container-max: 1280px;
    --container-padding: 2rem;
    --header-height: 88px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Elevaciones & Sombras Suaves */
    --shadow-subtle: 0 4px 20px rgba(38, 59, 50, 0.05);
    --shadow-card: 0 10px 30px rgba(38, 59, 50, 0.08);
    --shadow-hover: 0 20px 40px rgba(38, 59, 50, 0.12);
    --shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.35);

    /* Transiciones */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);
}

/* --------------------------------------------------------------------------
   2. RESET & REGLAS BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: clip;
    min-height: 100vh;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA EDITORIAL & JERARQUÍA
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--color-primary-dark);
}

.title-italic,
.accent-italic {
    font-style: italic;
    font-weight: 400;
    font-family: var(--font-serif);
    color: var(--color-secondary);
}

/* Barra de progreso superior */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-gold));
    z-index: 1000;
    transition: width 0.05s linear;
}

/* Contenedores */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    position: relative;
}

/* Encabezados de Sección */
.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header.text-center {
    text-align: center;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.section-tag.center {
    justify-content: center;
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1.25rem;
}

.section-title.text-light {
    color: var(--color-bg-white);
}

.section-subtitle {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Iconos SVG genéricos */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. BOTONES & LLAMADAS A LA ACCIÓN (CTAs)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.65rem 1.25rem;
    font-size: var(--fs-xs);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(38, 59, 50, 0.25);
}

.btn-secondary {
    background-color: rgba(255, 253, 248, 0.92);
    color: var(--color-primary);
    border: 1px solid rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* Botón estilo enlace textual */
a.btn-text,
button.btn-text {
    padding: 0;
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    gap: 0.5rem;
    display: inline-flex;
    align-items: center;
}

a.btn-text:hover,
button.btn-text:hover {
    color: var(--color-secondary);
    gap: 0.85rem;
}

/* Texto interno (.btn-text) dentro de cualquier botón principal */
.btn > .btn-text,
.btn span.btn-text {
    color: inherit !important;
    border-bottom: none !important;
    padding: 0 !important;
    font-size: inherit;
    font-weight: inherit;
}

/* --------------------------------------------------------------------------
   5. CABECERA & NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
    background: transparent;
}

.site-header.scrolled {
    height: 72px;
    background: rgba(246, 243, 236, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(40, 42, 37, 0.06);
    border-bottom: 1px solid rgba(220, 211, 195, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logotipo */
.brand-logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-bg-white);
    transition: color var(--transition-base);
    line-height: 1;
}

.brand-tagline {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 253, 248, 0.75);
    margin-top: 3px;
    transition: color var(--transition-base);
}

.site-header.scrolled .brand-name {
    color: var(--color-primary-dark);
}

.site-header.scrolled .brand-tagline {
    color: var(--color-secondary);
}

/* Navegación Escritorio */
.desktop-nav {
    flex: 1;
    min-width: 0;
}

.desktop-nav .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    flex-wrap: nowrap;
}

.desktop-nav .nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(255, 253, 248, 0.9);
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background-color: var(--color-gold);
    transition: width var(--transition-base);
}

.desktop-nav .nav-link:hover::after {
    width: 100%;
}

.site-header.scrolled .desktop-nav .nav-link {
    color: var(--color-text);
}

.site-header.scrolled .desktop-nav .nav-link:hover {
    color: var(--color-primary);
}

.site-header.scrolled .desktop-nav .nav-link::after {
    background-color: var(--color-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-shrink: 0;
}

.site-header:not(.scrolled) .header-cta {
    color: var(--color-bg-white);
    border-color: rgba(255, 253, 248, 0.8);
}

.site-header:not(.scrolled) .header-cta:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger-box {
    width: 26px;
    height: 18px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 2px;
    background-color: var(--color-bg-white);
    position: absolute;
    transition: all var(--transition-base);
}

.site-header.scrolled .hamburger-inner,
.site-header.scrolled .hamburger-inner::before,
.site-header.scrolled .hamburger-inner::after {
    background-color: var(--color-text);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: '';
    top: -7px;
}

.hamburger-inner::after {
    content: '';
    bottom: -7px;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner {
    background-color: transparent !important;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Menú Móvil Lateral (Drawer) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    visibility: hidden;
    transition: visibility var(--transition-base);
}

.mobile-drawer.open {
    visibility: visible;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 39, 33, 0.7);
    opacity: 0;
    backdrop-filter: blur(6px);
    transition: opacity var(--transition-base);
}

.mobile-drawer.open .drawer-backdrop {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-bg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-beige);
}

.drawer-top .brand-name {
    color: var(--color-primary);
}

.drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-beige-light);
    color: var(--color-primary);
}

.drawer-nav {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.drawer-links li {
    margin-bottom: 1.25rem;
}

.drawer-link {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    display: block;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.drawer-link:hover {
    color: var(--color-secondary);
    transform: translateX(6px);
}

.drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-beige);
}

.drawer-contact-info {
    margin-bottom: 1.25rem;
}

.drawer-location {
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.drawer-phone {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. SECCIÓN 1: HERO / PORTADA
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 6rem;
    overflow: hidden;
    color: var(--color-bg-white);
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 39, 33, 0.65) 0%,
        rgba(26, 39, 33, 0.78) 55%,
        rgba(26, 39, 33, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-eyebrow .eyebrow-line {
    width: 36px;
    height: 1px;
    background-color: var(--color-gold);
}

.hero-eyebrow .eyebrow-text {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-beige);
}

.hero-brand {
    margin-bottom: 0.75rem;
}

.hero-logo-script {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.2vw, 2.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-gold);
    letter-spacing: 0.05em;
}

.hero-headline {
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--color-bg-white);
    margin-bottom: 1.75rem;
}

.headline-row {
    display: block;
}

.hero-subtext {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 300;
    color: rgba(255, 253, 248, 0.88);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.75rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Indicador de scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 253, 248, 0.7);
    font-size: var(--fs-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.scroll-link:hover {
    color: var(--color-bg-white);
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 253, 248, 0.6);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background-color: var(--color-gold);
    border-radius: 2px;
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. SECCIÓN 2: PRESENTACIÓN EDITORIAL
   -------------------------------------------------------------------------- */
.presentation-section {
    background-color: var(--color-bg);
    overflow: hidden;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}

.presentation-body {
    margin-bottom: 2.5rem;
}

.lead-paragraph {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.4;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.presentation-body p:not(.lead-paragraph) {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    font-size: var(--fs-base);
}

.presentation-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-beige);
}

.pillar-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.pillar-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1;
}

.pillar-title {
    font-size: var(--fs-md);
    margin-bottom: 0.35rem;
}

.pillar-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

/* Composición de medios asimétrica */
.media-composition {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.media-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.media-frame:hover img {
    transform: scale(1.04);
}

.media-frame-large {
    width: 100%;
    height: 410px;
}

.store-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

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

.store-credentials {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-beige);
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-md);
}

.store-credentials-image {
    height: 210px;
    background: var(--color-bg);
}

.store-credentials-image img {
    object-fit: contain;
}

.store-credentials-copy {
    padding: 0 0.5rem;
}

.store-credentials-copy h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.15;
    color: var(--color-primary-dark);
    margin: 0.5rem 0 0.75rem;
}

.store-credentials-copy p {
    color: var(--color-text-muted);
    line-height: 1.65;
}

.media-caption {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(246, 243, 236, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.caption-location {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
}

.caption-tag {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   8. SECCIÓN 3: SERVICIOS DIFERENCIADOS
   -------------------------------------------------------------------------- */
.services-section {
    background-color: var(--color-bg-white);
}

.services-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    border: 1px solid rgba(220, 211, 195, 0.6);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

/* Distribución uniforme: tres tarjetas por fila en escritorio. */
.service-card-1,
.service-card-2,
.service-card-3,
.service-card-4,
.service-card-5,
.service-card-6 {
    grid-column: span 1;
}

.service-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.service-card:hover .service-media img {
    transform: scale(1.06);
}

.service-index {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 253, 248, 0.94);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-subtle);
}

.service-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-category {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.service-title {
    font-size: 1.85rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-description {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-highlights {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-highlights li {
    font-size: var(--fs-xs);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-highlights li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

.service-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   9. SECCIÓN 4: PORTFOLIO & GALERÍA
   -------------------------------------------------------------------------- */
.gallery-section {
    background-color: var(--color-bg);
}

.gallery-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.gallery-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-beige);
    background: transparent;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
}

/* Grilla Asimétrica */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
    gap: 1.75rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    grid-column: span 4;
    transition: transform var(--transition-base), opacity 0.4s ease;
}

.gallery-item.item-large {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery-item.item-wide {
    grid-column: span 6;
    grid-row: span 1;
}

.gallery-item.item-tall {
    grid-column: span 3;
    grid-row: span 2;
}

/* Ritmo mosaico para que cada bloque tenga una presencia distinta. */
.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;
}

.gallery-item-inner {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-beige-light) 100%);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--color-beige-light);
    transition: transform 0.7s var(--ease-out-expo);
}

.gallery-item img.is-loading {
    opacity: 0.45;
}

.gallery-item img.is-loaded {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(38, 59, 50, 0.1) 0%,
        rgba(38, 59, 50, 0.88) 100%
    );
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.06);
}

.gallery-info {
    transform: translateY(12px);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-info,
.gallery-item:focus .gallery-info {
    transform: translateY(0);
}

.gallery-tag {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.35rem;
}

.gallery-item-title {
    font-size: 1.45rem;
    color: var(--color-bg-white);
    margin-bottom: 0.5rem;
}

.gallery-item-desc {
    font-size: var(--fs-xs);
    color: var(--color-beige-light);
    line-height: 1.45;
}

.gallery-zoom-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: rgba(255, 253, 248, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-base);
}

.lightbox-modal.open {
    visibility: visible;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 25, 0.92);
    backdrop-filter: blur(12px);
}

.lightbox-container {
    position: relative;
    z-index: 2001;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    max-width: 860px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    background-color: #1a2721;
}

.lightbox-caption {
    padding: 1.5rem 2rem;
    background-color: var(--color-bg-white);
}

.lightbox-category {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lightbox-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin: 0.35rem 0;
}

.lightbox-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.lightbox-close {
    position: absolute;
    top: -3.5rem;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.2);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 253, 248, 0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.9);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.lightbox-prev {
    left: -4rem;
}

.lightbox-next {
    right: -4rem;
}

.lightbox-nav:hover {
    background: var(--color-bg-white);
    transform: translateY(-50%) scale(1.08);
}

/* --------------------------------------------------------------------------
   10. SECCIÓN 5: EXPERIENCIA 3D (THREE.JS)
   -------------------------------------------------------------------------- */
.three-section {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
    position: relative;
    overflow: hidden;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.three-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: center;
}

.three-description {
    font-size: var(--fs-md);
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--color-text-light-muted);
}

.three-instructions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 253, 248, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-gold);
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-sm);
    color: var(--color-beige-light);
}

.instruction-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold);
    flex-shrink: 0;
}

.three-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 540px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, #263B32 0%, #16241e 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(255, 253, 248, 0.1);
}

.three-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: pan-y;
}

.three-canvas:active {
    cursor: grabbing;
}

.canvas-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 39, 33, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--fs-xs);
    color: var(--color-beige);
    border: 1px solid rgba(255, 253, 248, 0.1);
    pointer-events: none;
}

.hint-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   11. SECCIÓN 6: TRES FORMAS DE SENTIR LAS FLORES
   -------------------------------------------------------------------------- */
.emotions-section {
    background-color: var(--color-bg);
}

.emotions-blocks {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 3.5rem;
}

.emotion-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.emotion-block-reverse {
    grid-template-columns: 1fr 1fr;
}

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

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

.emotion-media {
    position: relative;
    isolation: isolate;
    height: 480px;
    min-width: 0;
    background-color: var(--color-beige-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.emotion-media img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s var(--ease-out-expo);
}

/* Las imágenes de esta sección deben estar disponibles incluso sin JavaScript. */
.emotions-section .reveal-image::after {
    display: none;
}

.emotion-celebrar .emotion-media img {
    object-position: center 45%;
}

.emotion-acompanar .emotion-media img {
    object-position: center;
}

.emotion-recordar .emotion-media img {
    object-position: center 42%;
}

.emotion-block:hover .emotion-media img {
    transform: scale(1.04);
}

.emotion-tag {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.75rem;
}

.emotion-heading {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    letter-spacing: 0.04em;
    color: var(--color-primary-dark);
    margin-bottom: 1.25rem;
}

.emotion-text {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   12. SECCIÓN 7: CÓMO ENCARGAR
   -------------------------------------------------------------------------- */
.process-section {
    background-color: var(--color-bg-white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
    margin-top: 3.5rem;
    margin-bottom: 4rem;
}

.process-step {
    background: var(--color-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    position: relative;
    border-top: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-primary);
}

.step-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.step-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.process-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-bg-white);
    padding: 3rem 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.banner-heading {
    font-size: 1.95rem;
    color: var(--color-bg-white);
    margin-bottom: 0.5rem;
}

.banner-subtext {
    font-size: var(--fs-md);
    color: var(--color-beige);
}

.process-banner .btn {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border-color: var(--color-bg-white);
}

.process-banner .btn:hover {
    background: var(--color-beige-light);
}

/* --------------------------------------------------------------------------
   13. SECCIÓN 8: FORMULARIO DE CONTACTO & CONVERSIÓN
   -------------------------------------------------------------------------- */
.contact-section {
    background-color: var(--color-bg);
}

.contact-card-wrapper {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 4.5rem 4rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-beige);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    margin-top: 2.5rem;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.required-mark {
    color: var(--color-error);
}

.form-control {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-beige);
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-control:focus {
    background-color: var(--color-bg-white);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(105, 119, 90, 0.18);
}

.highlight-pulse {
    animation: highlightPulse 1.2s ease;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(105, 119, 90, 0.6);
        border-color: var(--color-secondary);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(105, 119, 90, 0.25);
        border-color: var(--color-primary);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(105, 119, 90, 0);
        border-color: var(--color-beige);
    }
}

.form-control.is-invalid {
    border-color: var(--color-error);
    background-color: rgba(179, 57, 39, 0.03);
}

.form-error-msg {
    display: none;
    font-size: var(--fs-xs);
    color: var(--color-error);
    margin-top: 0.4rem;
}

.form-control.is-invalid + .form-error-msg {
    display: block;
}

.form-helper {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-text-muted);
    pointer-events: none;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Consentimiento */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--color-beige);
    border-radius: 4px;
    background-color: var(--color-bg);
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:focus + .custom-checkbox {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(105, 119, 90, 0.2);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--color-bg-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Footer del Formulario */
.form-footer {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-submit {
    min-width: 320px;
    cursor: pointer;
}

/* Botón Destacado de Envío por WhatsApp */
.btn-whatsapp-submit {
    background: #25D366;
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: 0.02em;
    padding: 1.15rem 2.25rem;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    transition: all var(--transition-base);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-submit .btn-text {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.btn-whatsapp-submit .btn-icon,
.btn-whatsapp-submit .icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    color: #FFFFFF !important;
    flex-shrink: 0;
}

.btn-whatsapp-submit:hover {
    background: linear-gradient(135deg, #2ae26e 0%, #189647 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
    color: #FFFFFF !important;
}

.btn-whatsapp-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .btn-spinner {
    display: inline-block;
}

.form-privacy-note {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-align: center;
}

/* Alerta de Envío */
.form-alert {
    margin-top: 2rem;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.form-alert.success {
    background-color: #f1f8f3;
    border: 1.5px solid #27ae60;
    color: #1e5233;
    box-shadow: 0 4px 18px rgba(39, 174, 96, 0.12);
}

.form-alert.error {
    background-color: rgba(179, 57, 39, 0.08);
    border: 1.5px solid var(--color-error);
    color: var(--color-error);
}

.alert-title {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #164028;
}

.form-alert.error .alert-title {
    color: var(--color-error);
}

.alert-msg {
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: #244b34;
}

.form-alert.error .alert-msg {
    color: #6a1a10;
}

.alert-title {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-msg {
    font-size: var(--fs-sm);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. SECCIÓN 9: UBICACIÓN & CONTACTO LOCAL
   -------------------------------------------------------------------------- */
.location-section {
    background-color: var(--color-bg-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: stretch;
}

.location-card {
    background: var(--color-bg);
    padding: 3.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-beige);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.location-intro {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    flex-shrink: 0;
}

.detail-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.detail-val {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.detail-val a:hover {
    color: var(--color-secondary);
}

.detail-hint {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    display: block;
    margin-top: 0.2rem;
}

.location-action-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 480px;
    border: 1px solid var(--color-beige);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.map-overlay-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: var(--shadow-subtle);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #27ae60;
}

/* --------------------------------------------------------------------------
   15. SECCIÓN 10: FOOTER EDITORIAL
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-top: 1px solid rgba(255, 253, 248, 0.08);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 253, 248, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-bg-white);
    display: block;
    margin-bottom: 1rem;
}

.footer-brand-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-light-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-local-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    color: var(--color-gold);
}

.footer-col-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-list a {
    font-size: var(--fs-sm);
    color: var(--color-text-light-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-link-list a:hover {
    color: var(--color-bg-white);
    transform: translateX(4px);
}

.footer-contact-text {
    font-size: var(--fs-sm);
    color: var(--color-text-light-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: var(--color-text-light-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal-links a:hover {
    color: var(--color-bg-white);
}

.sep {
    color: rgba(255, 253, 248, 0.3);
}

/* --------------------------------------------------------------------------
   16. BOTÓN FLOTANTE DE WHATSAPP
   -------------------------------------------------------------------------- */
.floating-whatsapp {
    position: fixed;
    bottom: 4.5rem;
    right: 2rem;
    z-index: 800;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

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

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary-dark);
    color: var(--color-bg-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--color-primary-dark);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* --------------------------------------------------------------------------
   17. BANNER DE COOKIES (RGPD)
   -------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(246, 243, 236, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-beige);
    padding: 1.25rem 0;
    z-index: 1500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 800px;
}

.cookie-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
