/* =====================================================
   AMATISTA · LUXURY DESIGN SYSTEM v2 — Edición 360
   Hero inmersivo · Galería de arcos · Filas editoriales
   Tinta profunda, lila amatista, blanco cálido, oro champán.
   CSS puro: cero recursos externos nuevos.
   ===================================================== */
:root {
    /* Colores principales */
    --color-primary: #8C5FBF;
    --color-primary-deep: #6E4496;
    --color-secondary: #5A3580;
    --color-accent: #B57EDC;
    --color-gold: #C9A86A;
    --color-gold-deep: #A8853F;
    --color-gold-soft: rgba(201, 168, 106, 0.4);
    --color-ink: #14101B;
    --color-ink-soft: #221B2E;
    --color-dark: #1a1a1a;
    --color-light: #FDFCFB;
    --color-cream: #F8F5F0;
    --color-lavender: #F5F1FA;
    --color-gray: #f5f3f7;
    --color-text: #2B2433;
    --color-text-light: #6B6375;
    --hairline: rgba(22, 18, 28, 0.09);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #8C5FBF 0%, #6E4496 100%);
    --gradient-accent: linear-gradient(135deg, #B57EDC 0%, #8C5FBF 100%);
    --gradient-dark: linear-gradient(160deg, #14101B 0%, #221B2E 100%);
    --gradient-gold: linear-gradient(90deg, transparent, var(--color-gold), transparent);

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(22, 18, 28, 0.05), 0 4px 12px rgba(22, 18, 28, 0.04);
    --shadow-md: 0 2px 6px rgba(22, 18, 28, 0.05), 0 12px 32px rgba(22, 18, 28, 0.08);
    --shadow-lg: 0 4px 10px rgba(22, 18, 28, 0.06), 0 24px 56px rgba(22, 18, 28, 0.12);
    --shadow-xl: 0 8px 20px rgba(22, 18, 28, 0.08), 0 40px 90px rgba(22, 18, 28, 0.16);
    --shadow-lilac: 0 10px 30px rgba(110, 68, 150, 0.22);

    /* Tipografía */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.25, 0.6, 0.3, 1);
    --transition-slow: 0.7s cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ===================================
   RESET Y BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.65;
    background-color: var(--color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(140, 95, 191, 0.25);
    color: var(--color-ink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   HERO SECTION · atelier luminoso
   El video vive dentro de un gran arco
   de invernadero enmarcado en oro
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    background:
        radial-gradient(1000px 640px at 88% 8%, rgba(140, 95, 191, 0.10), transparent 62%),
        radial-gradient(760px 520px at -5% 95%, rgba(201, 168, 106, 0.10), transparent 60%),
        var(--color-light);
    overflow: hidden;
}

/* Marca de agua serif, casi invisible */
.hero-section::before {
    content: 'Amatista';
    position: absolute;
    top: 8%;
    left: -2%;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(7rem, 16vw, 13rem);
    line-height: 1;
    color: rgba(110, 68, 150, 0.045);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: clamp(48px, 6vw, 88px);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    position: relative;
    z-index: 2;
}

.hero-left h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.7rem, 5.2vw, 4.5rem);
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 1.5rem;
    line-height: 1.06;
    letter-spacing: -0.015em;
}

.hero-left h1::after {
    content: '';
    display: block;
    width: 76px;
    height: 1px;
    margin-top: 1.6rem;
    background: linear-gradient(90deg, var(--color-gold), rgba(201, 168, 106, 0));
}

/* Breadcrumb → sello editorial */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    font-size: 0.7rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--color-gold-deep);
    margin-bottom: 1.7rem;
    font-weight: 600;
}

.breadcrumb::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-gold);
    flex: none;
}

.breadcrumb a {
    color: inherit;
}

.breadcrumb a:hover {
    color: var(--color-primary-deep);
}

