/* =====================================================================
   RCCI — Sistema visual
   Paleta derivada del logo: acero/grafito con acento metálico azul,
   sobre fondo claro tipo "papel de trabajo". Tipografía técnica y de
   autoridad para transmitir precisión contable con un tono actual.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --ink:        #10151c;
  --navy-deep:  #131c28;
  --navy-mid:   #21313f;
  --steel:      #4c5f74;
  --accent:     #5178a3;
  --accent-2:   #8aa6c2;
  --silver:     #b9c3ce;
  --paper:      #f4f6f8;
  --paper-dim:  #e8ebee;
  --white:      #ffffff;
  --ok:         #3f7a5c;
  --warn:       #a85a2e;

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --radius: 6px;
  --max-w: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-deep);
  font-weight: 600;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; max-width: 68ch; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; display:block; }
ul{ padding-left: 1.2em; }
:focus-visible{ outline: 3px solid var(--accent-2); outline-offset: 2px; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--dark{ background: var(--navy-deep); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4{ color: var(--white); }
.section--paper{ background: var(--paper); }

.eyebrow-plain{
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .4em;
}

/* ---------- Botones ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn-primary{ background: var(--accent); color: var(--white); }
.btn-primary:hover{ background: #446690; }
.btn-outline{ background: transparent; border-color: var(--silver); color: var(--navy-deep); }
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); }
.section--dark .btn-outline{ border-color: var(--steel); color: var(--white); }
.hero .btn-outline{ border-color: var(--steel); color: var(--white); }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; transform:none; }

/* ---------- Navbar ---------- */
.navbar{
  position: sticky; top:0; z-index: 500;
  background: rgba(16,21,28,.92);
  backdrop-filter: blur(6px);
}
.navbar .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 74px;
}
.navbar__brand{ display:flex; align-items:center; gap:12px; background:var(--white); padding:8px 14px; border-radius:8px; }
.navbar__brand img{ height: 30px; width:auto; display:block; }
.navbar__links{ display:flex; align-items:center; gap: 28px; list-style:none; margin:0; padding:0; }
.navbar__links a{ color: var(--paper); font-weight:500; font-size:.96rem; }
.navbar__links a:hover{ color: var(--accent-2); text-decoration:none; }
.navbar__cta{ background:var(--accent); color:var(--white); padding:10px 18px; border-radius:var(--radius); font-weight:600; }
.navbar__cta:hover{ background:#446690; color:var(--white); }
.navbar__toggle{ display:none; background:none; border:none; color:var(--white); font-size:1.6rem; cursor:pointer; }

@media (max-width: 880px){
  .navbar__links{
    position:absolute; top:74px; left:0; right:0;
    background: var(--navy-deep); flex-direction:column; align-items:flex-start;
    padding: 20px 24px 28px; gap:18px;
    display:none;
  }
  .navbar__links.is-open{ display:flex; }
  .navbar__toggle{ display:block; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy-mid) 62%, var(--steel) 130%);
  color: var(--white);
  overflow:hidden;
  padding: 96px 0 130px;
}
.hero::after{
  content:"";
  position:absolute; right:-12%; top:-30%;
  width:70%; height:160%;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 50%;
  transform: rotate(-22deg);
}
.hero__grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns: 1.1fr .9fr; gap:48px; align-items:center;
}
.hero__kicker{ color: var(--accent-2); font-weight:600; margin-bottom:14px; }
.hero p.lede{ font-size:1.15rem; color: var(--silver); max-width:52ch; }
.hero__actions{ display:flex; gap:16px; margin-top:32px; flex-wrap:wrap; }
.hero__stats{ display:flex; gap:36px; margin-top:56px; flex-wrap:wrap; }
.hero__stats div strong{ display:block; font-family:var(--font-head); font-size:1.8rem; color:var(--white); }
.hero__stats div span{ color:var(--silver); font-size:.9rem; }
.hero__panel{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 30px;
}
.hero h1, .hero h2, .hero h3, .hero h4{ color: var(--white); }
.hero__panel h3{ color:var(--white); }
.hero__panel ul{ list-style:none; padding:0; margin:0; }
.hero__panel li{
  display:flex; gap:12px; padding:12px 0; border-top:1px solid rgba(255,255,255,.1);
  color: var(--silver); font-size:.95rem;
}
.hero__panel li:first-child{ border-top:none; }

