/* ==========================================================================
   El Taller de Adriana — Hoja de estilos
   Mobile-first: los estilos base son para celular; los @media agregan
   ajustes para tablet (≥ 720px) y escritorio (≥ 1024px).
   ========================================================================== */

/* ---------- 1. Variables de diseño (paleta del logotipo) ---------- */
:root {
  /* Marca */
  --verde: #0B4421;
  --lima: #99CC33;
  --morado: #724B9A;
  --azul: #6BBEE2;
  --mostaza: #FBB921;
  --amarillo: #FBD800;

  /* Neutros con un toque verde para que combinen con la marca */
  --fondo: #FFFFFF;
  --fondo-suave: #F3F8EA;
  --texto: #1C2A21;
  --texto-suave: #4B5C51;
  --borde: #DDE7D3;

  /* Tipografía */
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala tipográfica fluida */
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.6vw, 3.9rem);

  /* Espaciado y formas */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
  --shadow: 0 10px 30px -12px rgba(11, 68, 33, 0.25);

  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--verde);
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--morado); text-underline-offset: 3px; }
a:hover { color: var(--verde); }

:focus-visible { outline: 3px solid var(--morado); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--verde); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--morado); color: #fff; }
.btn-outline { border-color: var(--verde); color: var(--verde); background: transparent; }
.btn-outline:hover { background: var(--verde); color: #fff; }
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Etiqueta superior de cada sección */
.eyebrow {
  display: inline-block; margin-bottom: 0.9rem;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.eyebrow-morado { background: #EFE7F6; color: var(--morado); }
.eyebrow-verde  { background: #E6F2D3; color: var(--verde); }
.eyebrow-azul   { background: #E1F2FA; color: #1F5F7C; }
.eyebrow-lima   { background: var(--lima); color: var(--verde); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--borde); box-shadow: 0 6px 20px -16px rgba(0,0,0,.35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand img { width: auto; height: 52px; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 0; background: var(--fondo-suave); border-radius: 12px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2.5px; background: var(--verde); border-radius: 2px;
  position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil: panel desplegable */
.main-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--fondo); border-bottom: 1px solid var(--borde);
  padding: 0.5rem var(--gutter) 1.25rem;
  display: none; flex-direction: column; gap: 0.75rem;
}
.main-nav.is-open { display: flex; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a {
  display: block; padding: 0.8rem 0; color: var(--texto); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--borde);
}
.main-nav li a:hover { color: var(--morado); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y);
  background: var(--fondo); /* fondo blanco liso */
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 .marca {
  color: var(--morado);
  background: linear-gradient(transparent 68%, rgba(251, 185, 33, .55) 68% 92%, transparent 92%);
}
.lead { font-size: var(--fs-lg); color: var(--texto-suave); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-chips { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-chips li {
  font-size: var(--fs-sm); font-weight: 600; color: var(--verde);
  padding: 0.35rem 0.8rem 0.35rem 1.7rem; border-radius: 999px; background: var(--fondo-suave);
  position: relative;
}
.hero-chips li::before {
  content: ""; position: absolute; left: 0.7rem; top: 50%; width: 0.55rem; height: 0.55rem;
  translate: 0 -50%; border-radius: 50%; background: var(--lima);
}

/* Recuadro del logo: compacto, con resplandor de colores de la marca al pasar el mouse */
.hero-visual {
  position: relative; justify-self: center; isolation: isolate;
  width: 100%; max-width: 340px; padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 32px;
  transition: transform .35s ease;
}
/* Fondo del recuadro (va encima del halo para que el brillo solo asome por los bordes) */
.hero-visual::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fondo-suave); transition: background-color .35s ease;
}
.hero-visual:hover::after, .hero-visual:active::after { background: var(--fondo); }
/* Halo difuminado con verde limón, morado, azul y mostaza; los colores giran suavemente */
@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hero-visual::before {
  content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 36px;
  background: conic-gradient(from var(--giro), var(--lima), var(--azul), var(--morado), var(--mostaza), var(--lima));
  filter: blur(18px); opacity: 0; transition: opacity .4s ease;
}
.hero-visual img { position: relative; width: 100%; transition: transform .35s ease, filter .35s ease; }
.hero-visual:hover,
.hero-visual:active { transform: translateY(-4px); }
.hero-visual:hover::before,
.hero-visual:active::before { opacity: .85; animation: halo 5s linear infinite; }
.hero-visual:hover img { transform: scale(1.04); filter: drop-shadow(0 6px 14px rgba(114, 75, 154, .25)); }
@keyframes halo { to { --giro: 360deg; } }

/* ---------- 6. Secciones generales ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--fondo-suave); }
.section-verde { background: var(--verde); color: #E8F2DC; }
.section-verde h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-sub { color: var(--texto-suave); font-size: var(--fs-lg); margin: 0; }

/* ---------- 7. Servicios ---------- */
.services-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.service {
  padding: 1.25rem 1.2rem; border-radius: var(--radius);
  background: var(--fondo); border: 1px solid var(--borde);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.service p { color: var(--texto-suave); margin: 0; font-size: 0.95rem; line-height: 1.55; }
.service-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tono) 22%, white); margin-bottom: 0.8rem;
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--verde); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pasos del pedido */
.process {
  list-style: none; counter-reset: paso; padding: 0; margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.process li {
  counter-increment: paso; position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: var(--radius);
  background: var(--fondo-suave);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.process li::before {
  content: counter(paso); position: absolute; left: 1.1rem; top: 1.15rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--mostaza); color: var(--verde); font: 800 1.1rem/1 var(--font-display);
}
.process strong { color: var(--verde); font-family: var(--font-display); font-size: 1.1rem; }
.process span { color: var(--texto-suave); font-size: 0.95rem; }

/* ---------- 8. Catálogo ---------- */
.catalog-tools { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.filters { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
.chip {
  flex: none; min-height: 42px; padding: 0.5rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--borde); background: var(--fondo); color: var(--texto);
  font: 600 0.95rem/1 var(--font-body); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--morado); color: var(--morado); }
.chip[aria-pressed="true"] { background: var(--morado); border-color: var(--morado); color: #fff; }

.search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--fondo); border: 1.5px solid var(--borde); border-radius: 999px;
  padding: 0 1rem; min-height: 48px;
}
.search:focus-within { border-color: var(--morado); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--texto-suave); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: var(--texto); }

.catalog-count { font-size: var(--fs-sm); color: var(--texto-suave); margin-bottom: 1.25rem; }

.catalog-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.product {
  display: flex; flex-direction: column; height: 100%;
  background: var(--fondo); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--borde); transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1 / 1; background: color-mix(in srgb, var(--tono) 28%, white); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder mientras no hay foto */
.product-ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 0.5rem;
  color: var(--verde); font-size: var(--fs-sm); font-weight: 600; text-align: center; padding: 1rem;
}
.product-ph svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 4 3; }
.badge {
  position: absolute; left: 0.75rem; top: 0.75rem;
  background: var(--amarillo); color: var(--verde);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.product-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--morado); }
