/* =========================================================
    CAF - Contabilidad, Asesoría y Finanzas
    Hoja de estilos
    Tip: cambia los colores y las letras en la sección VARIABLES
    y se actualizan en toda la página.
   ========================================================= */

/* ===== VARIABLES (colores, letras, medidas) ===== */
:root {
  --navy: #152b48;        /* azul marino principal */
  --navy-dark: #071B3D;   /* azul marino oscuro (barra superior, pie) */
  --navy-soft: #163E7A;   /* azul marino suave */
  --blue:  #1B6CB0;        /* azul de acento */
  --orange: #F6C026;        /* naranja de acento */
  --orange-light: #F9D45C;;
  --orange-text: #C8102E; /* naranja oscuro para textos pequeños */
  --orange-soft: #FFF4CC;
  --bg-soft:  #EAF5FD;
   /* fondo gris azulado claro */
  --white:  #ffffff;;
  --text:  #14233D;
  --muted:  #4A5D78;
  --border:  #D3E6F5;
  --on-dark: #C9DDF2;A;     /* texto claro sobre fondo oscuro */

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', serif;

  --max-width: 1240px;
  --radius: 24px;
}

/* ===== BASE ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.bg-soft { background: var(--bg-soft); }

/* Iconos (SVG) */
.icon {
  width: 28px; height: 28px;
  fill: none; stroke: var(--blue);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 20px; height: 20px; stroke-width: 2.2; }

/* Etiqueta pequeña sobre los títulos */
.eyebrow {
  color: var(--orange-text);
  font-weight: 700; font-size: 14px;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.eyebrow-light { color: var(--orange-light); }

/* Títulos de sección */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px; line-height: 1.1;
  color: var(--navy);
}
.section-lead { font-size: 18px; line-height: 1.65; color: var(--muted); }

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: inherit; font-weight: 700; font-size: 17px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-navy   { background: var(--navy); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--navy-dark); }
.btn-dark   { background: var(--navy-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-sm { font-size: 16px; padding: 12px 24px; }
.btn-lg { font-size: 18px; padding: 18px 34px; }

/* ===== BARRA SUPERIOR ===== */
.topbar { background: var(--navy-dark); color: var(--on-dark); font-size: 14px; }
.topbar .container {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 8px 24px;
  padding-top: 10px; padding-bottom: 10px;
}
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* ===== ENCABEZADO / MENÚ ===== */
.header { background: var(--white); border-bottom: 1px solid var(--border); }
.header .container {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  border-radius: 14px; border-bottom: 4px solid var(--orange);
  font-family: var(--font-display); font-size: 22px; letter-spacing: .5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 17px; color: var(--navy); }
.logo-text span { font-size: 14px; font-weight: 500; color: var(--muted); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-weight: 500; }
.nav a { color: var(--navy); text-decoration: none; }
.nav a.btn-orange { color: var(--navy-dark); }

/* ===== PORTADA (HERO) ===== */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%); }
.hero .container {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 56px;
  padding-top: 72px; padding-bottom: 96px;
}
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-badge {
  align-self: flex-start;
  background: var(--orange-soft); color: var(--orange-text);
  font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 68px; line-height: 1.04; color: var(--navy);
}
.hero h2 span { color: var(--blue); }
.hero-lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 8px; font-size: 15px; font-weight: 500; }
.hero-checks span { display: flex; align-items: center; gap: 8px; }

.hero-media { flex: 1 1 480px; min-width: 0; position: relative; padding-bottom: 12px; }
.hero-media-bg {            /* bloque naranja detrás de la foto */
  position: absolute; top: 60px; right: -10px; left: 60px; bottom: 0;
  background: var(--orange); border-radius: 36px;
  display: none;
}

  .hero-media img {
  position: relative;
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 68% center;
  border-radius: 36px;
  box-shadow: 0 30px 60px rgba(15, 39, 71, 0.25);
}

.chip-welcome {
  position: absolute; top: 24px; left: -8px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 16px; padding: 14px 20px;
  box-shadow: 0 14px 30px rgba(15, 39, 71, .18);
  font-weight: 700; font-size: 15px; color: var(--navy);
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: #000000; }

.person-card {
  position: absolute; bottom: 0; left: 28px; max-width: 360px;
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: 20px; padding: 18px 24px;
  box-shadow: 0 18px 40px rgba(15, 39, 71, .22);
}
.avatar {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 20px;
}
.avatar-lg { flex-basis: 56px; width: 56px; height: 56px; font-size: 22px; }
.person-info { display: flex; flex-direction: column; line-height: 1.3; }
.person-info strong { font-size: 16px; color: var(--navy); }
.person-info span { font-size: 14px; color: var(--muted); }

/* ===== SERVICIOS ===== */
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px 48px; margin-bottom: 56px;
}
.section-head-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.section-head .section-title { font-size: 48px; }
.section-head .section-lead { flex: 1 1 360px; max-width: 480px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
}
.card h3 { font-size: 21px; color: var(--navy); }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); box-shadow: 0 6px 16px rgba(15, 39, 71, .08);
}
.card-dark { background: var(--navy); border-color: var(--navy); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--on-dark); }
.card-dark .card-icon { background: var(--orange); box-shadow: none; }
.card-dark .icon { stroke: var(--navy-dark); stroke-width: 2; }
.card-link { color: var(--orange-light); font-weight: 700; text-decoration: none; }