@media (max-width: 880px){
  .hero__grid{ grid-template-columns:1fr; }
}

/* ---------- Tarjetas de problemas / servicios ---------- */
.grid{ display:grid; gap:24px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px){
  .grid--3, .grid--2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--white);
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  padding: 28px;
}
.card--dark{ background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.card h3{ margin-bottom:.35em; }
.card p{ color:#3c4855; margin-bottom:0; }
.section--dark .card p{ color: var(--silver); }

.icon-mark{
  width:42px; height:42px;
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--accent-2);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-head); font-weight:700;
  margin-bottom: 16px;
}
.section--dark .icon-mark{ background: rgba(255,255,255,.1); color:var(--white); }

/* ---------- Proceso (Cómo trabajamos) — es secuencial, sí lleva numeración ---------- */
.process{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; counter-reset: step; }
@media (max-width: 880px){ .process{ grid-template-columns: 1fr; } }
.process__step{ position:relative; padding-top: 46px; }
.process__step::before{
  counter-increment: step;
  content: counter(step);
  position:absolute; top:0; left:0;
  width:34px; height:34px; border-radius:50%;
  background: var(--accent); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-head); font-weight:700; font-size:.95rem;
}

/* ---------- Two-column split ---------- */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
@media (max-width:880px){ .split{ grid-template-columns:1fr; } }

/* ---------- Testimonios / trayectoria ---------- */
.quote-block{
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  font-size: 1.15rem;
  font-family: var(--font-head);
  font-weight:500;
  color: var(--navy-deep);
}

