/* An & An Confecciones — sitio público (tema claro) */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/Poppins-Regular.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/Poppins-Medium.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/Poppins-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.woff2) format("woff2"); }
@font-face { font-family: "Dancing Script"; font-weight: 400 700; font-display: swap; src: url(fonts/DancingScript.woff2) format("woff2"); }

:root {
  --azul: #1e3a5f; --azul-2: #2a4f7d; --azul-50: #f2f6fb; --azul-100: #e3ebf5; --azul-200: #c3d2e6;
  --rojo: #d62845; --oro: #f2c14e;
  --fondo: #fbfaf8; --texto: #1f2733; --mute: #5f6b7b; --borde: #e3e8ef;
  --sombra: 0 2px 4px rgba(20, 40, 70, .04), 0 12px 32px rgba(20, 40, 70, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--texto); background: var(--fondo); -webkit-font-smoothing: antialiased; }
a { color: var(--azul-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--azul); }
.i { width: 1.2em; height: 1.2em; flex: none; }
.envoltura { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
.estrecho { width: min(820px, 100% - 2.5rem); }
.centro { text-align: center; } .mute { color: var(--mute); }
.sobre { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 1.55rem; color: var(--rojo); margin: 0 0 .1rem; }
.firma { font-family: "Dancing Script", cursive; color: var(--rojo); font-size: 1.15em; }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; gap: .55rem; background: var(--azul); color: #fff; text-decoration: none; font: inherit; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--azul); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 6px 18px rgba(30, 58, 95, .22); }
.boton:hover { transform: translateY(-2px); background: var(--azul-2); box-shadow: 0 10px 24px rgba(30, 58, 95, .28); }
.boton.linea { background: transparent; color: var(--azul); box-shadow: none; }
.boton.linea:hover { background: var(--azul-50); }
.boton.chico { padding: .5rem 1.05rem; font-size: .92rem; }
.boton.redondo { padding: 0; width: 54px; height: 54px; justify-content: center; }
.botones { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.cab.sombra { border-color: var(--borde); box-shadow: 0 4px 20px rgba(20, 40, 70, .06); }
.cab-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.cab-marca, .pie-marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.cab-marca img, .pie-marca img { width: 54px; height: 54px; }
.cab-marca span, .pie-marca span { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 1.75rem; color: var(--azul); line-height: 1; }
.cab-marca small, .pie-marca small { display: block; font-family: Poppins, sans-serif; font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-top: .2rem; }
.cab nav { display: flex; align-items: center; gap: 1.6rem; }
.cab nav > a:not(.boton) { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.cab nav > a:not(.boton)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--rojo); transform: scaleX(0); transition: transform .2s; }
.cab nav > a:not(.boton):hover::after { transform: scaleX(1); }
.hamb { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.hamb span { display: block; width: 24px; height: 2.5px; background: var(--azul); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Portada ---------- */
.portada { position: relative; overflow: hidden; background:
  radial-gradient(circle at 85% 30%, var(--azul-100) 0, transparent 38%),
  linear-gradient(180deg, #fff 0%, var(--fondo) 100%); padding: 4.5rem 0 5rem; }
.portada::before { content: ""; position: absolute; inset: auto 0 22px 0; border-top: 2.5px dashed var(--azul-200); }
.portada-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.portada h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.bajada { font-size: 1.12rem; color: var(--mute); max-width: 34rem; margin: 0 0 1.8rem; }
.sellos { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.sellos li { display: flex; align-items: center; gap: .45rem; font-size: .94rem; font-weight: 500; color: var(--texto); }
.sellos .i { color: var(--rojo); }
.portada-arte { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 430px; justify-self: center; width: 100%; }
.portada-arte img { width: 78%; position: relative; z-index: 1; filter: drop-shadow(0 22px 40px rgba(20, 40, 70, .18)); animation: flota 6s ease-in-out infinite; }
.aro { position: absolute; inset: 0; border-radius: 50%; border: 2.5px dashed var(--azul-200); animation: gira 60s linear infinite; }
.aro::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: #fff; box-shadow: var(--sombra); }
.cinta-medir { position: absolute; width: 62%; bottom: -9%; left: -16%; transform: rotate(-10deg); z-index: 2; }
@keyframes flota { 50% { transform: translateY(-10px); } }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.seccion { padding: 5rem 0; background: #fff; }
.seccion.alterna { background: var(--azul-50); }
.cab-sec { text-align: center; margin-bottom: 2.8rem; }
.cab-sec.izq { text-align: left; margin-bottom: 1.3rem; }
.cab-sec h2 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; }
.cab-sec p.mute { margin: .7rem auto 0; max-width: 36rem; }
.nota { margin-top: 2rem; color: var(--mute); }
.nota a { font-weight: 600; }

/* Servicios */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.cat { background: #fff; border: 1px solid var(--borde); border-radius: 22px; padding: 1.8rem; box-shadow: var(--sombra); transition: transform .2s; position: relative; overflow: hidden; }
.cat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: repeating-linear-gradient(90deg, var(--rojo) 0 12px, transparent 12px 20px); opacity: .7; }
.cat:hover { transform: translateY(-4px); }
.cat-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--azul-100); color: var(--azul); display: grid; place-items: center; margin-bottom: 1rem; }
.cat-ico .i { width: 30px; height: 30px; }
.cat h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--borde); font-size: .98rem; }
.cat li:last-child { border: 0; }
.cat li::before { content: "✓"; color: var(--rojo); font-weight: 700; margin-right: .2rem; }
.cat li span { flex: 1; } .cat li b { color: var(--azul); white-space: nowrap; font-size: .92rem; }

/* Pasos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: p; position: relative; }
.pasos::before { content: ""; position: absolute; top: 42px; left: 12%; right: 12%; border-top: 2.5px dashed var(--azul-200); }
.pasos li { position: relative; background: #fff; border-radius: 22px; padding: 1.6rem 1.4rem; text-align: center; box-shadow: var(--sombra); }
.pasos .n { position: absolute; top: -14px; right: 18px; background: var(--rojo); color: #fff; font-weight: 700; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; }
.pasos li > .i { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--azul); color: #fff; margin-bottom: .9rem; }
.pasos h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.pasos p { margin: 0; color: var(--mute); font-size: .95rem; }

/* Colegios */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.chips li { display: flex; align-items: center; gap: .5rem; background: var(--azul-50); border: 1px solid var(--azul-100); color: var(--azul); padding: .6rem 1.1rem; border-radius: 999px; font-weight: 500; }

/* Consulta de pedido */
.consulta { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; background: #fff; padding: 1.6rem; border-radius: 22px; box-shadow: var(--sombra); }
.consulta label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; font-size: .92rem; color: var(--azul); }
.consulta input { font: inherit; padding: .85rem 1rem; border: 1.5px solid var(--borde); border-radius: 14px; width: 100%; }
.consulta input:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(30, 58, 95, .12); }
.aviso { margin-top: 1rem; background: #fdecee; color: #8f1d2c; border-radius: 14px; padding: 1rem 1.2rem; }
.resultado { margin-top: 1.4rem; background: #fff; border-radius: 22px; padding: 1.8rem; box-shadow: var(--sombra); }
.res-cab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--borde); }
.res-cab small { display: block; color: var(--mute); font-size: .8rem; }
.res-cab b { font-size: 1.25rem; color: var(--azul); } .res-cab .rojo { color: var(--rojo); } .res-cab .verde { color: #1f8a5b; }
.progreso { list-style: none; padding: 0; margin: 1.8rem 0 1rem; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.progreso li { text-align: center; font-size: .85rem; color: var(--mute); position: relative; }
.progreso li::before { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px; background: var(--borde); z-index: 0; }
.progreso li:first-child::before { display: none; }
.progreso li.hecho::before, .progreso li.actual::before { background: var(--azul); }
.progreso span { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .5rem; background: #fff; border: 2.5px solid var(--borde); font-weight: 600; }
.progreso .hecho span { background: var(--azul); border-color: var(--azul); color: #fff; }
.progreso .actual span { background: var(--rojo); border-color: var(--rojo); color: #fff; box-shadow: 0 0 0 6px rgba(214, 40, 69, .15); }
.progreso .actual { color: var(--texto); font-weight: 600; }
.listo { background: #e7f6ee; color: #145c3c; border-radius: 14px; padding: .9rem 1.1rem; font-weight: 500; }
.res-items { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--mute); }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.nosotros { color: var(--mute); font-size: 1.05rem; margin: 0 0 1.6rem; }
.datos-contacto { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 1.1rem; }
.datos-contacto li { display: flex; gap: .9rem; align-items: flex-start; }
.datos-contacto li > .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--azul-100); color: var(--azul); }
.datos-contacto small { display: block; font-size: .78rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.datos-contacto a { color: var(--texto); text-decoration: none; }
.mapa { border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); min-height: 380px; background: var(--azul-50); }
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.mapa-vacio { height: 100%; display: grid; place-items: center; align-content: center; text-align: center; color: var(--mute); padding: 2rem; }
.mapa-vacio img { width: 160px; }

/* Pie */
.pie { background: var(--azul); color: #c9d6e8; padding: 2.6rem 0; font-size: .92rem; }
.pie-in { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
.pie-marca span { color: #fff; } .pie-marca small { color: #9fb3cf; }
.pie p { margin: 0; } .pie a { color: #fff; }
.credito { opacity: .75; font-size: .82rem; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); transition: transform .2s; }
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante .i { width: 32px; height: 32px; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hamb { display: block; }
  .cab nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.25rem 1.2rem; border-bottom: 1px solid var(--borde); box-shadow: 0 20px 30px rgba(20, 40, 70, .08); transform: translateY(-120%); transition: transform .25s; }
  body.abierto .cab nav { transform: none; }
  .cab nav > a:not(.boton) { padding: .9rem 0; border-bottom: 1px solid var(--borde); }
  .cab nav .boton { margin-top: 1rem; justify-content: center; }
  body.abierto .hamb span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.abierto .hamb span:nth-child(2) { opacity: 0; }
  body.abierto .hamb span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .portada { padding: 2.5rem 0 3.5rem; } .portada-arte { margin-bottom: 1.5rem; }
  .portada-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .portada-arte { order: -1; max-width: 260px; }
  .portada-txt { text-align: center; } .bajada { margin-inline: auto; }
  .botones, .sellos { justify-content: center; }
  .seccion { padding: 3.5rem 0; }
  .pasos { grid-template-columns: 1fr 1fr; } .pasos::before { display: none; }
  .consulta { grid-template-columns: 1fr; }
  .contacto { grid-template-columns: 1fr; gap: 2rem; }
  .progreso li { font-size: .72rem; }
}
@media (max-width: 520px) {
  .pasos { grid-template-columns: 1fr; }
  .res-cab { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Tarjeta destacada para la categoría con más servicios */
@media (min-width: 901px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat.grande { grid-column: span 2; grid-row: span 2; }
  .cat.grande ul { columns: 2; column-gap: 2.2rem; }
  .cat.grande li { break-inside: avoid; }
}