.hero-description {
    font-size: 1.04rem;
    color: var(--color-text-light);
    margin: 0 0 2.7rem;
    line-height: 1.95;
    font-weight: 300;
    max-width: 56ch;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* —— El arco del video —— */
.hero-right {
    position: relative;
    z-index: 1;
    padding: 18px 18px 0 0;
}

/* Eco del arco: contorno dorado desplazado */
.hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 18px;
    left: 18px;
    border: 1px solid rgba(201, 168, 106, 0.55);
    border-radius: 999px 999px 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Florón sobre la cúspide del arco */
.hero-right::after {
    content: '❦';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    font-size: 1.35rem;
    z-index: 3;
    text-shadow: 0 2px 10px rgba(201, 168, 106, 0.4);
}

.video-container {
    position: relative;
    border-radius: 999px 999px 26px 26px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--color-ink);
    box-shadow:
        0 0 0 1px rgba(201, 168, 106, 0.5),
        0 0 0 11px var(--color-light),
        0 0 0 12px rgba(22, 18, 28, 0.08),
        0 44px 90px rgba(22, 18, 28, 0.18);
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(110, 68, 150, 0.10) 0%, rgba(22, 18, 28, 0) 40%, rgba(22, 18, 28, 0.30) 100%);
    pointer-events: none;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.05rem 2.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 14px 40px rgba(110, 68, 150, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.2) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.7s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(110, 68, 150, 0.5);
}

.btn-primary:hover::after {
    transform: translateX(110%);
}

/* WhatsApp como botón fantasma elegante */
.btn-whatsapp {
    background: transparent;
    color: var(--color-ink);
    border-color: rgba(22, 18, 28, 0.2);
}

.btn-whatsapp svg {
    color: #1EBE5D;
}

.btn-whatsapp:hover {
    border-color: #1EBE5D;
    color: #128C4B;
    background: rgba(30, 190, 93, 0.05);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-ink);
    border-color: rgba(22, 18, 28, 0.18);
    padding: 0.85rem 1.8rem;
    font-size: 0.72rem;
}

.btn-secondary::after {
    content: '→';
    font-size: 0.9rem;
    letter-spacing: 0;
    transition: transform var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-deep);
    background: #fff;
}

.btn-secondary:hover::after {
    transform: translateX(4px);
}

.btn-large {
    padding: 1.25rem 3.2rem;
    font-size: 0.9rem;
}

/* ===================================
   CLIENTS CAROUSEL · paseo de arcos
   Galería luminosa con arcos florales
   =================================== */
.testimonials-carousel {
    padding: 110px 0 96px;
    background:
        radial-gradient(700px 300px at 15% 0%, rgba(140, 95, 191, 0.07), transparent 60%),
        radial-gradient(600px 300px at 90% 100%, rgba(201, 168, 106, 0.09), transparent 60%),
        var(--color-cream);
    overflow: hidden;
    position: relative;
}

.testimonials-carousel::before {
    content: 'Momentos Amatista';
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.46em;
    text-transform: uppercase;
    color: var(--color-gold-deep);
    font-weight: 600;
    white-space: nowrap;
}

.testimonials-carousel::after {
    content: '';
    position: absolute;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 1px;
    background: var(--color-gold);
}

.carousel-track {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: max-content;
    margin-top: 38px;
    animation: scroll 52s linear infinite;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Arcos de invernadero: silueta icónica de floristería */
.testimonial-card {
    flex: 0 0 250px;
    height: 320px;
    border-radius: 999px 999px 20px 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(22, 18, 28, 0.08);
    box-shadow:
        0 0 0 7px #fff,
        0 0 0 8px rgba(201, 168, 106, 0.35),
        0 22px 44px rgba(22, 18, 28, 0.12);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Ritmo alternado, como escaparates a distinta altura */
.testimonial-card:nth-child(even) {
    margin-top: 34px;
    height: 300px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 0 7px #fff,
        0 0 0 8px var(--color-gold),
        0 30px 60px rgba(110, 68, 150, 0.22);
}

.testimonial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   CATEGORIES SECTION · revista editorial
   Filas alternadas numeradas 01–05
   =================================== */
.categories-section {
    padding: 130px 0;
    background: var(--color-light);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 88px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 1.3rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 1.4rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 1px;
    background: var(--color-gold);
}

.section-header p {
    font-size: 1.04rem;
    color: var(--color-text-light);
    font-weight: 300;
    line-height: 1.9;
}

/* De cuadrícula a relato: una fila por servicio */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 5.5rem;
    counter-reset: categoria;
}

.category-card {
    counter-increment: categoria;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

/* Alternancia espejo */
.category-card:nth-child(even) .category-image {
    order: 2;
}

.category-card:nth-child(even) .category-content {
    order: 1;
    padding-right: clamp(2rem, 6vw, 5.5rem);
    padding-left: 0;
}

.category-image {
    position: relative;
    height: auto;
    min-height: 460px;
    overflow: hidden;
    border-radius: 999px 999px 24px 24px;
    background: var(--color-lavender);
    box-shadow:
        0 0 0 10px var(--color-light),
        0 0 0 11px rgba(201, 168, 106, 0.4),
        0 30px 70px rgba(22, 18, 28, 0.14);
}

.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 18, 28, 0) 72%, rgba(22, 18, 28, 0.22) 100%);
    pointer-events: none;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 0.6, 0.3, 1);
}

