/* Dental Alba · Crystal Solutions */
:root {
  --azul: #13315c;
  --azul-2: #1e56a0;
  --cielo: #eaf2fb;
  --gris: #f5f7fa;
  --texto: #1c2733;
  --suave: #5b6878;
  --borde: #dfe6ee;
  --verde: #1f9d6b;
  --r: 16px;
  font-family: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--texto); background: #fff; font-size: 17px; line-height: 1.6; }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--azul); letter-spacing: -.01em; }
a { color: var(--azul-2); }

.aviso { background: var(--azul); color: #dce8f7; font-size: .88rem; text-align: center; padding: .5rem 1rem; }
.aviso a { color: #fff; font-weight: 600; }

.barra { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--borde); }
.barra-in { max-width: 1160px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--azul); text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.6rem; }
nav a { text-decoration: none; color: var(--texto); font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--azul-2); }
.hamb { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.hamb span { display: block; height: 2px; background: var(--azul); margin: 6px 0; border-radius: 2px; }

.boton { display: inline-block; background: var(--azul-2); color: #fff !important; text-decoration: none; font-weight: 600; padding: .6rem 1.1rem; border-radius: 10px; border: 0; cursor: pointer; font-family: inherit; font-size: .95rem; }
.boton:hover { background: var(--azul); }
.boton.grande { padding: .9rem 1.5rem; font-size: 1rem; }
.boton.claro { background: #fff; color: var(--azul-2) !important; box-shadow: inset 0 0 0 1.5px var(--azul-2); }
.boton.claro:hover { background: var(--cielo); }
:focus-visible { outline: 3px solid #8fb8ea; outline-offset: 2px; }

.portada { max-width: 1160px; margin: 0 auto; padding: 4rem 1.25rem 4.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: center; }
.sello { display: inline-flex; align-items: center; gap: .5rem; background: var(--gris); border: 1px solid var(--borde); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; margin: 0 0 1.2rem; color: var(--suave); }
.punto { width: 9px; height: 9px; border-radius: 50%; background: #c0c8d2; }
.punto.si { background: var(--verde); box-shadow: 0 0 0 4px rgba(31,157,107,.15); }
.portada h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; }
.bajada { font-size: 1.15rem; color: var(--suave); max-width: 40ch; margin: 1rem 0 1.4rem; }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .5rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.acciones { display: flex; gap: .8rem; flex-wrap: wrap; }

.agenda { background: #fff; border: 1px solid var(--borde); border-radius: var(--r); padding: 1.6rem; box-shadow: 0 20px 50px rgba(19,49,92,.10); }
.agenda h2 { font-size: 1.2rem; }
.agenda-nota { color: var(--suave); font-size: .9rem; margin: .3rem 0 1.2rem; }
.dia { padding: .9rem 0; border-top: 1px solid var(--borde); }
.dia h3 { font-size: .95rem; color: var(--texto); font-weight: 700; margin-bottom: .6rem; }
.horas { display: flex; flex-wrap: wrap; gap: .5rem; }
.horas button { font: 600 .9rem "Figtree", sans-serif; color: var(--azul-2); background: var(--cielo); border: 1px solid transparent; border-radius: 8px; padding: .45rem .8rem; cursor: pointer; }
.horas button:hover { border-color: var(--azul-2); }

.bloque { padding: 5rem 1.25rem; }
.bloque > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.bloque.gris { background: var(--gris); }
.titulo { margin-bottom: 2.5rem; }
.titulo h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.titulo p { color: var(--suave); margin: .6rem 0 0; max-width: 60ch; }

.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tarjeta { border: 1px solid var(--borde); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .15s, transform .15s; }
.tarjeta:hover { border-color: #b7cbe3; transform: translateY(-2px); }
.tarjeta svg { width: 40px; height: 40px; fill: none; stroke: var(--azul-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--cielo); border-radius: 12px; padding: 6px; }
.tarjeta h3 { font-size: 1.15rem; margin-top: .4rem; }
.tarjeta p { color: var(--suave); margin: 0; flex: 1; font-size: .96rem; }
.precio { font-weight: 700; color: var(--azul); margin-top: .6rem; }

.pasos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: paso; }
.pasos li { background: #fff; border-radius: var(--r); padding: 1.6rem; border: 1px solid var(--borde); counter-increment: paso; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.pasos strong { font-size: 1.15rem; color: var(--azul); }
.pasos p { color: var(--suave); margin: .4rem 0 0; }

.faq { display: grid; gap: .7rem; }
.faq details { max-width: 820px; width: 100%; }
details { border: 1px solid var(--borde); border-radius: 12px; padding: 0 1.2rem; }
details[open] { background: var(--gris); }
summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--azul-2); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 1.1rem; color: var(--suave); }

.llegar { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.llegar > * { margin: 0; max-width: none; }
.llegar { padding-left: max(1.25rem, calc((100% - 1160px) / 2)); padding-right: max(1.25rem, calc((100% - 1160px) / 2)); }
.llegar h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 1.2rem; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.2rem; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--borde); font-size: .95rem; }
th { font-weight: 600; }
.llegar p { color: var(--suave); }
.llegar iframe { width: 100%; height: 360px; border: 0; border-radius: var(--r); }

.cita-card { max-width: 720px !important; background: var(--cielo); border-radius: 24px; padding: 2.6rem; }
.cita-card h2 { font-size: 2rem; font-weight: 800; }
.cita-card > p { color: var(--suave); }
form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
input, select { font: 1rem "Figtree", sans-serif; padding: .75rem .9rem; border: 1px solid var(--borde); border-radius: 10px; background: #fff; color: var(--texto); }
input:focus, select:focus { outline: 2px solid var(--azul-2); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; width: 100%; }
.radio { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.radio input { width: 1.1rem; height: 1.1rem; accent-color: var(--azul-2); }
.error { color: #b3261e; margin: 0; min-height: 1.2em; font-size: .92rem; }
form .boton { justify-self: start; }

.pie { background: var(--azul); color: #c9d7ea; }
.pie-in { max-width: 1160px; margin: 0 auto; padding: 2.4rem 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem 2rem; align-items: baseline; }
.pie strong { color: #fff; font-size: 1.1rem; }
.pie a { color: #fff; }
.pie small { flex-basis: 100%; opacity: .8; }

@media (max-width: 900px) {
  .hamb { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--borde); padding: .5rem 1.25rem 1rem; }
  nav.abierto { display: flex; }
  nav a { padding: .8rem 0; border-bottom: 1px solid var(--borde); }
  nav a.boton { text-align: center; margin-top: .8rem; border: 0; padding: .8rem; }
  .barra-in { position: relative; }
  .portada, .llegar { grid-template-columns: 1fr; }
  .tarjetas { grid-template-columns: 1fr 1fr; }
  .pasos { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tarjetas, .dos { grid-template-columns: 1fr; }
  .cita-card { padding: 1.6rem; border-radius: 18px; }
  .bloque { padding: 3.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tarjeta { transition: none; } }
