/* C51 Contable — estilos */
:root {
	--ink: #0B2A45;
	--ink-2: #3B5368;
	--muted: #4A6075;
	--line: #DCE4EB;
	--line-2: #C9D4DE;
	--soft: #F2F5F8;
	--white: #FFFFFF;
	--accent: #17795A;
	--accent-dark: #12634A;
	--accent-soft: #E3F1EB;
	--accent-on-dark: #5FC49E;
	--danger: #A3261A;
	--danger-soft: #FBE1DE;
	--dark: #0B2A45;
	--dark-2: #163C5C;
	--dark-ink: #C9D6E2;
	--radius: 14px;
	--wrap: 1200px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: Sora, Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #5FA8E8; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.c51t-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.c51t-skip:focus { left: 8px; }
.c51t-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.c51t-narrow { max-width: 860px; }
.c51t-center { text-align: center; }
.c51t-icon { flex: 0 0 auto; }
.c51t-muted { color: var(--muted); }
.c51t-small { font-size: 13px; color: var(--muted); }
.c51t-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.c51t-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.c51t-h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.01em; }
.c51t-h3 { font-size: 22px; font-weight: 600; margin-bottom: 16px; }

/* Botones */
.c51t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.c51t-btn-lg { min-height: 52px; padding: 15px 24px; font-size: 16px; }
.c51t-btn-block { width: 100%; }
.c51t-btn-primary { background: var(--accent); color: #fff; }
.c51t-btn-primary:hover { background: var(--accent-dark); color: #fff; }
.c51t-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.c51t-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.c51t-btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.c51t-btn-light:hover { border-color: #fff; color: #fff; }
.c51t-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.c51t-actions-center { justify-content: center; }
.c51t-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }

/* Barra superior y cabecera */
.c51t-topbar { background: var(--dark); color: #E6EDF3; font-size: 13px; }
.c51t-topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.c51t-topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.c51t-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.c51t-header-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 76px; }
.c51t-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.c51t-header .c51t-wrap { max-width: 1320px; }
.c51t-brand-logo { height: 48px; width: auto; display: block; }
.c51t-brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 16px var(--display); }
.c51t-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.c51t-brand-text strong { font: 700 17px var(--display); }
.c51t-brand-text small { font-size: 12px; color: var(--muted); }
.c51t-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.c51t-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.c51t-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; display: inline-block; white-space: nowrap; }
.c51t-nav-actions .c51t-btn { white-space: nowrap; }
.c51t-brand-text strong { white-space: nowrap; }
.c51t-nav ul a:hover { color: var(--accent); }
.c51t-nav-actions { display: flex; gap: 10px; }
.c51t-nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.c51t-maint-bar { background: #FCEBD7; color: #6B3A0E; font-size: 13px; font-weight: 500; text-align: center; padding: 8px 16px; }

/* Secciones */
.c51t-section { padding: 88px 0; }
.c51t-section-soft { background: var(--soft); }
.c51t-section-dark { background: var(--dark); color: #fff; }
.c51t-section-dark .c51t-lead { color: var(--dark-ink); }
.c51t-section-head { max-width: 680px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.c51t-section-head .c51t-eyebrow { margin: 0; }
.c51t-grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.c51t-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.c51t-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.c51t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.c51t-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.c51t-split-top { align-items: flex-start; }
.c51t-split > * { flex: 1 1 420px; min-width: 0; }
.c51t-split-text { display: flex; flex-direction: column; gap: 16px; }

/* Hero */
.c51t-hero { background: var(--soft); padding: 80px 0; }
.c51t-hero-in { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.c51t-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.c51t-hero-text .c51t-eyebrow { margin: 0; }
.c51t-hero-title { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.c51t-hero-lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.c51t-facts { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding-top: 18px; border-top: 1px solid #D5DEE7; }
.c51t-facts div { display: flex; flex-direction: column; }
.c51t-facts dt { font: 700 26px var(--display); }
.c51t-facts dd { margin: 0; font-size: 14px; color: var(--muted); }

/* Calendario */
.c51t-cal { flex: 1 1 380px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 32px rgba(11,42,69,.08); }
.c51t-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--accent); }
.c51t-cal-head h2 { font-size: 20px; font-weight: 600; color: var(--ink); }
.c51t-digits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.c51t-digit { height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 18px var(--display); cursor: pointer; }
.c51t-digit:hover { border-color: var(--accent); }
.c51t-digit[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.c51t-cal-result { background: var(--soft); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.c51t-cal-label { font-size: 13px; color: var(--muted); }
.c51t-cal-date { font: 700 24px var(--display); }

/* Servicios */
.c51t-service { position: relative; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, box-shadow .15s; }
.c51t-service:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(11,42,69,.07); }
.c51t-service h3 { font-size: 20px; font-weight: 600; }
.c51t-service h3 a { color: var(--ink); text-decoration: none; }
.c51t-service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.c51t-service p { color: var(--ink-2); }
.c51t-service .c51t-link { margin-top: auto; padding-top: 4px; }

/* Planes */
.c51t-plan { display: flex; flex-direction: column; gap: 14px; }
.c51t-plan h3 { font-size: 22px; }
.c51t-plan-for { color: var(--muted); font-size: 14px; margin-top: -6px; }
.c51t-plan-price { font: 700 24px var(--display); }
.c51t-plan .c51t-btn { margin-top: auto; }
.c51t-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.c51t-checks li { display: flex; gap: 10px; align-items: flex-start; }
.c51t-checks .c51t-icon { color: var(--accent); margin-top: 3px; }

/* Pasos */
.c51t-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.c51t-steps li { border-top: 2px solid var(--accent-on-dark); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.c51t-step-n { font: 600 14px var(--display); color: #9FD9C2; }
.c51t-steps h3 { font-size: 21px; }
.c51t-steps p { color: var(--dark-ink); }

/* Formulario */
.c51t-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--soft); padding: 28px; border-radius: 16px; }
.c51t-span-2 { grid-column: 1 / -1; }
.c51t-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.c51t-field input, .c51t-field select, .c51t-field textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px; min-height: 46px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; width: 100%; }
.c51t-field textarea { resize: vertical; }
.c51t-field input:focus, .c51t-field select:focus, .c51t-field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(23,121,90,.2); outline-offset: 0; }
.c51t-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.c51t-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.c51t-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c51t-alert { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.c51t-alert a { font-weight: 600; margin-left: 4px; }
.c51t-alert-ok { background: var(--accent-soft); color: #0F5640; }
.c51t-alert-error { background: var(--danger-soft); color: var(--danger); margin-bottom: 16px; }

/* Equipo */
.c51t-person-featured { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-bottom: 20px; }
.c51t-person-featured > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.c51t-person-featured h3 { font-size: 24px; }
.c51t-person-photo { width: 176px; height: 176px; flex: 0 0 176px; object-fit: cover; border-radius: 50%; background: var(--soft); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 12px 28px rgba(11,42,69,.12); }
.c51t-person { display: flex; gap: 16px; align-items: center; padding: 20px; }
.c51t-person h3 { font-size: 17px; }
.c51t-person-role { color: var(--muted); font-size: 14px; }
.c51t-avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 18px var(--display); }
.c51t-avatar-img { object-fit: cover; }
.c51t-avatar-lg { width: 176px; height: 176px; flex-basis: 176px; border-radius: 50%; font-size: 48px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }

/* Preguntas frecuentes */
.c51t-faq details { border-bottom: 1px solid var(--line); }
.c51t-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 18px var(--display); }
.c51t-faq summary::-webkit-details-marker { display: none; }
.c51t-faq-icon { color: var(--accent); transition: transform .2s; display: flex; }
.c51t-faq details[open] .c51t-faq-icon { transform: rotate(45deg); }
.c51t-faq .c51t-prose { padding: 0 0 22px; }

/* Texto largo */
.c51t-prose { color: var(--ink-2); }
.c51t-prose > * + * { margin-top: 14px; }
.c51t-prose h2 { font-size: 22px; color: var(--ink); margin-top: 36px; }
.c51t-prose h4 { font-size: 16px; color: var(--ink); }
.c51t-prose ul { padding-left: 20px; }
.c51t-prose ul.c51t-checks { padding-left: 0; }
.c51t-prose li + li { margin-top: 6px; }
.c51t-prose strong { color: var(--ink); }

/* Contacto */
.c51t-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.c51t-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.c51t-contact-list .c51t-icon { color: var(--accent-on-dark); margin-top: 3px; }
.c51t-contact-list div { display: flex; flex-direction: column; gap: 2px; }
.c51t-contact-list span { color: var(--dark-ink); font-size: 15px; }
.c51t-section-dark a { color: #fff; }
.c51t-section-dark .c51t-contact-list a:not(:has(strong)) { color: var(--accent-on-dark); font-weight: 600; font-size: 14px; }

/* Páginas internas */
.c51t-page-hero { background: var(--soft); padding: 56px 0 44px; }
.c51t-page-title { font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; margin-bottom: 12px; }
.c51t-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.c51t-crumbs a { color: var(--muted); }
.c51t-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; flex: 0 1 360px; }
.c51t-aside h2 { font-size: 20px; }
.c51t-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.c51t-pills a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 500; }
.c51t-pills a:hover { border-color: var(--accent); color: var(--accent); }

/* Pie */
.c51t-footer { background: #071D30; color: #A9BCCD; font-size: 14px; }
.c51t-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; }
.c51t-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.c51t-footer a { color: #A9BCCD; text-decoration: none; padding: 6px 0; display: inline-flex; gap: 8px; align-items: center; }
.c51t-footer a:hover { color: #fff; }
.c51t-footer .c51t-libro { color: #fff; font-weight: 600; }
.c51t-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #1E9E58; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.c51t-wa-float:hover { color: #fff; background: #17854A; }

/* Redes sociales */
.c51t-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.c51t-social a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; font-size: 17px; text-decoration: none; transition: background .15s; }
.c51t-social a:hover { background: var(--accent); color: #fff; }
.c51t-social-lg a { width: 46px; height: 46px; font-size: 19px; }
.c51t-section-dark .c51t-social { margin-top: 8px; }

/* Página en construcción */
.c51t-maint { background: var(--dark); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.c51t-maint-card { background: #fff; border-radius: 20px; max-width: 620px; width: 100%; padding: 44px 32px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.c51t-maint-logo { max-height: 70px; width: auto; }
.c51t-maint-name { font: 700 20px var(--display); }
.c51t-maint-card h1 { font-size: clamp(26px, 4vw, 34px); }
.c51t-maint-info { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; }
.c51t-maint-info li { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.c51t-maint-foot { font-size: 13px; color: var(--muted); margin-top: 8px; }
.c51t-maint-foot a { color: var(--muted); }

/* Contenido de WordPress (Libro de Reclamaciones, etc.) */
.c51t-content input, .c51t-content select, .c51t-content textarea { max-width: 100%; }

/* Celular */
@media (max-width: 1240px) {
	.c51t-nav-toggle { display: inline-flex; }
	.c51t-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 24px; flex-direction: column; align-items: stretch; gap: 16px; box-shadow: 0 16px 32px rgba(11,42,69,.08); }
	.c51t-nav.is-open { display: flex; }
	.c51t-nav ul { flex-direction: column; gap: 0; }
	.c51t-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.c51t-nav-actions { flex-direction: column; }
	.c51t-header-in { position: relative; }
}
@media (max-width: 720px) {
	.c51t-brand-text small { display: none; }
	.c51t-brand-text strong { font-size: 15px; }
	.c51t-wrap { padding: 0 16px; }
	.c51t-section { padding: 64px 0; }
	.c51t-hero { padding: 48px 0; }
	.c51t-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.c51t-card { padding: 22px; }
	.c51t-brand-logo { height: 40px; }
	.c51t-topbar-in { justify-content: center; text-align: center; }
	.c51t-topbar-in span:first-child { display: none; }
	.c51t-aside { position: static; }
	.c51t-wa-float { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