.product h3 { margin: 0; font-size: 1.15rem; }
.product-desc { color: var(--texto-suave); font-size: 0.95rem; margin: 0; }
.product-foot { margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.price { font: 800 1.15rem/1 var(--font-display); color: var(--verde); font-variant-numeric: tabular-nums; }
.price small { font: 500 0.8rem var(--font-body); color: var(--texto-suave); }
.product .btn { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.catalog-empty { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--texto-suave); }

/* ---------- 9. Galería y testimonios ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; }
.g { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--fondo-suave); }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g figcaption {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  background: rgba(255,255,255,.92); color: var(--verde);
  font-size: 0.82rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.g-ancho { grid-column: span 2; }
.g-alto { grid-row: span 2; }
.ph {
  height: 100%; min-height: 100%; display: grid; place-items: center; text-align: center;
  padding: 1rem 1rem 2.5rem; color: var(--verde); font-size: 0.85rem; font-weight: 600;
  border: 2px dashed rgba(11, 68, 33, .25); border-radius: inherit;
}

/* Testimonios: con uno se centra; con varios se vuelve carrusel deslizable */
.testimonials {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 620px);
  justify-content: center; gap: 1.25rem; margin-top: clamp(2.5rem, 6vw, 4rem);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; scrollbar-width: thin;
}
.quote {
  margin: 0; padding: 2.25rem 2rem 1.75rem; border-radius: var(--radius); background: var(--fondo-suave);
  position: relative; text-align: center; scroll-snap-align: center;
}
.quote::before {
  content: "“"; display: block; margin: -0.5rem auto 0.25rem;
  font: 800 4.5rem/0.8 var(--font-display); color: var(--lima);
}
.quote p { font-size: 1.15rem; color: var(--texto); }
.quote footer { font-size: var(--fs-sm); font-weight: 700; color: var(--morado); }

