/* =====================================================================
   PRISMA DENTAL SUPPLY — ESTILOS
   ===================================================================== */
:root {
  --maroon: #aa1616;     /* mezcla del rojo de los labios (#da121a) con el vino original (#7a1a12) */
  --maroon-dark: #7e0f0f;
  --red: #aa1616;
  --text: #57504b;
  --heading: #2f2926;
  --muted: #8c847e;
  --light: #f1ece7;
  --lighter: #f8f5f2;
  --border: #e6dfd8;
  --footer: #2c2624;
  --footer-bottom: #221d1b;
  --pager: #6b625c;
  --tint: #f7e2e0;       /* relleno suave de los íconos */
  --radius: 10px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(60, 35, 25, .06), 0 6px 18px rgba(60, 35, 25, .08);
  --shadow-hover: 0 4px 10px rgba(60, 35, 25, .08), 0 16px 34px rgba(60, 35, 25, .14);
  --container: 1100px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: rgba(170, 22, 22, .15);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Íconos ---------- */
svg { width: 1em; height: 1em; flex: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: #fff; padding-top: env(safe-area-inset-top);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; flex: none; }
.logo img { display: none; height: 45px; width: auto; }
.logo.has-img img { display: block; }
.logo.has-img .logo-text { display: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 23px; font-weight: 700; color: #1d1d1d; letter-spacing: -.2px;
}
.logo-text strong::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px;
  border-radius: 50%; background: var(--red); vertical-align: 2px;
}
.logo-text small { font-size: 10px; color: #333; margin-left: 19px; margin-top: 3px; }

.header-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: #555; font-size: 20px; border-radius: 50%;
}
.icon-btn:hover { color: var(--red); background: var(--lighter); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }

.search-bar { display: none; background: var(--lighter); border-top: 1px solid var(--light); }
.search-bar.open { display: block; }
.search-inner { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.search-inner input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); background: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--maroon); color: #fff;
  padding: 11px 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  transition: background .15s;
}
.btn:hover { background: var(--maroon-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: 7px 12px; font-size: 11px; }
.btn-block { display: block; width: 100%; text-align: center; }
.link { color: var(--maroon); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Placeholders de imagen ---------- */
.ph {
  position: relative; overflow: hidden;
  background: #f6f6f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23e9b3b5' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M20 8c-8 0-13 6-13 15 0 7 3 11 5 16 2 6 3 17 8 17 4 0 4-10 6-14 1-3 2-4 6-4s5 1 6 4c2 4 2 14 6 14 5 0 6-11 8-17 2-5 5-9 5-16 0-9-5-15-13-15-5 0-8 3-12 3S25 8 20 8z'/%3E%3C/svg%3E") center / 28% no-repeat;
}
.ph.loaded { background: none; }
.ph img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Slider ---------- */
.slider {
  position: relative; overflow: hidden;
  height: clamp(220px, 31vw, 420px);
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  border-bottom: 14px solid var(--maroon);
}
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; }
.slide-inner { height: 100%; max-width: 1200px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; padding: 0 80px; }
.slide-kicker { display: block; font-size: clamp(18px, 3.3vw, 46px); font-weight: 300; color: #444; text-transform: uppercase; letter-spacing: 1px; line-height: 1.1; }
.slide-text h2 { margin: .12em 0 0; font-size: clamp(28px, 6vw, 76px); font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; line-height: 1; }
.slide.info .slide-kicker { color: var(--maroon); font-weight: 600; font-size: clamp(14px, 2vw, 24px); letter-spacing: 2px; }
.slide.info .slide-text h2 { font-size: clamp(22px, 3.8vw, 48px); font-weight: 400; color: #444; text-transform: none; letter-spacing: 0; border-bottom: 2px solid var(--red); padding-bottom: .2em; }
.slide-text p { margin: .7em 0 0; font-size: clamp(12px, 1.4vw, 18px); color: #666; }
.slide-img { height: 82%; }
.slide-img:not(.loaded) { background: radial-gradient(circle, rgba(170, 22, 22, .07) 0 58%, transparent 59%) center / contain no-repeat; }
.slide-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(190, 190, 190, .75); color: #fff; font-size: 24px; transition: background .15s;
}
.slider-arrow:hover { background: rgba(140, 140, 140, .9); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(0, 0, 0, .2); }
.slider-dots button.active { background: var(--maroon); }

/* ---------- Franja interior ---------- */
.page-band { height: 12px; background: var(--maroon); }

/* ---------- Títulos ---------- */
.section-title {
  margin: 36px 0 28px; text-align: center;
  font-size: 22px; font-weight: 400; color: var(--heading); text-transform: uppercase; letter-spacing: .6px; line-height: 1.3;
}
.section-title::after { content: ""; display: block; width: 84px; height: 3px; margin: 10px auto 0; background: var(--red); }
.sub-title { margin: 28px 0 10px; font-size: 22px; font-weight: 400; color: var(--heading); }

/* ---------- Accesos rápidos (inicio) ---------- */
.quick { background: var(--maroon); padding: 20px 0 32px; margin-top: -1px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 800px; }
.quick-card {
  background: #fff; aspect-ratio: 13 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--maroon); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.quick-card svg { font-size: 58px; }
.quick-card span { font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--maroon); }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ---------- Ofertas (carrusel inicio) ---------- */
.offers { padding-top: 36px; padding-bottom: 28px; max-width: 800px; }
.offers-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 5px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.offers-track::-webkit-scrollbar { display: none; }
.offer-card { position: relative; scroll-snap-align: start; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.offer-img { aspect-ratio: 2 / 1; margin: 10px 10px 0 110px; background-color: #fff; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 12px; }
.offer-foot h3 { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #555; }
.rosette {
  position: absolute; top: 16px; left: 14px; z-index: 1;
  width: 86px; height: 86px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--red); transform: rotate(-14deg);
}
.mini-nav { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.mini-nav button { width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; background: #ccc; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.mini-nav button:hover { background: #999; }

/* ---------- Mosaicos de categorías ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.tiles:not(.tiles-2) { max-width: 760px; margin-left: auto; margin-right: auto; }
.tile {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 4 / 3; background-color: #555; background-size: cover; background-position: center;
  box-shadow: var(--shadow);
}
.tiles-2 .tile { aspect-ratio: 37 / 28; }
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); transition: background .25s; }
.tile:hover::before { background: rgba(170, 22, 22, .55); }
.tile span { position: relative; padding: 0 12px; text-align: center; color: #fff; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); line-height: 1.2; }

/* ---------- Diseño con barra lateral ---------- */
.with-sidebar { display: grid; grid-template-columns: 175px 1fr; gap: 20px; align-items: start; padding-top: 24px; padding-bottom: 50px; }
.with-sidebar > div > .section-title { margin-top: 20px; }
.sidebar { background: var(--light); }
.side-title { background: var(--maroon); color: #fff; text-align: center; text-transform: uppercase; font-size: 14px; padding: 7px 10px; line-height: 1.25; }
.sidebar a { display: block; padding: 7px 10px; text-align: center; font-size: 12px; color: #666; border-bottom: 1px solid #dcdcdc; line-height: 1.35; transition: background .15s; }
.sidebar a:hover { background: #f4f4f4; color: var(--maroon); }
.sidebar a.active { background: #f6f6f6; color: var(--maroon); }

.breadcrumb { background: var(--lighter); padding: 4px 10px; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--maroon-dark); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-img { aspect-ratio: 1; background-color: #fff; padding: 12px; }
.card-label {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 8px 10px; background: var(--light); text-align: center;
  font-size: 12px; text-transform: uppercase; color: #555; line-height: 1.3;
}
.card-label b { font-size: 13px; color: var(--maroon); text-transform: none; }
.card-badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.empty a { color: var(--maroon); font-weight: 600; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 36px 6px 0; font-size: 15px; color: var(--pager); }
.pager a { color: #555; }
.pager a:hover { color: var(--maroon); }
.pager .disabled { color: #bbb; }

/* ---------- Detalle de producto ---------- */
.code { font-size: 12px; margin: 0 0 24px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.detail-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.detail-img .ph { aspect-ratio: 1; background-color: #fff; }
.zoom-corner { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 22px 22px 0; border-color: transparent #555 transparent transparent; }
.zoom-corner svg { position: absolute; top: 1px; right: -21px; font-size: 9px; color: #fff; }
.detail-info h2 { margin: 0 0 4px; font-size: 22px; font-weight: 400; color: var(--heading); }
.detail-info > p { margin: 0 0 8px; font-size: 13px; text-align: justify; }
.brand-line { font-size: 12px !important; }
.price { font-size: 20px !important; font-weight: 700; color: var(--maroon); margin: 14px 0 0 !important; text-align: left !important; }
.price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.qty-label { display: block; margin: 22px 0 4px; font-size: 18px; color: var(--heading); }
.qty-input { width: 135px; padding: 3px 6px; border: 1px solid #ccc; font-size: 12px; margin-bottom: 26px; display: block; }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.share a { font-size: 11px; padding: 2px 8px; border: 1px solid var(--border); background: var(--lighter); color: #555; }
.share a:hover { color: var(--maroon); border-color: var(--maroon); }

/* ---------- Quiénes somos ---------- */
.about-banner { position: relative; margin: 30px 0; height: 240px; overflow: hidden; background: linear-gradient(90deg, #f1f1f1, #fff); }
.about-img { position: absolute; inset: 0; }
.about-img img { object-fit: cover; }
.about-img:not(.loaded) { background-size: 80px; background-position: 25% center; }
.about-banner-text { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); text-align: left; }
.about-banner-text strong { display: block; font-family: Georgia, serif; font-size: clamp(26px, 4.5vw, 42px); font-weight: 400; letter-spacing: 1px; color: #333; text-transform: uppercase; line-height: 1; }
.about-banner-text span { display: block; font-size: 13px; color: #444; }
.about-banner-text span::after { content: ""; display: block; width: 26px; height: 2px; background: var(--red); margin: 10px auto 0; }
.info-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 20px; }
.info-boxes div { background: var(--light); padding: 14px 22px 18px; text-align: center; }
.info-boxes h3 { margin: 0 0 6px; font-size: 24px; font-weight: 400; color: var(--heading); }
.info-boxes p { margin: 0; font-size: 12px; }
.bar-btn { display: block; background: var(--maroon); color: #fff; text-align: center; padding: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-bottom: 30px; transition: background .15s; }
.bar-btn:hover { background: var(--maroon-dark); }

.arrow-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.arrow-list li { position: relative; padding-left: 16px; }
.arrow-list li::before { content: "›"; position: absolute; left: 2px; top: -1px; color: var(--red); font-weight: 700; }
.arrow-list a:hover { color: var(--maroon); }
.note { font-size: 13px; margin: 18px 0 24px; }

/* ---------- Sucursales ---------- */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 30px; }
.branch h2 { margin: 0 0 4px; font-size: 19px; font-weight: 400; color: var(--heading); }
.branch p { margin: 0 0 6px; font-size: 12px; }
.branch-contact strong { color: #333; }
.branch-contact a:hover { color: var(--maroon); }
.map { width: 100%; height: 240px; border: 0; margin-top: 8px; background: var(--lighter); }

/* ---------- Formularios ---------- */
.form { margin: 0; }
.form .row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; margin-bottom: 10px; font-size: 12px; }
.form .row > span:first-child { padding-top: 4px; color: #666; }
.form .row i { color: var(--red); font-style: normal; }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select {
  width: 100%; padding: 5px 8px; border: 1px solid #e3e3e3; background: var(--light); font-size: 13px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid rgba(170, 22, 22, .35); outline-offset: 0; background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.form-wide { max-width: 740px; margin: 50px auto; }
.radios { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.radios label, .choice label, .check { display: flex; align-items: center; gap: 8px; color: #666; cursor: pointer; }
.form-msg { margin-top: 12px; padding: 10px 14px; font-size: 13px; background: #eef7ee; color: #2d6a2d; border-left: 3px solid #3c8c3c; }
.form-msg.error { background: #fbeeee; color: #8a2020; border-left-color: var(--red); }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset[hidden] { display: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin: 30px 0 50px; }
.contact-grid .row { grid-template-columns: 100px 1fr; }
.branch-cta { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 250px; background: var(--maroon); color: #fff; font-size: 34px; text-transform: uppercase; letter-spacing: 1px; transition: background .2s; }
.branch-cta svg { font-size: 80px; }
.branch-cta:hover { background: var(--maroon-dark); }

/* ---------- Carrito y pedido ---------- */
.cart { border-top: 2px solid var(--maroon); }
.cart-head, .cart-row { display: grid; grid-template-columns: 1fr 120px 130px 120px 40px; align-items: center; gap: 12px; padding: 12px 8px; }
.cart-head { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.cart-row { border-bottom: 1px solid var(--light); }
.cart-prod { display: flex; align-items: center; gap: 14px; color: #444; }
.cart-prod:hover { color: var(--maroon); }
.cart-prod small { display: block; color: var(--muted); font-size: 11px; }
.cart-img { width: 64px; height: 64px; flex: none; background-color: #fff; border: 1px solid var(--light); padding: 4px; }
.cart-price, .cart-sub { font-size: 13px; }
.cart-sub { font-weight: 700; color: #444; }
.stepper { display: inline-flex; border: 1px solid var(--border); width: max-content; }
.stepper button { width: 30px; border: 0; background: var(--lighter); cursor: pointer; font-size: 16px; }
.stepper button:hover { background: var(--light); }
.stepper input { width: 48px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; padding: 5px 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-remove { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: #999; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.cart-remove:hover { color: var(--red); }
.cart-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin: 24px 0 50px; }
.totals { width: 340px; max-width: 100%; }
.totals-box { background: var(--lighter); padding: 14px 18px; margin-bottom: 12px; }
.totals-box p { display: flex; justify-content: space-between; margin: 4px 0; font-size: 13px; }
.totals-box .grand { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; font-size: 17px; color: var(--maroon); }
.hint { font-size: 12px; color: var(--muted); }
.totals-box .hint { display: block; margin-top: 8px; }

.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; margin-bottom: 50px; }
.form-stack .row { grid-template-columns: 1fr; gap: 4px; }
.form-stack .row > span:first-child { padding-top: 0; }
.form-stack .sub-title:first-child { margin-top: 0; }
.choice { display: flex; gap: 24px; margin-bottom: 12px; font-size: 13px; }
.check { font-size: 13px; margin: 16px 0 12px; }
.form-stack .btn-block { margin-top: 12px; }
.summary { background: var(--lighter); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary .sub-title { margin-top: 0; font-size: 18px; }
.summary .totals-box { background: #fff; padding: 12px 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin: 6px 0; }
.sum-row b { white-space: nowrap; }
.order-num { font-size: 16px; }
.order-text { width: 100%; min-height: 200px; margin: 8px 0 20px; padding: 10px; font-family: monospace; font-size: 12px; border: 1px solid var(--border); background: var(--lighter); }

/* ---------- Marcas ---------- */
.brands { background: var(--light); padding: 32px 0; }
.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.brand { height: 92px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; }
.brand img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.brand:hover img { filter: none; opacity: 1; }
.brand.loaded span { display: none; }
.brand span { font-size: 17px; font-weight: 800; color: #b8b8b8; text-transform: uppercase; letter-spacing: .3px; line-height: 1.1; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--footer); color: #ddd; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding-top: 36px; padding-bottom: 34px; max-width: 800px; }
.footer-grid strong { display: block; color: #fff; }
.footer-grid p { margin: 0 0 2px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.follow { text-align: center; }
.follow h4 { margin: 0 0 10px; font-size: 15px; font-weight: 400; color: #fff; }
.socials { display: flex; justify-content: center; gap: 6px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #333; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background .15s, color .15s; }
.socials a:hover { background: var(--red); color: #fff; text-decoration: none; }
.footer-bottom { background: var(--footer-bottom); text-align: center; padding: 14px 16px; color: #ccc; }

/* ---------- Extras ---------- */
.to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 34px; height: 34px; border: 0; cursor: pointer; background: var(--maroon); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--maroon); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 30px);
  background: #333; color: #fff; padding: 12px 18px; font-size: 13px; box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transition: all .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast a { color: #ffb4ad; font-weight: 700; margin-left: 10px; text-decoration: underline; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .82); display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }

/* =====================================================================
   REFINAMIENTO VISUAL — cálido, ordenado y elegante
   ===================================================================== */

/* Barra superior de contacto */
.topbar { background: var(--footer); color: #e7dfd8; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; color: #e7dfd8; }
.topbar a:hover { color: #fff; }
.topbar svg { font-size: 14px; color: #e9a9a4; }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--border); }
.search-bar { background: var(--lighter); border-top: 1px solid var(--border); }
.search-inner input { border-radius: 6px; padding: 10px 14px; }

/* Botones */
.btn { border-radius: 6px; padding: 12px 22px; font-weight: 700; letter-spacing: .9px; box-shadow: 0 2px 6px rgba(170, 22, 22, .22); transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { box-shadow: 0 6px 14px rgba(170, 22, 22, .28); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 11px; }

/* Banner rotativo: más compacto y proporcionado */
.slider { height: clamp(210px, 23vw, 310px); background: #fff; border-bottom: 5px solid var(--maroon); }
.slide-inner { max-width: var(--container); padding: 0 84px; }
.slide-kicker, .slide.info .slide-kicker { font-size: clamp(12px, 1.2vw, 14px); font-weight: 700; letter-spacing: 3px; color: var(--maroon); margin-bottom: 8px; }
.slide-text h2 { font-size: clamp(28px, 4vw, 52px); letter-spacing: 1px; }
.slide.info .slide-text h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 40px); color: var(--heading); border-bottom: 0; padding-bottom: 0; letter-spacing: 0; }
.slide-text h2::after { content: ""; display: block; width: 60px; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--maroon); }
.slide-text p { font-size: clamp(13px, 1.2vw, 16px); color: #6f6660; margin-top: 12px; }
.slide-img { height: 84%; }
.slide-img:not(.loaded) { background: radial-gradient(circle, rgba(170, 22, 22, .07) 0 56%, transparent 57%) center / contain no-repeat; }
.slide-icon { width: min(22vw, 210px); background: radial-gradient(circle, rgba(170, 22, 22, .11) 0%, rgba(170, 22, 22, .04) 70%); }
.slider-arrow { width: 40px; height: 40px; font-size: 17px; background: rgba(255, 255, 255, .92); color: var(--heading); box-shadow: var(--shadow); }
.slider-arrow:hover { background: #fff; color: var(--maroon); }
.slider-dots { bottom: 14px; }
.slider-dots button { width: 8px; height: 8px; background: rgba(60, 35, 25, .2); transition: width .3s, background .3s; }
.slider-dots button.active { width: 22px; border-radius: 4px; background: var(--maroon); }

/* Títulos */
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.6vw, 32px); text-transform: none; letter-spacing: .2px; color: var(--heading); margin: 46px 0 32px; }
.section-title::after { width: 56px; height: 3px; border-radius: 2px; margin-top: 14px; }
.sub-title { font-family: var(--serif); font-weight: 500; color: var(--heading); }

/* Accesos rápidos */
.quick { background: linear-gradient(135deg, #b81c1c 0%, var(--maroon) 45%, #841111 100%); padding: 42px 0; }
.quick-grid { max-width: 1000px; gap: 22px; }
.quick-card { aspect-ratio: auto; padding: 28px 16px 24px; border-radius: var(--radius); gap: 8px; box-shadow: 0 8px 24px rgba(40, 0, 0, .25); }
.quick-card svg { font-size: 66px; margin-bottom: 6px; }
.quick-card span { font-size: 15px; letter-spacing: 1.4px; color: var(--heading); transition: color .2s; }
.quick-card small { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.35; }
.quick-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(40, 0, 0, .32); }
.quick-card:hover span { color: var(--maroon); }

/* Ofertas del inicio */
.offers-sec { background: var(--lighter); padding-bottom: 46px; }
.offers { padding-top: 1px; padding-bottom: 0; max-width: 1000px; }
.offers .section-title { margin-top: 40px; }
.offers-track { gap: 22px; grid-auto-columns: calc(50% - 11px); padding: 4px 4px 10px; }
.offer-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.offer-img { aspect-ratio: 16 / 8; margin: 18px 18px 6px 122px; }
.offer-foot { padding: 14px 18px 16px; border-top: 1px solid var(--border); }
.offer-foot h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .6px; color: var(--heading); }
.rosette { top: 18px; left: 18px; width: 82px; height: 82px; font-size: 13px; letter-spacing: 1px; background: var(--maroon); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--maroon), 0 6px 14px rgba(170, 22, 22, .3); }
.mini-nav button { width: 30px; height: 30px; background: #fff; color: var(--heading); border: 1px solid var(--border); box-shadow: var(--shadow); }
.mini-nav button:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* Mosaicos */
.tiles, .tiles-2, .tiles:not(.tiles-2) { max-width: 860px; gap: 22px; }
.tile { border-radius: var(--radius); box-shadow: var(--shadow); }
.tile::before { background: linear-gradient(180deg, rgba(35, 18, 12, .28), rgba(35, 18, 12, .64)); }
.tile:hover::before { background: linear-gradient(180deg, rgba(170, 22, 22, .38), rgba(105, 14, 14, .78)); }
.tile span { font-weight: 600; letter-spacing: 2px; font-size: 20px; }
.tile span::after { content: ""; display: block; width: 34px; height: 2px; margin: 12px auto 0; background: rgba(255, 255, 255, .85); border-radius: 2px; }

/* Barra lateral y migas */
.with-sidebar { grid-template-columns: 220px 1fr; gap: 34px; padding-top: 36px; padding-bottom: 60px; }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.side-title { padding: 13px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-align: left; }
.sidebar a { text-align: left; padding: 10px 16px; font-size: 13px; color: #5b544f; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.sidebar a:last-child { border-bottom: 0; }
.sidebar a:hover { background: var(--lighter); }
.sidebar a.active { background: var(--lighter); color: var(--maroon); border-left-color: var(--maroon); font-weight: 600; }
.breadcrumb { background: none; padding: 0 0 10px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.with-sidebar > div > .section-title { margin-top: 26px; }

/* Tarjetas de producto */
.grid { gap: 22px; }
.card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img { padding: 18px; }
.card-label { background: var(--lighter); border-top: 1px solid var(--border); color: var(--heading); font-weight: 600; letter-spacing: .4px; padding: 12px; }
.card-badge { top: 12px; left: 12px; border-radius: 4px; letter-spacing: .6px; padding: 3px 9px; background: var(--maroon); }
.pager { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 34px; font-size: 14px; }

/* Detalle de producto */
.detail { gap: 40px; }
.detail-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.zoom-corner { border-color: transparent var(--maroon) transparent transparent; }
.detail-info h2 { font-family: var(--serif); font-weight: 500; }
.qty-input { border-radius: 6px; padding: 8px 10px; border-color: #d9d0c8; }
.share a { border-radius: 20px; padding: 4px 12px; background: #fff; }

/* Formularios */
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select {
  background: #fff; border: 1px solid #ddd4cc; border-radius: 6px; padding: 10px 12px; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(170, 22, 22, .12); background: #fff; }
.form .row > span:first-child { padding-top: 10px; color: #5b544f; font-weight: 600; font-size: 13px; }
.form-stack .row > span:first-child { padding-top: 0; }
.form-wide { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); max-width: 820px; margin: 50px auto 60px; }
.radios input, .choice input, .check input { accent-color: var(--maroon); }
.form-msg { border-radius: 6px; }

/* Páginas de contenido */
.info-boxes div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.info-boxes h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; }
.about-banner { border-radius: var(--radius); }
.bar-btn { border-radius: 6px; padding: 13px; font-size: 12px; letter-spacing: 1.5px; }
.branch-cta { border-radius: var(--radius); background: linear-gradient(135deg, #b81c1c, #841111); box-shadow: var(--shadow); }

/* Sucursales */
.branches { gap: 26px; }
.branch { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.branch h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin-bottom: 6px; }
.branch-contact a { color: var(--maroon); }
.map { border-radius: 8px; height: 230px; }
.map-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 230px; margin-top: 10px; border-radius: 8px; text-align: center; color: var(--heading); padding: 16px;
  background: #ece9e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='240' viewBox='0 0 400 240'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='14' d='M-10 160 C80 140 160 190 260 150 S380 90 420 100'/%3E%3Cpath stroke-width='8' d='M120 -10 L150 250 M300 -10 L270 250 M-10 60 L410 40'/%3E%3Cpath stroke-width='4' d='M40 -10 L60 250 M210 -10 L220 250 M360 -10 L340 250 M-10 210 L410 200 M-10 110 L410 95'/%3E%3C/g%3E%3Cg fill='%23d9e4cf'%3E%3Crect x='160' y='60' width='40' height='26' rx='4'/%3E%3Crect x='70' y='175' width='46' height='22' rx='4'/%3E%3C/g%3E%3C/svg%3E") center / cover;
}
.map-card svg { font-size: 40px; color: var(--maroon); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.map-card strong { font-size: 14px; }
.map-card span { font-size: 12px; color: #6f6660; }

/* Carrito */
.cart { border-top: 3px solid var(--maroon); }
.totals-box, .summary { border-radius: var(--radius); }
.summary { border: 1px solid var(--border); }
.stepper { border-radius: 6px; overflow: hidden; }

/* Marcas */
.brands { background: var(--lighter); padding: 40px 0 46px; border-top: 1px solid var(--border); }
.brands-title { margin: 0 0 20px; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.brands-grid { padding: 0; }
.brand { border: 1px solid var(--border); border-radius: 8px; height: 86px; transition: box-shadow .2s; }
.brand:hover { box-shadow: var(--shadow); }
.brand span { color: #bcb3ac; font-size: 16px; letter-spacing: .6px; }

/* Pie de página */
.site-footer { font-size: 13px; color: #cfc6bf; }
.footer-grid { max-width: var(--container); grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 36px; padding-top: 50px; padding-bottom: 42px; }
.footer-grid strong { color: #fff; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; margin: 16px 0 4px; }
.footer-grid div > strong:first-child { margin-top: 0; }
.footer-grid p { line-height: 1.65; }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }
.footer-about { color: #b9afa8; max-width: 300px; }
.follow { text-align: left; }
.follow h4 { margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.socials { justify-content: flex-start; gap: 8px; }
.socials a { width: 38px; height: 38px; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.socials a:hover { background: var(--maroon); border-color: var(--maroon); }
.footer-links { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.footer-links a { color: #cfc6bf; }
.footer-bottom { font-size: 12px; color: #a59c95; border-top: 1px solid rgba(255, 255, 255, .06); }

/* Detalles */
.to-top { border-radius: 50%; width: 40px; height: 40px; box-shadow: var(--shadow); }
.toast { border-radius: 8px; }
.lightbox img { border-radius: 8px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .slide-inner { padding: 0 64px; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .logo-text strong { font-size: 18px; }
  .logo-text small { font-size: 9px; }
  .slide-inner { grid-template-columns: 1fr; text-align: center; padding: 0 56px; }
  .slide-img { display: none; }
  .slider-arrow { width: 36px; height: 36px; font-size: 18px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .offers-track { grid-auto-columns: 100%; }
  .tiles, .tiles-2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile span { font-size: 16px; }
  .with-sidebar { grid-template-columns: 1fr; padding-top: 16px; }
  .sidebar { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .side-title { flex: none; display: flex; align-items: center; }
  .sidebar a { flex: none; white-space: nowrap; border-bottom: 0; border-right: 1px solid #dcdcdc; display: flex; align-items: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .detail { grid-template-columns: 1fr; }
  .info-boxes { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .branch-cta { min-height: 140px; font-size: 24px; }
  .branch-cta svg { font-size: 56px; }
  .form .row { grid-template-columns: 1fr; gap: 4px; }
  .form-wide { margin: 30px auto; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr auto; grid-template-areas: "prod remove" "price price" "qty sub"; gap: 8px; }
  .cart-prod { grid-area: prod; }
  .cart-remove { grid-area: remove; }
  .cart-price { grid-area: price; color: var(--muted); }
  .stepper { grid-area: qty; }
  .cart-sub { grid-area: sub; text-align: right; }
  .cart-footer { flex-direction: column-reverse; align-items: stretch; }
  .totals { width: 100%; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .pager { font-size: 13px; }
  .about-banner { height: 180px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-label { font-size: 11px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .rosette { width: 66px; height: 66px; font-size: 12px; }
  .offer-img { margin-left: 90px; }
}


/* =====================================================================
   TELÉFONOS (Android / iPhone): textos más grandes y áreas táctiles de 44 px
   ===================================================================== */
@media (max-width: 760px) {
  body { font-size: 15px; }
  /* 16 px en campos evita que el iPhone haga zoom al escribir */
  .form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select,
  .search-inner input, .qty-input, .stepper input { font-size: 16px; }
  .form input:not([type=radio]):not([type=checkbox]), .form select { min-height: 44px; }
  .form .row { font-size: 14px; }
  .radios label, .choice label, .check { min-height: 40px; font-size: 15px; }
  .radios input, .choice input, .check input { width: 20px; height: 20px; flex: none; }
  .btn { padding: 13px 20px; font-size: 13px; }
  .btn-sm { padding: 9px 12px; }
  .qty-input { width: 100%; max-width: 160px; height: 44px; }
  .sidebar a { min-height: 44px; padding: 8px 14px; font-size: 13px; }
  .side-title { padding: 8px 14px; font-size: 13px; }
  .breadcrumb { font-size: 13px; padding: 6px 10px; }
  .card-label { font-size: 12.5px; min-height: 56px; }
  .detail-info > p { font-size: 15px; text-align: left; }
  .code { font-size: 14px; }
  .share a { padding: 8px 12px; font-size: 13px; }
  .pager a, .pager .disabled { padding: 10px 0; }
  .stepper button { width: 42px; height: 42px; font-size: 18px; }
  .cart-remove { width: 44px; height: 44px; }
  .branch p { font-size: 14px; }
  .branch h2 { font-size: 20px; }
  .info-boxes p { font-size: 14px; }
  .site-footer { font-size: 14px; }
  .socials a { width: 44px; height: 44px; }
  .footer-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .arrow-list li { padding-top: 4px; padding-bottom: 4px; }
  .section-title { font-size: 20px; margin: 26px 0 22px; }
  .icon-btn { width: 44px; height: 44px; }
  .hint { font-size: 13px; }
  .summary .sum-row { font-size: 14px; }
  .topbar-hide-sm { display: none !important; }
  .topbar-inner { justify-content: center; }
  .slide-inner { padding: 0 54px; }
  .slide-text h2::after { margin-left: auto; margin-right: auto; }
  .quick { padding: 26px 0; }
  .quick-card { padding: 20px 10px 18px; }
  .quick-card svg { font-size: 54px; }
  .quick-card small { font-size: 12px; }
  .offer-img { margin-left: 106px; }
  .with-sidebar { gap: 18px; }
  .sidebar a { border-left: 0; }
  .sidebar a.active { box-shadow: inset 0 -3px var(--maroon); }
  .side-title { text-align: center; }
  .form-wide { padding: 20px 18px; }
  .branch { padding: 18px; }
  .follow { text-align: center; }
  .follow h4 { text-align: center; }
  .socials { justify-content: center; }
  .footer-about { margin: 0 auto; }
  .footer-links { align-items: center; }
}

/* =====================================================================
   MODO APP (Android / iOS con Capacitor o sitio instalado en pantalla de inicio)
   ===================================================================== */
.tabbar { display: none; }
.app-mode .tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: #fff; border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 11px; color: #777; }
.tabbar a svg { font-size: 23px; }
.tabbar a.active { color: var(--maroon); font-weight: 700; }
.tab-count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.tab-count[hidden] { display: none; }
.app-mode body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.app-mode .topbar, .app-mode .nav-row, .app-mode .header-search, .app-mode .menu-toggle, .app-mode .site-footer, .app-mode .to-top, .app-mode .header-tools .cart-btn { display: none !important; }
.app-mode .toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
.app-mode .brands { padding: 20px 0; }
.app-mode .share { display: none; }

.cat-head { margin: 10px 0 12px; font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--maroon); letter-spacing: .5px; }
.menu-list { background: #fff; border: 1px solid var(--light); margin-bottom: 18px; }
.menu-row { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 16px; border-bottom: 1px solid var(--light); color: #444; font-size: 15px; }
.menu-row:last-child { border-bottom: 0; }
.menu-row > svg:first-child { font-size: 22px; color: var(--maroon); }
.menu-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-row > svg:last-child { color: #bbb; font-size: 16px; }
.menu-row:active, .menu-row:hover { background: var(--lighter); }

@media (hover: none) {
  .card:hover, .quick-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Banner: ícono para avisos informativos ---------- */
.slide-icon { justify-self: center; display: flex; align-items: center; justify-content: center; width: min(30vw, 300px); aspect-ratio: 1; border-radius: 50%; background: rgba(170, 22, 22, .07); color: var(--maroon); }
.slide-icon svg { width: 46%; height: 46%; stroke-width: 1.4; }
@media (max-width: 760px) { .slide-icon { display: none; } }

/* ---------- Sucursales ---------- */
.branch-contact { display: flex; flex-direction: column; gap: 2px; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-light { background: #fff; color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.btn-light:hover { background: var(--maroon); color: #fff; }

@media (min-width: 761px) and (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-hide-md { display: none !important; }
}

/* Banner: ícono de respaldo mientras no haya foto del producto */
.slide-icon { position: relative; overflow: hidden; }
.slide-icon svg.duo { width: 50%; height: 50%; stroke-width: 2.4; }
.slide-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide-icon.has-img { background: none; border-radius: 0; width: min(36vw, 420px); aspect-ratio: 4 / 3; }
.slide-icon.has-img svg { display: none; }
.btn { white-space: nowrap; }
.offer-foot h3 { flex: 1; min-width: 0; }
.slide-icon:not(.has-img) { width: auto; height: 76%; max-width: 230px; }

/* =====================================================================
   ENCABEZADO: logo grande + menú con desplegables
   ===================================================================== */
.site-header { box-shadow: none; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(60, 35, 25, .10); }
.header-inner { height: auto; min-height: 112px; gap: 28px; transition: min-height .25s; }
.logo img { height: 74px; transition: height .25s; }
.site-header.scrolled .header-inner { min-height: 74px; }
.site-header.scrolled .logo img { height: 50px; }

/* Buscador en el encabezado (computadora) */
.header-search { flex: 1; max-width: 430px; display: flex; align-items: center; margin-left: auto; position: relative; }
.header-search input { width: 100%; height: 44px; padding: 0 48px 0 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--lighter); font-size: 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.header-search input:focus { outline: none; background: #fff; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(170, 22, 22, .12); }
.header-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; }
.header-search button:hover { background: var(--maroon-dark); }
#searchToggle { display: none; }

/* Fila del menú */
.nav-row { border-top: 1px solid var(--border); background: #fff; }
.main-nav { display: flex; align-items: stretch; justify-content: center; gap: 4px; height: 52px; }
.main-nav > a, .nav-item > .nav-link {
  position: relative; display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #3f3834; transition: color .15s;
}
.nav-link svg { font-size: 13px; opacity: .7; transition: transform .2s; }
.main-nav > a::after, .nav-item > .nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--maroon); transform: scaleX(0); transition: transform .2s;
}
.main-nav > a:hover, .nav-item:hover > .nav-link, .main-nav > a.active, .nav-item.active > .nav-link { color: var(--maroon); }
.main-nav > a.active::after, .nav-item.active > .nav-link::after { transform: scaleX(1); }
.nav-item { position: relative; display: flex; align-items: stretch; }
.drop-toggle { display: none; }

.dropdown {
  position: absolute; top: 100%; left: 50%; z-index: 60; min-width: 210px;
  padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 34px rgba(60, 35, 25, .14);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--maroon); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-item.suppress .dropdown { opacity: 0 !important; visibility: hidden !important; }
.dropdown a { display: block; padding: 9px 14px; border-radius: 6px; font-size: 14px; color: #4d4642; white-space: nowrap; }
.dropdown a:hover { background: var(--lighter); color: var(--maroon); }
.dropdown.mega { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 6px 14px; padding: 18px; }
.drop-col { display: flex; flex-direction: column; }
.dropdown a.drop-head { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--maroon); border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 4px; padding-bottom: 9px; }
.dropdown a.drop-head:hover { background: none; text-decoration: underline; }

.crumb-wrap { padding-top: 30px; }
.lead { font-size: 15px; color: var(--muted); margin: -16px 0 30px; }

/* Tableta y teléfono: menú desplegable lateral */
@media (max-width: 980px) {
  .header-inner { min-height: 84px; gap: 10px; }
  .logo img { height: 52px; }
  .site-header.scrolled .header-inner { min-height: 68px; }
  .site-header.scrolled .logo img { height: 42px; }
  .header-search { display: none; }
  #searchToggle, .menu-toggle { display: inline-flex; }
  .nav-row { display: none; max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: 0 12px 20px rgba(60, 35, 25, .12); }
  body.menu-open .nav-row { display: block; }
  .nav-row .container { padding: 0; }
  .main-nav { flex-direction: column; height: auto; gap: 0; }
  .main-nav > a, .nav-item > .nav-link { height: auto; min-height: 52px; padding: 0 20px; font-size: 14px; border-bottom: 1px solid var(--border); flex: 1; }
  .main-nav > a::after, .nav-item > .nav-link::after { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; border-radius: 0; }
  .nav-link svg { display: none; }
  .nav-item { flex-wrap: wrap; }
  .drop-toggle { display: flex; align-items: center; justify-content: center; width: 56px; border: 0; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; color: #6f6660; font-size: 18px; cursor: pointer; }
  .drop-toggle svg { transition: transform .2s; }
  .nav-item.open .drop-toggle svg { transform: rotate(180deg); }
  .dropdown, .nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
    position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; padding: 6px 0 10px; background: var(--lighter); border-bottom: 1px solid var(--border);
  }
  .dropdown::before { display: none; }
  .nav-item.open .dropdown { display: block; }
  .dropdown.mega { grid-template-columns: 1fr; padding: 6px 0 10px; }
  .dropdown a { padding: 12px 20px 12px 36px; font-size: 14.5px; border-radius: 0; }
  .dropdown a.drop-head { padding: 14px 20px 8px 36px; margin: 0; border-bottom: 0; font-size: 12px; }
  .drop-col + .drop-col { border-top: 1px solid var(--border); margin-top: 6px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 72px; gap: 4px; }
  .logo img, .site-header.scrolled .logo img { height: 42px; }
  .site-header.scrolled .header-inner { min-height: 64px; }
  .header-tools { gap: 0; }
  .header-tools .icon-btn { width: 42px; }
}
@media (max-width: 370px) { .logo img, .site-header.scrolled .logo img { height: 36px; } }

/* ---------- Educación continua ---------- */
.empty-box { text-align: center; background: #fff; border: 1px dashed #d9cfc6; border-radius: var(--radius); padding: 34px 24px; margin-bottom: 10px; }
.empty-box svg { font-size: 64px; color: var(--maroon); }
.empty-box h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--heading); margin: 6px 0 4px; }
.empty-box p { max-width: 480px; margin: 0 auto; }
.courses { display: flex; flex-direction: column; gap: 14px; }
.course { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.course-date { font-weight: 700; color: var(--maroon); font-size: 13px; line-height: 1.35; }
.course-area { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.course h3 { margin: 2px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--heading); }
.course p { margin: 0; font-size: 13.5px; }
.course-meta { color: var(--muted); }
@media (max-width: 760px) { .course { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Quiénes somos ---------- */
.about { max-width: 1000px; padding-bottom: 60px; }
.about-intro { max-width: 760px; margin: 0 auto; text-align: center; font-size: 15.5px; line-height: 1.8; }
.about-heading { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); color: var(--maroon); line-height: 1.3; margin: -6px 0 18px; }
.about-intro p { margin: 0 0 14px; }
.about-motto { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--maroon); font-size: 17px; margin-top: 12px !important; }
.about-motto.big { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: .3px; margin: 18px 0 !important; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 42px 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-stats div { padding: 22px 14px; text-align: center; border-right: 1px solid var(--border); }
.about-stats div:last-child { border-right: 0; }
.about-stats strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 34px; color: var(--maroon); line-height: 1.1; }
.about-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.about-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px 22px; box-shadow: var(--shadow); }
.about-card.pillar { border-top: 4px solid var(--maroon); background: linear-gradient(#fff, #fff) padding-box; }
.about-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--maroon); }
.about-label svg { font-size: 17px; }
.about-card h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--heading); line-height: 1.3; margin: 8px 0 12px; }
.about-card p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.7; }
.about-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.about-cta .btn-light { box-shadow: inset 0 0 0 1px var(--maroon); }
@media (max-width: 760px) {
  .about-intro { text-align: left; font-size: 15.5px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats div:nth-child(2) { border-right: 0; }
  .about-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .about-card { padding: 20px; }
}

/* Menú: un poco más compacto en pantallas medianas */
@media (min-width: 981px) and (max-width: 1240px) {
  .main-nav > a, .nav-item > .nav-link { padding: 0 11px; font-size: 12px; letter-spacing: .7px; }
  .main-nav > a::after, .nav-item > .nav-link::after { left: 11px; right: 11px; }
}

.topbar a, .topbar span { white-space: nowrap; }
@media (max-width: 1240px) { .topbar-hide-md { display: none !important; } }

/* ---------- Marcas: franja animada + página ---------- */
.brands { padding: 34px 0 40px; overflow: hidden; }
.brands-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.brands-head .brands-title { margin: 0; text-align: left; }
.brands-all { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--maroon); white-space: nowrap; }
.brands-all svg { font-size: 12px; }
.brands-all:hover { text-decoration: underline; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; padding: 4px 0; animation: marquee calc(var(--n) * 2.6s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.brand { position: relative; flex: none; width: 170px; height: 82px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.brand img { max-height: 54px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.brand:hover img { filter: none; opacity: 1; }
.brand.loaded span { display: none; }
.brand span { font-size: 15px; font-weight: 800; color: #b5aba3; text-transform: uppercase; letter-spacing: .6px; line-height: 1.15; transition: color .2s; }
.brand:hover span { color: var(--maroon); }
.brands-page { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brands-page .brand { width: auto; height: 96px; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .brands-page { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand { width: 140px; height: 72px; }
  .brands-page .brand { height: 80px; }
  .brands-head .brands-title { font-size: 11px; letter-spacing: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* =====================================================================
   EFECTOS (fx.js)
   ===================================================================== */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--maroon); }
.eyebrow i { display: inline-block; width: 28px; height: 2px; background: var(--maroon); border-radius: 2px; }
.eyebrow svg { font-size: 16px; }

/* Aparición al hacer scroll (usa "translate" para no chocar con otras transformaciones) */
.fx [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s cubic-bezier(.2, .7, .1, 1) var(--d, 0s), translate .8s cubic-bezier(.2, .7, .1, 1) var(--d, 0s); }
.fx [data-reveal].in { opacity: 1; translate: 0 0; }

/* Inclinación 3D + brillo */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .25s; will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(170, 22, 22, .10), transparent 65%); }
.tilt:hover::after { opacity: 1; }
.quick-card { position: relative; }
.quick-card.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.magnetic { transition: transform .3s cubic-bezier(.2, .7, .1, 1), background .15s, box-shadow .15s, color .15s; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: #fff; height: clamp(470px, 40vw, 560px); border-bottom: 5px solid var(--maroon); touch-action: pan-y; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; pointer-events: none; }
.hero-text { max-width: 560px; pointer-events: auto; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.6px; color: var(--heading); margin: 18px 0 16px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1s cubic-bezier(.2, .7, .1, 1) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes lineUp { to { transform: none; } }
.hero-word { font-style: italic; color: var(--maroon); display: inline-block; }
.hero-word.in, .hero-sub.in { animation: wordIn .6s cubic-bezier(.2, .7, .1, 1); }
@keyframes wordIn { from { opacity: 0; transform: translateY(35%); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-sub { font-size: 17px; color: #6f6660; margin: 0 0 28px; min-height: 1.6em; opacity: 0; animation: fadeUp .8s .35s forwards; }
.hero-sub.in { opacity: 1; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.btn-lg { padding: 16px 28px; font-size: 12.5px; border-radius: 30px; }
.btn-lg b { font-weight: 800; }
.btn-ghost { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 1.5px #ddd3ca; border-radius: 30px; padding: 16px 26px; font-size: 12.5px; }
.btn-ghost:hover { background: transparent; color: var(--maroon); box-shadow: inset 0 0 0 1.5px var(--maroon); }
.hero-tabs { display: flex; gap: 22px; margin-top: 40px; opacity: 0; animation: fadeUp .8s .65s forwards; }
.hero-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 112px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 11.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #a39a93; transition: color .2s; }
.hero-tabs button:hover, .hero-tabs button.active { color: var(--heading); }
.hero-tabs .bar { display: block; width: 100%; height: 2px; border-radius: 2px; background: #ece5df; overflow: hidden; }
.hero-tabs .bar i { display: block; width: 0; height: 100%; background: var(--maroon); }
.hero-tabs .active .bar i { animation: barFill var(--dur, 3s) linear forwards; }
.hero.paused .hero-tabs .active .bar i { animation-play-state: paused; }
@keyframes barFill { to { width: 100%; } }

/* ---------- Frase + cifras (inicio) ---------- */
.statement { background: #fff; padding: 84px 0 70px; }
.fill-words { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.08; letter-spacing: -.8px; margin: 18px 0 34px; max-width: 980px; }
.fill-words span { color: #e6ded7; transition: color .5s; }
.fill-words span.on { color: var(--heading); }
.fill-words span.on:last-child { color: var(--maroon); }
.statement-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 46px; }
.statement-row p { max-width: 560px; margin: 0; font-size: 16px; line-height: 1.75; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--maroon); white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid var(--maroon); }
.link-arrow svg { font-size: 13px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.counters div { padding: 28px 18px 0 0; }
.counters strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.4vw, 58px); line-height: 1; color: var(--maroon); font-variant-numeric: tabular-nums; }
.counters span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 190px; line-height: 1.4; }

/* ---------- Quiénes somos (diseño editorial) ---------- */
.ab-hero { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 64px; max-width: var(--container); }
.ab-title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.4px; color: var(--heading); margin: 18px 0 22px; }
.ab-motto { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--maroon); margin: 0; padding-left: 16px; border-left: 3px solid var(--maroon); }
.ab-hero-right p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.8; }
.ab-hero-right .ab-lead { font-size: 18px; line-height: 1.7; color: var(--heading); }
.ab-closing { margin-top: 20px !important; padding: 16px 20px; background: var(--lighter); border-radius: 8px; color: var(--heading); }
.ab-stats-band { background: var(--footer); color: #fff; }
.ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.ab-stats div { padding: 34px 20px; border-right: 1px solid rgba(255, 255, 255, .1); }
.ab-stats div:first-child { padding-left: 0; }
.ab-stats div:last-child { border-right: 0; }
.ab-stats strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ab-stats span { display: block; margin-top: 10px; font-size: 13px; color: #bfb5ae; line-height: 1.4; }
.ab-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 70px; padding-bottom: 30px; max-width: var(--container); }
.ab-pillar { position: relative; padding: 36px 34px 30px; background: var(--lighter); border-radius: 14px; overflow: hidden; }
.ab-pillar h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; color: var(--heading); margin: 14px 0 14px; max-width: 90%; }
.ab-pillar p { margin: 0; font-size: 15.5px; line-height: 1.75; }
.ab-num { font-family: var(--serif); font-size: 15px; color: var(--muted); letter-spacing: 1px; }
.ab-pillar .ab-num { position: absolute; top: 18px; right: 24px; font-size: 64px; line-height: 1; color: rgba(170, 22, 22, .09); font-weight: 600; }
.ab-rows { padding-top: 30px; padding-bottom: 40px; max-width: var(--container); }
.ab-row { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; padding: 44px 0; border-top: 1px solid var(--border); }
.ab-row:last-child { border-bottom: 1px solid var(--border); }
.ab-row-head .ab-num { display: block; margin-bottom: 10px; }
.ab-row-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; color: var(--heading); margin: 12px 0 0; }
.ab-row-body p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.8; }
.ab-row-motto { font-family: var(--serif); font-style: italic; font-size: 18px !important; color: var(--maroon); margin-top: 18px !important; }
.ab-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 40px 0 70px; padding: 44px 48px; border-radius: 16px; background: var(--maroon); color: #fff; }
.ab-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 38px); margin: 0 0 6px; color: #fff; }
.ab-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15.5px; max-width: 460px; }
.ab-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--maroon); border-radius: 30px; box-shadow: none; }
.btn-white:hover { background: #fff; color: var(--maroon-dark); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.btn-outline-white { background: transparent; color: #fff; border-radius: 30px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- Teléfonos ---------- */
@media (max-width: 760px) {
  .hero { height: auto; padding: 36px 0 310px; }
  .hero-inner { height: auto; }
  .hero-title { font-size: clamp(36px, 10vw, 46px); margin-top: 14px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 20px; }
  .btn-lg, .btn-ghost { padding: 14px 20px; }
  .hero-tabs { gap: 14px; margin-top: 26px; }
  .hero-tabs button { min-width: 0; flex: 1; font-size: 10.5px; letter-spacing: .8px; }
  .statement { padding: 54px 0 46px; }
  .fill-words { margin-bottom: 24px; }
  .statement-row { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counters div { padding: 22px 12px 18px 0; }
  .ab-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; padding-bottom: 40px; }
  .ab-stats { grid-template-columns: 1fr 1fr; }
  .ab-stats div { padding: 24px 14px; border-right: 0; }
  .ab-stats div:first-child { padding-left: 14px; }
  .ab-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .ab-pillars { grid-template-columns: 1fr; gap: 16px; padding-top: 40px; }
  .ab-pillar { padding: 28px 22px 24px; }
  .ab-row { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .ab-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; margin-bottom: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span, .hero-sub, .hero-ctas, .hero-tabs { animation: none; transform: none; opacity: 1; }
}

/* Ajustes de portada */
.hero-text { max-width: 660px; }
.hero-title { font-size: clamp(40px, 4.6vw, 64px); }
@media (max-width: 760px) {
  .hero { padding: 30px 0 250px; }
  .hero-ctas { flex-wrap: nowrap; gap: 8px; }
  .hero-ctas .btn { padding: 13px 16px; font-size: 11px; letter-spacing: .6px; }
  .hero-tabs { margin-top: 22px; }
}

/* Quiénes somos: primer párrafo igual a los demás; compromiso destacado */
.ab-hero-right .ab-lead { font-size: 15.5px; line-height: 1.8; color: var(--text); }
.ab-closing { margin-top: 26px !important; padding: 22px 0 22px 26px !important; background: none !important; border-radius: 0 !important;
  border-left: 4px solid var(--maroon); font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2vw, 26px) !important; line-height: 1.45 !important; color: var(--heading) !important; }
@media (max-width: 760px) { .ab-closing { font-size: 20px !important; padding-left: 18px !important; } }

/* =====================================================================
   ASISTENTE (chat.js)
   ===================================================================== */
.chat { --chat-b: calc(18px + env(safe-area-inset-bottom)); position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: var(--chat-b); z-index: 65; font-size: 14px; }
.chat-fab { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; min-width: 58px; padding: 0 17px; border: 0; border-radius: 30px; background: var(--maroon); color: #fff; cursor: pointer;
  box-shadow: 0 10px 26px rgba(170, 22, 22, .35); transition: transform .25s cubic-bezier(.2, .7, .1, 1), box-shadow .2s, background .2s; }
.chat-fab svg { width: 25px; height: 25px; flex: none; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(170, 22, 22, .42); }
.chat-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(170, 22, 22, .45); animation: chatPulse 2.6s 1.5s 3; }
@keyframes chatPulse { 70% { box-shadow: 0 0 0 16px rgba(170, 22, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(170, 22, 22, 0); } }
.chat-fab-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 13px; letter-spacing: .3px; transition: max-width .45s cubic-bezier(.2, .7, .1, 1); }
.chat.hint:not(.open) .chat-fab-label, .chat-fab:hover .chat-fab-label { max-width: 150px; }
.chat.open .chat-fab { background: var(--heading); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }

.chat-panel { position: absolute; right: 0; bottom: 72px; width: 370px; height: min(560px, calc(100vh - 150px)); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(60, 35, 25, .25);
  opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .22s, transform .22s cubic-bezier(.2, .7, .1, 1); }
.chat.open .chat-panel { opacity: 1; transform: none; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--maroon); color: #fff; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.chat-head span i { width: 7px; height: 7px; border-radius: 50%; background: #7ee28a; }
.chat-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.chat-close:hover { background: rgba(255, 255, 255, .26); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 6px; background: var(--lighter); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; line-height: 1.5; font-size: 14px; animation: msgIn .25s ease-out; word-wrap: break-word; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin-bottom: 0; }
.msg.bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--maroon); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.msg strong { color: var(--heading); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #c9bfb8; animation: dot 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; } .msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--lighter); scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; padding: 7px 12px; border: 1px solid #e3c9c6; border-radius: 16px; background: #fff; color: var(--maroon); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chat-chips button:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 21px; background: var(--lighter); font-size: 14px; }
.chat-form input:focus { outline: none; border-color: var(--maroon); background: #fff; box-shadow: 0 0 0 3px rgba(170, 22, 22, .1); }
.chat-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--maroon); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-form button svg { width: 19px; height: 19px; }
.chat-note { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 10.5px; color: var(--muted); text-align: center; }

/* el botón "volver arriba" se ubica sobre el chat */
.to-top { bottom: calc(90px + env(safe-area-inset-bottom)); right: max(27px, env(safe-area-inset-right)); }
.app-mode .chat { --chat-b: calc(70px + env(safe-area-inset-bottom)); }

@media (max-width: 760px) {
  .chat { right: 14px; }
  .chat-fab { height: 54px; min-width: 54px; padding: 0 15px; }
  .chat.open .chat-panel { position: fixed; inset: 0; width: auto; height: auto; bottom: 0; border-radius: 0; border: 0;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .chat.open .chat-fab { display: none; }
  .chat-form input { font-size: 16px; }
  .msg { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .chat-fab::after { animation: none; } }
.chat.open .chat-fab-label { max-width: 0 !important; }

/* Carrito (ícono como antes, un poco más grande) */
.header-tools .cart-btn { width: 50px; height: 50px; }
.header-tools .cart-btn svg { width: 28px; height: 28px; }
.header-tools .cart-btn .cart-count { top: 3px; right: 1px; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; font-size: 11.5px; }
@media (max-width: 760px) { .header-tools .cart-btn { width: 46px; height: 46px; } .header-tools .cart-btn svg { width: 26px; height: 26px; } }

/* =====================================================================
   VIDEO "CONÓZCANOS" (inicio)
   ===================================================================== */
.reel { position: relative; overflow: hidden; height: clamp(420px, 46vw, 600px); background: #1d1715; color: #fff; }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 14, 12, .86) 0%, rgba(25, 14, 12, .62) 42%, rgba(25, 14, 12, .1) 78%); }
.reel-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow.light { color: #f2b8b3; } .eyebrow.light i { background: #f2b8b3; }
.reel h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -.4px; margin: 16px 0 16px; max-width: 640px; color: #fff; }
.reel h2 em { color: #f2b8b3; }
.reel p { max-width: 470px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .85); margin: 0 0 26px; }
.reel-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   SÍGUENOS (inicio) — mismo formato que el pie de página, en versión clara
   ===================================================================== */
.follow-sec { padding: 34px 0; background: #fff; border-top: 1px solid var(--border); }
.follow-inner { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: start; }
.follow-h { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--heading); }
.follow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.follow-sec .follow-row { border-bottom: 1px solid var(--border); padding: 8px 0 12px; }
.follow-sec .fr-net { color: var(--heading); font-size: 12px; }
.follow-sec .fr-net svg { width: 16px; height: 16px; color: var(--maroon); }
.follow-sec .fr-links a { color: var(--text); font-size: 14.5px; }
.follow-sec .fr-links a:hover { color: var(--maroon); }
.fr-soon { font-size: 13px; color: #8f8580; opacity: .7; cursor: default; }
.fr-soon::after { content: " (pronto)"; font-size: 11px; }
.follow-sec .fr-soon { font-size: 14.5px; color: #b0a69f; opacity: 1; }
@media (max-width: 760px) { .follow-inner, .follow-cols { grid-template-columns: 1fr; gap: 8px; } .follow-sec { padding: 26px 0; } }

/* pie de página: una fila por red */
.follow-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fr-net { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #fff; }
.fr-net svg { width: 15px; height: 15px; }
.fr-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fr-links a { font-size: 13px; color: #cfc6bf; }
.fr-links a:hover { color: #fff; }
.follow > .socials { margin-top: 12px; }

/* =====================================================================
   QUIÉNES SOMOS — frase grande, collage y fotos por bloque
   ===================================================================== */
.ab-motto { font-size: clamp(26px, 2.9vw, 38px) !important; line-height: 1.2; border-left: 0 !important; padding-left: 0 !important; margin-top: 6px !important; letter-spacing: -.2px; }
.ab-gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; padding-bottom: 60px; max-width: var(--container); }
.ab-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.ab-gallery figure:first-child { aspect-ratio: auto; }
.ab-gallery .ph { width: 100%; height: 100%; }
.ab-gallery .ph img { object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.ab-gallery figure:hover img { transform: scale(1.05); }
.ab-row-img { margin-top: 22px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.ab-row-img .ph { width: 100%; height: 100%; }
.ab-row-img .ph img { object-fit: cover; }

/* =====================================================================
   EDUCACIÓN CONTINUA — galería
   ===================================================================== */
.sec-head { margin: 0 0 26px; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.8vw, 36px); color: var(--heading); margin: 12px 0 0; line-height: 1.2; }
.edu-gallery-sec { padding-top: 56px; }
.edu-gallery { columns: 3 280px; column-gap: 14px; }
.gal-item { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: var(--lighter); box-shadow: var(--shadow); }
.gal-item .ph img { height: auto; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .1, 1); }
.gal-item:hover .ph img { transform: scale(1.05); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; text-align: left; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; transform: none; }
.edu-events { padding-top: 40px; padding-bottom: 20px; }
.events-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-item.ev { margin: 0; aspect-ratio: 3 / 4; }
.gal-item.ev .ph { height: 100%; }
.gal-item.ev .ph img { height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .reel { height: 520px; }
  .reel-shade { background: linear-gradient(0deg, rgba(25, 14, 12, .9) 0%, rgba(25, 14, 12, .55) 60%, rgba(25, 14, 12, .25) 100%); }
  .reel-inner { justify-content: flex-end; padding-bottom: 40px; }
  .ab-gallery { grid-template-columns: 1fr 1fr; padding-bottom: 40px; gap: 10px; }
  .ab-gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .edu-gallery { columns: 2 140px; column-gap: 10px; }
  .gal-item { margin-bottom: 10px; }
  .events-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal-cap { opacity: 1; transform: none; font-size: 11.5px; padding: 18px 10px 8px; }
}
@media (max-width: 760px) { .to-top { left: 14px; right: auto; bottom: calc(18px + env(safe-area-inset-bottom)); width: 44px; height: 44px; } .app-mode .to-top { display: none !important; } }

/* Curso */
.course, .course.has-poster { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; padding: 24px; }
.course.has-poster { grid-template-columns: 230px 1fr; }
.course-poster { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 9 / 16; box-shadow: var(--shadow); background: var(--lighter); }
.course-poster .ph { width: 100%; height: 100%; } .course-poster .ph img { object-fit: cover; transition: transform .5s; }
.course-poster:hover img { transform: scale(1.04); }
.course-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.course-main h3 { margin: 2px 0 2px; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--heading); }
.course-instructor { margin: 0 0 8px !important; font-size: 15px !important; }
.course-instructor strong { color: var(--maroon); }
.course-facts { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 10px; }
.course-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.course-facts svg { width: 20px; height: 20px; flex: none; color: var(--maroon); margin-top: 1px; }
.course-desc { margin: 0 0 14px !important; font-size: 14.5px !important; line-height: 1.65; }
.course-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.course-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(170, 22, 22, .09); color: var(--maroon); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
@media (max-width: 760px) { .course.has-poster { grid-template-columns: 1fr; } .course-poster { max-width: 190px; } .course { padding: 18px; } }
.header-tools .cart-btn svg { width: 30px; height: 30px; }

/* Logo siempre del mismo tamaño (no se reduce al bajar) */
.site-header.scrolled .header-inner { min-height: 112px; }
.site-header.scrolled .logo img { height: 74px; }
@media (max-width: 980px) { .site-header.scrolled .header-inner { min-height: 84px; } .site-header.scrolled .logo img { height: 52px; } }
@media (max-width: 760px) { .site-header.scrolled .header-inner { min-height: 72px; } .site-header.scrolled .logo img { height: 42px; } }
@media (max-width: 370px) { .site-header.scrolled .logo img { height: 36px; } }

/* Próximos cursos: solo el arte */
.courses-h { margin: 6px 0 18px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--maroon); }
.courses-art { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 26px; margin-bottom: 10px; }
.course-art { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--lighter);
  aspect-ratio: 9 / 16; box-shadow: 0 10px 30px rgba(60, 35, 25, .18); transition: transform .35s cubic-bezier(.2, .7, .1, 1), box-shadow .35s; }
.courses-art.single { grid-template-columns: minmax(260px, 340px); }
.course-art .ph { width: 100%; height: 100%; } .course-art .ph img { object-fit: cover; }
.course-art:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(60, 35, 25, .25); }
.course-art-cta { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 24px;
  background: var(--maroon); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap; }
.course-art-cta svg { width: 13px; height: 13px; }
.course-art:hover .course-art-cta, .course-art:focus-visible .course-art-cta { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .course-art-cta { opacity: 1; transform: translate(-50%, 0); } }
.course-art.no-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; font-size: 18px; color: var(--heading); }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #1f9e55; box-shadow: 0 4px 12px rgba(31, 158, 85, .3); }
.btn-wa:hover { background: #17834a; }
.btn-wa svg { width: 18px; height: 18px; }
.wa-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wa-box[hidden] { display: none; }
.form.flash { animation: formFlash 1.6s ease-out; }
@keyframes formFlash { 0% { box-shadow: 0 0 0 0 rgba(170, 22, 22, .45); } 40% { box-shadow: 0 0 0 10px rgba(170, 22, 22, .12); } 100% { box-shadow: var(--shadow); } }
@media (max-width: 760px) { .courses-art, .courses-art.single { grid-template-columns: minmax(0, 300px); } }

/* =====================================================================
   MAPA DE SUCURSALES (Contáctenos)
   ===================================================================== */
.branch-map { position: relative; display: block; min-height: 380px; border-radius: 16px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 75% 40%, #c42222 0%, #a51515 45%, #6e0c0c 100%); box-shadow: 0 18px 40px rgba(120, 15, 15, .28); }
.branch-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.branch-map::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 22px 22px; }
.bm-label { position: absolute; left: 30px; bottom: 28px; z-index: 2; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.bm-label strong { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: .3px; }
.bm-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255, 255, 255, .85); transition: gap .2s, color .2s; }
.bm-go svg { width: 13px; height: 13px; }
.branch-map:hover .bm-go { gap: 10px; color: #fff; }
.bm-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bm-pin { position: absolute; width: 0; height: 0; pointer-events: auto; opacity: 0; transform: translateY(-10px); transition: opacity .5s calc(.6s + var(--i) * .12s), transform .5s calc(.6s + var(--i) * .12s); }
.branch-map.live .bm-pin { opacity: 1; transform: none; }
.bm-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 0 14px rgba(255, 255, 255, .8); }
.bm-ring { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: bmPulse 2.4s ease-out infinite; animation-delay: calc(var(--i) * .35s); }
@keyframes bmPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
.bm-count { position: absolute; left: 6px; top: -18px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fff; color: var(--maroon); font-size: 10px; line-height: 16px; text-align: center; font-weight: 800; }
.bm-tip { position: absolute; left: 14px; top: 50%; transform: translate(0, -50%) scale(.92); transform-origin: left center; padding: 7px 11px; border-radius: 8px; white-space: nowrap;
  background: #fff; color: var(--heading); font-size: 12px; font-weight: 700; line-height: 1.35; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.bm-pin.left .bm-tip { left: auto; right: 14px; transform-origin: right center; }
.bm-pin.on .bm-tip, .bm-pin:hover .bm-tip { opacity: 1; transform: translate(0, -50%) scale(1); }
.bm-pin.on .bm-dot, .bm-pin:hover .bm-dot { background: #ffe1df; }
@media (max-width: 760px) { .branch-map { min-height: 420px; } .bm-label { left: 22px; bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .bm-ring { animation: none; } }

.branch-map { min-height: 430px; }
.bm-count { left: -22px; top: -20px; }
.bm-pin.left .bm-count { left: 8px; }
@media (max-width: 760px) { .branch-map { min-height: 440px; } .bm-tip { font-size: 11.5px; } }

.brand img { max-height: none; max-width: none; object-fit: contain; }

/* Educación continua: título a la izquierda (como Quiénes somos), afiche a la derecha */
.edu-hero { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 30px; max-width: var(--container); }
.edu-hero .ab-title { margin-bottom: 14px; }
.edu-hint { margin: 0; color: var(--muted); font-size: 15px; }
.edu-hero-right .courses-art, .edu-hero-right .courses-art.single { justify-content: start; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); }
.btn-wa { background: var(--maroon); box-shadow: 0 2px 6px rgba(170, 22, 22, .22); }
.btn-wa:hover { background: var(--maroon-dark); }
.form-edu { max-width: 1040px; padding: 40px 48px; }
.form-edu .row { grid-template-columns: 220px 1fr; font-size: 14.5px; }
.form-edu .radios { gap: 8px; }
.form-edu .radios label { font-size: 16px; gap: 10px; }
.form-edu .radios input { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .edu-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; }
  .edu-hero-right .courses-art { justify-content: center; }
  .form-edu { padding: 22px 18px; } .form-edu .row { grid-template-columns: 1fr; }
}

/* Mapa de sucursales más grande */
.contact-grid { grid-template-columns: 1fr 1.25fr; }
.branch-map { min-height: 540px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .branch-map { min-height: 480px; } }

/* Logos de marcas a color */
.brand img { filter: none; opacity: 1; }
.events-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* "Próximos cursos" del mismo tamaño que los demás títulos de sección */
.edu-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; color: var(--heading); margin: 12px 0 10px; }

/* Contáctenos: texto introductorio igual que los datos */
.contact-intro, .contact-list li { font-size: 15px; line-height: 1.7; }
.contact-intro { margin: 0 0 6px; }

/* Formulario de Educación continua: todo del mismo tamaño, cómodo de leer */
.form-edu .row, .form-edu .row > span:first-child, .form-edu .radios label,
.form-edu input:not([type=radio]):not([type=checkbox]), .form-edu select, .form-edu textarea { font-size: 15px; }
.form-edu .row > span:first-child { font-weight: 600; color: #4d4642; }
.form-edu .radios label { color: #4d4642; gap: 10px; }
.form-edu .radios input { width: 18px; height: 18px; }
@media (max-width: 760px) { .form-edu input:not([type=radio]):not([type=checkbox]), .form-edu select, .form-edu textarea { font-size: 16px; } }

/* Todos los formularios con el mismo tamaño de letra que el resto del texto */
.form .row, .form .row > span:first-child, .form .radios label,
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { font-size: 15px; }
.form .row > span:first-child { font-weight: 600; color: #4d4642; }
@media (max-width: 760px) { .form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { font-size: 16px; } }

/* Etiquetas de formularios en una sola línea (el asterisco al lado) */
.form .row > span:first-child { white-space: nowrap; }
.contact-grid .row { grid-template-columns: 130px 1fr; }
@media (max-width: 760px) { .contact-grid .row { grid-template-columns: 1fr; } }

/* Cintillo de marcas en escala de grises (a color al pasar el mouse) */
.brand img { filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .3s, opacity .3s; }
.brand:hover img { filter: none; opacity: 1; }

.brand img { filter: grayscale(1) brightness(var(--b, 1)) contrast(1.05); opacity: .78; }
.brand:hover img { filter: none; opacity: 1; }
