/* ==========================================================================
   Galmury — hoja de estilos principal
   ========================================================================== */

:root {
  --brand: #ca1a85;
  --brand-dark: #9e1267;
  --brand-soft: #fbe8f3;
  --ink: #2b2230;
  --muted: #6d6272;
  --line: #ece3e8;
  --bg: #fdfafb;
  --surface: #ffffff;
  --blush: #f7eef2;
  --accent: var(--brand);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(60, 20, 45, .18);
  --shadow-lg: 0 24px 60px -20px rgba(60, 20, 45, .28);
  --container: 1200px;
  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Colores de cada línea (tomados del catálogo) */
.theme-clasica    { --accent: #a48a55; }
.theme-segunda    { --accent: #c0905f; }
.theme-latex      { --accent: #3fae8e; }
.theme-maternidad { --accent: #e27aab; }
.theme-caballero  { --accent: #1f74bb; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.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;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font: 700 .9rem/1 var(--font-sans);
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 50px; width: auto; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: .55em .9em; border-radius: 999px;
  color: var(--ink); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav .nav-cta a { background: var(--brand); color: #fff; margin-left: 6px; }
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--brand-soft); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .header-inner { height: 66px; }
  .brand img { height: 42px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { padding: .95em 1em; border-radius: 10px; font-size: .9rem; }
  .site-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--muted); }
@media (max-width: 640px) { .section { padding: 60px 0; } }

/* ---------- Hero de inicio ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 72px 20px 88px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero-text p { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #eee; aspect-ratio: 900 / 643; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .3s, background .3s;
}
.slider-dots button[aria-current="true"] { width: 28px; background: var(--brand); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 20px 64px; }
  .hero-text { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.value-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.value h3 { font-size: 1.05rem; margin-bottom: .25em; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de líneas ---------- */
.lines-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.line-card { grid-column: span 2; }
.line-card:nth-child(4), .line-card:nth-child(5) { grid-column: span 3; }
.line-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); color: var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.line-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.line-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.line-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; transition: transform .6s; }
.line-card a:hover figure img { transform: scale(1.04); }
.line-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--accent); }
.line-card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; margin-bottom: .35em; }
.line-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.link-arrow { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.link-arrow::after { content: " →"; }
@media (max-width: 960px) { .lines-grid { grid-template-columns: 1fr 1fr; } .line-card, .line-card:nth-child(4), .line-card:nth-child(5) { grid-column: auto; } }
@media (max-width: 600px) { .lines-grid { grid-template-columns: 1fr; } }

/* ---------- Banda "Nosotros" ---------- */
.about-band { background: var(--blush); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.about-grid p { color: var(--muted); font-size: 1.05rem; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #8f1460 100%);
  border-radius: calc(var(--radius) + 6px); padding: 64px 28px;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.cta::before { width: 340px; height: 340px; left: -120px; top: -160px; }
.cta::after { width: 260px; height: 260px; right: -80px; bottom: -140px; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); position: relative; }
.cta p { color: rgba(255, 255, 255, .85); position: relative; }
.cta .btn { background: #fff; color: var(--brand); border-color: #fff; position: relative; margin-top: 10px; }
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Encabezado de página de línea ---------- */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 56px 20px 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--accent); margin-top: 18px; }
.page-hero p { font-size: 1.08rem; color: var(--muted); }
.page-hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 900 / 643; background: #eee; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.product-count { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.product-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 48px; } }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .3s, transform .3s;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-media { position: relative; display: block; background: #eee; aspect-ratio: 900 / 643; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-media:hover img { transform: scale(1.03); }
.zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .55em .9em; border-radius: 999px;
  box-shadow: var(--shadow); transition: background .2s, color .2s;
}
.product-media:hover .zoom-hint { background: var(--brand); color: #fff; }

.product-body { padding: 24px 26px 28px; display: grid; gap: 26px; }
.product-lead { margin: 0; font-style: italic; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; }
.product + .product { border-top: 1px dashed var(--line); padding-top: 24px; }
.product h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: .01em; margin-bottom: .7em; }
.product-note { font-size: .9rem; color: var(--muted); margin: -.4em 0 .9em; }

.features { list-style: none; display: grid; gap: 7px; margin-bottom: 18px; }
.features li { position: relative; padding-left: 28px; font-size: .95rem; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, #fff)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2230' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.specs { display: grid; gap: 10px; margin: 0; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); }
.specs > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; }
.specs dt { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: .95rem; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; }
.swatch::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgba(20, 12, 18, .94); color: #fff;
}
.lightbox::backdrop { background: rgba(20, 12, 18, .94); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 56px 72px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; height: 100%; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; background: #222; }
.lightbox figcaption { font-weight: 700; letter-spacing: .04em; text-align: center; }
.lightbox figcaption small { display: block; font-weight: 400; opacity: .6; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .2s;
}
.lb-btn:hover { background: var(--brand); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox figure { padding: 64px 8px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
@media (max-width: 520px) { .card { padding: 24px 20px; } }
.contact-list { list-style: none; display: grid; gap: 14px; margin: 24px 0 0; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-weight: 700;
  transition: border-color .2s, background .2s;
}
.contact-list a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.contact-list small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list .value-icon { width: 42px; height: 42px; border-radius: 12px; }
.stores { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--blush); }
.stores h3 { font-size: 1rem; margin-bottom: .2em; }
.stores p { margin: 0; color: var(--muted); font-size: .95rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8em 1em; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.form-actions small { color: var(--muted); }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e8f7ef; color: #1c6b43; }
.form-status.is-error { background: #fdecef; color: #a3213d; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pie de página ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-grid p { color: var(--muted); font-size: .95rem; max-width: 30em; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid li a { color: var(--ink); font-weight: 600; }
.footer-grid li a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: .85rem; color: var(--muted); text-align: center; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
}

/* "Ver ficha": en escritorio solo aparece al pasar el cursor para no tapar el nombre impreso */
@media (hover: hover) {
  .zoom-hint { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s, background .2s, color .2s; }
  .product-media:hover .zoom-hint, .product-media:focus-visible .zoom-hint { opacity: 1; transform: none; }
}
@media (hover: none) {
  .zoom-hint { top: 10px; right: 10px; bottom: auto; padding: .45em .7em; font-size: .7rem; }
}

/* Evita que las imágenes ensanchen las columnas en pantallas pequeñas */
.hero-grid > *, .page-hero-grid > *, .products > *, .about-grid > *, .contact-grid > *, .lines-grid > *, .footer-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid, .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .lines-grid { grid-template-columns: minmax(0, 1fr); } }
body { overflow-x: hidden; }