/* ---------- 10. Sobre nosotros ---------- */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; border-radius: 32px; overflow: hidden; background: rgba(255,255,255,.06); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-oscuro { color: #D5E7C0; border-color: rgba(153, 204, 51, .5); padding-bottom: 1rem; }
.about-copy p { max-width: 60ch; }
.about-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.about-points li { padding-left: 2rem; position: relative; font-weight: 600; color: #fff; }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4421' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- 11. Contacto ---------- */
.contact { display: grid; gap: 2.5rem; }
.datos { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.datos dt { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto-suave); }
.datos dd { margin: 0.2rem 0 0; font-size: 1.05rem; }
.datos dd a { font-weight: 700; }

.contact-form {
  background: var(--fondo-suave); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; color: var(--verde); }
.opt { font-weight: 500; color: var(--texto-suave); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--texto);
  background: var(--fondo); border: 1.5px solid var(--borde); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--morado); box-shadow: 0 0 0 3px rgba(114, 75, 154, .18); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.error { color: #B3261E; font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--morado); flex: none; }
.form-status { margin: 0; font-weight: 600; color: var(--verde); }

/* ---------- 12. Footer ---------- */
.site-footer { background: #062A14; color: #C9DBC0; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.95rem; }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 170px; background: #fff; padding: 0.6rem 0.8rem; border-radius: 14px; margin-bottom: 1rem; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--lima); }
.site-footer a:hover { color: var(--amarillo); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; font-size: var(--fs-sm);
}
.footer-bottom p { margin: 0; }

/* Íconos de redes sociales */
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.6rem; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--morado); color: #fff; transition: transform .15s, background-color .15s;
}
.social a:hover { transform: translateY(-2px); background: var(--verde); color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.datos .social { margin-top: 0.35rem; }
.site-footer .social a { background: rgba(255,255,255,.1); color: var(--lima); }
.site-footer .social a:hover { background: var(--lima); color: var(--verde); }

/* ---------- Secciones desplegables (acordeón) ---------- */
:root { interpolate-size: allow-keywords; } /* permite animar la apertura en navegadores recientes */
.hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.acordeon { padding-block: 0 var(--section-y); }
.acordeon-inner { display: grid; gap: 0.9rem; }

.panel {
  border-radius: 26px; overflow: hidden;
  background: color-mix(in srgb, var(--tono) 16%, white);
  transition: background-color .25s ease, box-shadow .3s ease, transform .3s ease;
}
/* Efecto del botón: se eleva, brilla con su color y el + gira */
.panel:not([open]):hover,
.panel:not([open]):has(> summary:active) {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--tono) 26%, white);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--tono) 85%, transparent),
              0 0 0 2px color-mix(in srgb, var(--tono) 55%, white);
}
.panel-oscuro:not([open]):hover,
.panel-oscuro:not([open]):has(> summary:active) { background: #0E5429; }
.panel:not([open]) > summary:hover .panel-toggle { transform: rotate(90deg) scale(1.08); }
.panel[open] {
  background: var(--fondo);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tono) 60%, white), var(--shadow);
}
.panel > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  min-height: 92px; padding: 1rem 1.1rem 1rem 1rem;
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary:focus-visible { outline-offset: -4px; border-radius: 26px; }

.panel-icon {
  flex: none; width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; background: var(--tono);
}
.panel-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--verde); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#nosotros .panel-icon svg { stroke: #fff; }