/* ---------- Blog preview cards ---------- */
.post-card{
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.post-card__img{ height:170px; background:linear-gradient(135deg,var(--navy-mid),var(--steel)); }
.post-card__body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.post-card__meta{ font-size:.82rem; color:var(--steel); }
.post-card__body h3{ margin-bottom:0; font-size:1.1rem; }
.post-card__body p{ color:#4a5561; font-size:.95rem; }
.post-card__body .btn{ margin-top:auto; align-self:flex-start; }

/* ---------- CTA final ---------- */
.cta-final{
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 14px;
  padding: 56px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-final h2{ color:var(--white); }
.cta-final p{ color:var(--silver); margin:0 auto 28px; }

/* ---------- Footer ---------- */
.footer{ background: var(--ink); color: var(--silver); padding: 56px 0 26px; font-size:.92rem; }
.footer__grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width:880px){ .footer__grid{ grid-template-columns: 1fr 1fr; } }
.footer h4{ color:var(--white); font-size:.95rem; margin-bottom:14px; }
.footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.footer a{ color: var(--silver); }
.footer a:hover{ color: var(--white); }
.footer__bottom{ margin-top:40px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.85rem; }

/* ---------- Botón de contacto fijo + modal ---------- */
.contact-fab{
  position: fixed; right: 26px; bottom: 26px; z-index: 600;
  background: var(--accent); color:var(--white);
  border:none; border-radius: 50px;
  padding: 15px 22px;
  font-family: var(--font-head); font-weight:600;
  display:flex; align-items:center; gap:10px;
  box-shadow: 0 10px 24px rgba(16,21,28,.25);
  cursor:pointer;
}
.contact-fab:hover{ background:#446690; }

.modal-overlay{
  position: fixed; inset:0; background: rgba(16,21,28,.65);
  display:none; align-items:center; justify-content:center; z-index: 700; padding:20px;
}
.modal-overlay.is-open{ display:flex; }
.modal{
  background: var(--white); border-radius: 10px;
  width: 100%; max-width: 480px;
  padding: 32px; position:relative;
  max-height: 90vh; overflow-y:auto;
}
.modal__close{
  position:absolute; top:14px; right:16px;
  background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--steel);
}

/* ---------- Formularios ---------- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-weight:600; font-size:.9rem; margin-bottom:6px; color: var(--navy-deep); }
.section--dark .field label{ color: var(--white); }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border-radius:6px;
  border:1.5px solid var(--paper-dim); font-family:var(--font-body); font-size:.98rem;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--accent); outline:none; }
.field small{ color:#5b6774; font-size:.82rem; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .field-row{ grid-template-columns:1fr; } }

.alert{ padding:14px 18px; border-radius:6px; margin-bottom:20px; font-size:.95rem; }
.alert--ok{ background:#e7f3ec; color: var(--ok); border:1px solid #bfe0cc; }
.alert--error{ background:#fbeae1; color: var(--warn); border:1px solid #f0c9ae; }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--paper-dim); padding: 18px 0; }
.faq-item summary{ cursor:pointer; font-family:var(--font-head); font-weight:600; font-size:1.05rem; list-style:none; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; float:right; color:var(--accent); font-size:1.3rem; }
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ margin-top:12px; color:#3c4855; }

/* ---------- Booking calendar ---------- */
.booking-grid{ display:grid; grid-template-columns: 300px 1fr; gap: 36px; }
@media (max-width:880px){ .booking-grid{ grid-template-columns:1fr; } }
.day-list{ display:flex; flex-direction:column; gap:8px; }
.day-list button{
  text-align:left; padding:12px 16px; border-radius:6px; border:1.5px solid var(--paper-dim);
  background:var(--white); cursor:pointer; font-family:var(--font-body); font-size:.95rem;
}
.day-list button.is-active{ border-color:var(--accent); background:#eef2f7; font-weight:600; }
.slots-grid{ display:grid; grid-template-columns: repeat(auto-fill,minmax(96px,1fr)); gap:10px; margin-bottom:24px; }
.slot-btn{
  padding:10px; border-radius:6px; border:1.5px solid var(--paper-dim); background:var(--white);
  cursor:pointer; font-size:.9rem; text-align:center;
}
.slot-btn.is-selected{ border-color:var(--accent); background:var(--accent); color:var(--white); }
.slot-btn[disabled]{ opacity:.35; cursor:not-allowed; text-decoration:line-through; }

/* ---------- Panel / dashboard ---------- */
.dash-shell{ display:grid; grid-template-columns: 240px 1fr; min-height: 70vh; }
@media (max-width: 880px){ .dash-shell{ grid-template-columns: 1fr; } }
.dash-nav{ background: var(--navy-deep); color:var(--white); padding: 28px 20px; }
.dash-nav a{ display:block; color: var(--silver); padding:10px 0; font-size:.95rem; }
.dash-nav a.is-active, .dash-nav a:hover{ color:var(--white); text-decoration:none; }
.dash-content{ padding: 40px; background: var(--paper); }
.table{ width:100%; border-collapse:collapse; background:var(--white); border-radius:6px; overflow:hidden; }
.table th, .table td{ padding:12px 14px; border-bottom:1px solid var(--paper-dim); text-align:left; font-size:.92rem; }
.table th{ background: var(--paper-dim); font-family:var(--font-head); }
.badge{ padding:3px 10px; border-radius: 20px; font-size:.78rem; font-weight:600; }
.badge--draft{ background:#eee; color:#555; }
.badge--pending{ background:#fdf1de; color:#a85a2e; }
.badge--published{ background:#e7f3ec; color:#3f7a5c; }
.badge--rejected{ background:#fbe1e1; color:#a13a3a; }

.skip-link{ position:absolute; left:-999px; top:0; background:var(--white); padding:10px 16px; z-index:1000; }
.skip-link:focus{ left:10px; top:10px; }

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}