/* ===== NOSOTROS ===== */
.about .container { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.about-media { flex: 1 1 460px; min-width: 0; position: relative; }
.about-media img {
  display: block; width: 100%; height: 400px;
  object-fit: cover; object-position: 80% center;
  border-radius: 32px; box-shadow: 0 24px 48px rgba(15, 39, 71, .18);
  
}
.about-note {
  position: absolute; right: -12px; bottom: 32px; max-width: 260px;
  background: var(--navy); color: var(--white);
  border-radius: 20px; padding: 20px 26px;
  font-family: var(--font-display); font-size: 22px; line-height: 1.25;
  box-shadow: 0 18px 36px rgba(15, 39, 71, .3);
}
.about-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-text p { font-size: 18px; line-height: 1.7; color: var(--muted); }

.check-list { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.tick {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
}
.tick .icon { width: 16px; height: 16px; stroke: var(--white); stroke-width: 3; }

.signature {
  display: flex; align-items: center; gap: 16px;
  margin-top: 12px; padding-top: 24px; border-top: 1px solid #ffffff;
}
.signature strong { display: block; font-size: 18px; color: var(--navy); }
.signature div span { font-size: 15px; color: var(--muted); }

/* ===== COMUNIDAD (fondo oscuro) ===== */
.community { background: var(--navy); color: var(--white); }
.community .container { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.community-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.community-text .section-title { color: var(--white); }
.community-text p { font-size: 18px; line-height: 1.7; color: var(--on-dark); }
.community-text .btn { align-self: flex-start; }
.community-media { flex: 1 1 440px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.community-media .photo-tall {
  flex: 1 1 220px; min-width: 0; height: 520px;
  object-fit: cover; border-radius: 28px;
}
.community-side { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.community-side img {
  display: block; width: 100%; max-width: 400px; height: 400px;
  object-fit: cover; border-radius: 30px;
}
.welcome-box {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--navy-soft); border-radius: var(--radius); padding: 24px;
}
.welcome-box strong { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; }
.welcome-box span { font-size: 15px; color: var(--on-dark); }

/* ===== CÓMO TRABAJAMOS ===== */
.process-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; margin-bottom: 56px; }
.process-head .section-title { font-size: 48px; max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 16px; border-top: 3px solid var(--blue); }
.step-num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--orange); padding-top: 20px; }
.step h3 { font-size: 22px; color: var(--navy); }
.step p { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ===== BANDA NARANJA (LLAMADO A LA ACCIÓN) ===== */
.cta-band { background: var(--orange); }
.cta-band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px 48px; padding-top: 64px; padding-bottom: 64px;
}
.cta-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 10px; }
.cta-text h2 { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1.12; color: var(--navy-dark); }
.cta-text p { font-size: 19px; line-height: 1.5; color: #ffffff; }

/* ===== CONTACTO ===== */
.contact .container { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .card-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; }
.contact-item .icon { width: 24px; height: 24px; }
.contact-item div { display: flex; flex-direction: column; line-height: 1.4; }
.contact-item strong { font-size: 17px; color: var(--navy); }
.contact-item span { font-size: 16px; color: var(--muted); }

.form {
  flex: 1 1 440px; min-width: 0;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white); border-radius: 28px; padding: 40px;
  box-shadow: 0 24px 48px rgba(15, 39, 71, .12);
}
.form h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--navy); }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--text);
  padding: 15px 16px;
  background: #ffffff; border: 1.5px solid #f2fa05; border-radius: 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(34, 86, 146, 0.3); border-color: var(--blue);
}
.form .btn { padding: 18px 32px; }

/* ===== quines somos ===== */
.footer { background: var(--navy-dark); color: var(--on-dark); }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 40px 64px; padding-top: 64px; padding-bottom: 32px;
}



.footer-brand { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.65; }
.footer-logo { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--white); font-size: 17px; line-height: 1.25; }
.footer-logo .logo-mark { width: 48px; height: 48px; font-size: 20px; background: var(--white); color: var(--navy); border-radius: 12px; }
.footer-col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col h4 { margin: 0 0 4px; font-size: 16px; color: var(--white); }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid #2c4f80; margin: 0 auto; padding-top: 24px; padding-bottom: 32px;
  font-size: 14px; color: #030f21;
}

/* ===== CELULAR ===== */
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 18px; }
  .hero-media img { height: 380px; }
  .about-media img { height: 420px; }
  .section-title, .section-head .section-title, .process-head .section-title { font-size: 34px; }
  .cta-text h2 { font-size: 32px; }
  .form { padding: 24px; }
  .chip-welcome { left: 8px; }
  .person-card { left: 8px; right: 8px; }
  .about-note { right: 8px; }
}