.category-card:hover .category-image img {
    transform: scale(1.06);
}

.category-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: clamp(2rem, 6vw, 5.5rem);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Numeración editorial 01 · 02 · 03 ... */
.category-content::before {
    content: '0' counter(categoria);
    font-family: var(--font-heading);
    font-size: 4.6rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(140, 95, 191, 0.4);
    margin-bottom: 1.1rem;
}

.category-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 1rem;
}

.category-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 1px;
    background: var(--color-gold);
}

.category-content p {
    color: var(--color-text-light);
    margin: 1.1rem 0 2rem;
    line-height: 1.95;
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 52ch;
}

/* ===================================
   CTA SECTION · salón nocturno enmarcado
   =================================== */
.cta-section {
    padding: 130px 0;
    background:
        radial-gradient(1000px 500px at 50% -200px, rgba(140, 95, 191, 0.38), transparent 70%),
        radial-gradient(700px 400px at 100% 120%, rgba(201, 168, 106, 0.12), transparent 60%),
        var(--gradient-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(201, 168, 106, 0.22);
    border-radius: 4px;
    pointer-events: none;
}

.cta-section::after {
    content: '❦';
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    font-size: 1.5rem;
    opacity: 0.85;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.3rem;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.cta-content p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.9;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--color-ink);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.cta-section .btn-primary:hover {
    background: var(--color-gold);
    color: var(--color-ink);
}

.cta-section .btn-primary svg {
    color: #1EBE5D;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-right {
        max-width: 430px;
        margin: 0 auto;
        width: 100%;
    }

    .category-card,
    .category-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .category-card:nth-child(even) .category-image {
        order: 0;
    }

    .category-card:nth-child(even) .category-content {
        order: 1;
        padding-right: 0;
    }

    .category-content {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .category-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .category-image {
        min-height: 380px;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .categories-grid {
        gap: 4.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 118px 0 70px;
    }

    .hero-description {
        font-size: 0.96rem;
    }

    .hero-right {
        max-width: 360px;
    }

    .video-container {
        box-shadow:
            0 0 0 1px rgba(201, 168, 106, 0.5),
            0 0 0 7px var(--color-light),
            0 0 0 8px rgba(22, 18, 28, 0.08),
            0 28px 60px rgba(22, 18, 28, 0.16);
    }

    .btn {
        padding: 0.95rem 2rem;
    }

    .testimonials-carousel {
        padding: 92px 0 80px;
    }

    .testimonial-card {
        flex: 0 0 205px;
        height: 264px;
        box-shadow:
            0 0 0 5px #fff,
            0 0 0 6px rgba(201, 168, 106, 0.35),
            0 16px 34px rgba(22, 18, 28, 0.12);
    }

    .testimonial-card:nth-child(even) {
        margin-top: 26px;
        height: 248px;
    }

    .category-image {
        min-height: 320px;
    }

    .category-content::before {
        font-size: 3.6rem;
    }

    .categories-section,
    .cta-section {
        padding: 96px 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 112px 0 80px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .breadcrumb {
        letter-spacing: 0.28em;
    }

    .breadcrumb::before {
        width: 26px;
    }

    .hero-right {
        max-width: 300px;
    }

    .testimonial-card {
        flex: 0 0 175px;
        height: 230px;
    }

    .testimonial-card:nth-child(even) {
        height: 216px;
    }

    .category-image {
        min-height: 280px;
        border-radius: 999px 999px 18px 18px;
    }

    .categories-grid {
        gap: 3.6rem;
    }
}

/* ===================================
   ANIMACIONES (transform/opacity, GPU)
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-left > * {
    animation: fadeIn 1s cubic-bezier(0.22, 0.6, 0.3, 1) both;
}

.breadcrumb { animation-delay: 0.1s; }
.hero-left h1 { animation-delay: 0.22s; }
.hero-description { animation-delay: 0.36s; }
.hero-buttons { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===================================
   UTILIDADES
   =================================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