.panel-text { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.panel-title { font: 800 clamp(1.3rem, 1.05rem + 1.1vw, 1.8rem)/1.1 var(--font-display); color: var(--verde); letter-spacing: -0.01em; }
.panel-sub { color: var(--texto-suave); font-size: 0.95rem; line-height: 1.4; }

/* Mini fotos que invitan a abrir */
.panel-thumbs { display: none; }
.panel-thumbs img {
  width: 58px; height: 58px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--fondo); box-shadow: 0 4px 10px -4px rgba(0,0,0,.3);
}
.panel-thumbs img + img { margin-left: -16px; }
.panel-thumbs img:nth-child(2) { rotate: 6deg; }

/* Botón + que gira a × al abrir */
.panel-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; position: relative;
  background: var(--verde); transition: transform .3s ease, background-color .2s;
}
.panel-toggle::before, .panel-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px;
  background: #fff; border-radius: 2px; translate: -50% -50%;
}
.panel-toggle::after { rotate: 90deg; }
.panel[open] .panel-toggle { transform: rotate(135deg); background: var(--morado); }

.panel-body { padding: 0.5rem 1.1rem 1.75rem; }
.panel[open] .panel-body { animation: aparecer .4s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(-8px); } }

/* Apertura suave (Chrome/Edge recientes; en otros abre al instante) */
.panel::details-content { block-size: 0; overflow: hidden; transition: block-size .4s ease, content-visibility .4s allow-discrete; }
.panel[open]::details-content { block-size: auto; }

/* Panel de contacto en verde de la marca */
.panel-oscuro { background: var(--verde); }
.panel-oscuro .panel-title { color: #fff; }
.panel-oscuro .panel-sub { color: #CFE3BF; }
.panel-oscuro .panel-icon { background: var(--lima); }
.panel-oscuro .panel-toggle { background: var(--lima); }
.panel-oscuro .panel-toggle::before, .panel-oscuro .panel-toggle::after { background: var(--verde); }
.panel-oscuro[open] > summary .panel-title { color: var(--verde); }
.panel-oscuro[open] > summary .panel-sub { color: var(--texto-suave); }

/* Contenido dentro de los paneles */
.panel-h { font-size: var(--fs-h2); margin-bottom: 0.6rem; }
.panel .about-points li { color: var(--texto); }
.panel .about-photo { max-width: 380px; }
.panel .process { margin-top: 1.5rem; }
.panel .testimonials { margin-top: 2rem; }

@media (min-width: 600px) {
  .panel-thumbs { display: flex; align-items: center; padding-right: 0.25rem; }
}
@media (min-width: 1024px) {
  .panel > summary { padding: 1.1rem 1.5rem 1.1rem 1.25rem; min-height: 104px; }
  .panel-body { padding: 0.75rem 2rem 2.5rem; }
}

/* ---------- 13. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ==========================================================================
   Tablet (≥ 720px)
   ========================================================================== */
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-tools { flex-direction: row; align-items: center; justify-content: space-between; }
  .filters { flex-wrap: wrap; overflow: visible; }
  .search { width: 300px; flex: none; }
  .gallery { grid-auto-rows: 220px; }
  .footer-inner { grid-template-columns: 2fr 1.5fr 1fr; }
}

/* ==========================================================================
   Escritorio (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .brand img { height: 62px; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.75rem;
    padding: 0; border: 0; background: transparent;
  }
  .main-nav ul { display: flex; gap: 1.75rem; }
  .main-nav li a { border: 0; padding: 0.4rem 0; position: relative; }
  .main-nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
    background: var(--lima); transform: scaleX(0); transition: transform .2s;
  }
  .main-nav li a:hover::after { transform: scaleX(1); }

  .hero-inner { grid-template-columns: 1.3fr 0.7fr; gap: 3rem; }
  .hero-visual { max-width: 400px; padding: 2rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 0.85fr 1fr; gap: 5rem; }
  .contact { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
}

@media (min-width: 1200px) {
  .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Accesibilidad: menos movimiento si la usuaria lo prefiere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
