/* ===================================================================
   PÁGINAS DE CATEGORÍA — Florería Afrodita
   Encabezado en el campo de la hora con la foto cortada por el borde,
   servicios como lista a escala de afiche, cierre sobre cielo.
   =================================================================== */

.category-hero {
    position: relative;
    background: var(--field);
    color: var(--on-field);
    padding-top: var(--nav-h);
    min-height: min(92svh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: background-color 1.6s ease;
}
.category-hero-bg {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    width: 48%;
    background-size: cover;
    background-position: center;
    background-color: var(--sky);
    transform-origin: 60% 60%;
    animation: cat-drift 22s ease-in-out infinite alternate;
}
@keyframes cat-drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.category-hero-overlay { display: none; }
.category-hero .container { position: relative; z-index: 1; }
.category-hero-content { width: 50%; padding: clamp(48px, 7vh, 96px) clamp(16px, 3vw, 48px) clamp(48px, 7vh, 96px) 0; }
.category-hero-content .breadcrumb { color: var(--on-field-soft); }
.category-hero-content .breadcrumb a { color: var(--on-field-soft); }
.category-hero-content .breadcrumb .separator { opacity: 1; }
.category-hero-content .breadcrumb .current { color: var(--on-field); }
.category-hero-content h1 {
    font-size: clamp(34px, 4.2vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    font-weight: 750;
    font-stretch: 84%;
    margin-bottom: 1.5rem;
    color: var(--on-field);
}
.hero-intro {
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.6;
    color: var(--on-field);
    max-width: 58ch;
}

/* --- Servicios: nombre grande a la izquierda, texto a la derecha --- */
.services-section { background: var(--foam); padding: var(--gap-section) 0; }
.services-section .section-header { margin-bottom: clamp(48px, 6vw, 88px); max-width: 60rem; }
.section-title {
    font-size: var(--t-xl);
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-stretch: 86%;
    color: var(--ink);
    margin-bottom: 1rem;
}
.section-subtitle { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink); max-width: 52ch; }

.services-grid { display: flex; flex-direction: column; gap: clamp(96px, 9vw, 144px); }
.service-card {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    opacity: 1;
    animation: none;
}
.service-card:hover { transform: none; }
.service-card:has(a[href*="/anchetas-de-amor-antofagasta"]) { --img: url('/assets/4-600.webp'); }
.service-card:has(a[href*="/regalos-cumpleanos-antofagasta"]) { --img: url('/assets/2-600.webp'); }
.service-card:has(a[href*="/detalles-aniversarios-antofagasta"]) { --img: url('/assets/12-600.webp'); }
.service-card:has(a[href*="/cajas-sorpresa-antofagasta"]) { --img: url('/assets/3-600.webp'); }
.service-card:has(a[href*="/entrega-mismo-dia-antofagasta"]) { --img: url('/assets/6-600.webp'); }
.service-card:has(a[href*="/entrega-programada-antofagasta"]) { --img: url('/assets/17-600.webp'); }
.service-card:has(a[href*="/entrega-domicilio-antofagasta"]) { --img: url('/assets/13-600.webp'); }
.service-card:has(a[href*="/entrega-hospitales-antofagasta"]) { --img: url('/assets/16-600.webp'); }
.service-card:has(a[href*="/ramos-flores-secas-antofagasta"]) { --img: url('/assets/flores-secas.webp'); }
.service-card:has(a[href*="/coronas-flores-secas-antofagasta"]) { --img: url('/assets/corona-flores-secas.webp'); }
.service-card:has(a[href*="/centros-mesa-flores-secas-antofagasta"]) { --img: url('/assets/coronas-secas-calle.webp'); }
.service-card:has(a[href*="/flores-secas-jarron-antofagasta"]) { --img: url('/assets/flores-secas.webp'); }
.service-card:has(a[href*="/desayunos-sorpresa-antofagasta"]) { --img: url('/assets/foto-ambiente-225.webp'); }
.service-card:has(a[href*="/canastas-frutas-flores-antofagasta"]) { --img: url('/assets/foto-ambiente-429.webp'); }
.service-card:has(a[href*="/canastas-bebes-antofagasta"]) { --img: url('/assets/11-600.webp'); }
.service-card:has(a[href*="/canastas-gourmet-antofagasta"]) { --img: url('/assets/foto-ambiente-326.webp'); }
.service-card:has(a[href*="/venta-flores-por-mayor-antofagasta"]) { --img: url('/assets/foto-ambiente-mayorista.webp'); }
.service-card:has(a[href*="/paquetes-florerias-antofagasta"]) { --img: url('/assets/foto-ambiente-798.webp'); }
.service-card:has(a[href*="/flores-eventos-corporativos-antofagasta"]) { --img: url('/assets/foto-ambiente-625.webp'); }
.service-card:has(a[href*="/flores-temporada-mayor-antofagasta"]) { --img: url('/assets/foto-ambiente-152.webp'); }
.service-icon {
    grid-column: 1 / span 5;
    aspect-ratio: 4 / 3;
    background: var(--sky) var(--img, none) center / cover no-repeat;
    display: block;
    width: auto; height: auto; margin: 0; border-radius: 0; padding: 0;
}
.service-icon svg { display: none; }
.service-content { grid-column: 7 / -1; align-self: center; display: flex; flex-direction: column; align-items: flex-start; }
.service-content h2 {
    font-size: var(--t-l);
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-stretch: 86%;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.service-content p { font-size: var(--t-s); line-height: 1.6; color: var(--ink); max-width: 68ch; margin-bottom: 1rem; }
.service-features { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 1rem; }
.feature-tag { background: none; padding: 0; border-radius: 0; font-size: 16px; font-weight: 600; color: var(--field); }
.btn-service {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.25rem;
    background: var(--sky-2); color: var(--ink); font-weight: 650; border-radius: 0;
    transition: background-color var(--t-fast) var(--ease-out);
}
.btn-service:hover { background: var(--ink); color: #fff; transform: none; }

/* --- Cierre: el objeto vuelve sobre su cielo --- */
.category-cta {
    position: relative;
    background: #CCE0F0; /* el cielo exacto de la foto 17 */
    color: var(--ink);
    padding: clamp(96px, 11vw, 160px) 0;
    overflow: hidden;
}
.category-cta {
    background-image: url('/assets/17.webp');
    background-repeat: no-repeat;
    background-size: min(50vw, 720px) auto;
    background-position: -5vw calc(100% + 10vw);
    min-height: min(80svh, 760px);
}
.category-cta .container { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.category-cta .cta-content { grid-column: 6 / -1; }
.category-cta .cta-content h2 { font-size: var(--t-l); color: var(--ink); margin-bottom: 1rem; }
.category-cta .cta-content p { font-size: 18px; color: var(--ink); margin-bottom: 1.75rem; max-width: 40ch; }
.category-cta .btn-primary { background: var(--sun); color: var(--on-sun); }
.category-cta .btn-primary:hover { background: var(--sun-hover); }

.text-highlight, .text-accent { color: inherit; background: none; -webkit-text-fill-color: currentColor; }

@media (max-width: 900px) {
    .category-hero { flex-direction: column; align-items: stretch; min-height: 0; }
    .category-hero-bg { position: relative; top: auto; width: 100%; height: 46svh; order: -1; }
    .category-hero-content { width: 100%; padding: 32px 0 56px; }
    .service-icon { grid-column: 1 / span 4; }
    .service-content { grid-column: 5 / -1; }
    .category-cta { padding-top: 72px; padding-bottom: 96vw; min-height: 0; background-size: 110vw auto; background-position: -5vw calc(100% + 16vw); }
    .category-cta .cta-content { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .category-hero-content h1 { font-size: clamp(28px, 7.6vw, 36px); }
    .service-content h2 { font-size: clamp(32px, 9vw, 44px); }
    .service-card { row-gap: 1.25rem; }
    .service-icon { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
    .service-content { grid-column: 1 / -1; }
    .category-cta .btn-large { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .category-hero-bg { animation: none; }
}
