/* ===== Grupo Trueba Asesores ===== */
:root {
  --teal: #246A71;
  --teal-dark: #17393D;
  --teal-deep: #1B5258;
  --aqua: #3E8F96;
  --aqua-soft: #5E9196;
  --mist: #EAF3F3;
  --paper: #F7FAFA;
  --ink: #14333A;
  --muted: #527076;
  --line: #DCE9E9;
  --white: #FFFFFF;
  --wa: #25D366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 51, 58, 0.10);
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--teal-dark); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-light { background: var(--white); color: var(--teal-deep); }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-full { width: 100%; justify-content: center; }

/* ===== Cabecera ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(23, 57, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-serif); font-size: 1.25rem; color: var(--white); letter-spacing: .02em; }
.brand-name em { font-style: normal; color: #9FC7CB; }
.main-nav { display: flex; gap: 1.8rem; align-items: center; }
.main-nav a { color: #D7E8E9; text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--white); }
.nav-cta {
  border: 1.5px solid #9FC7CB; border-radius: 999px; padding: .45rem 1.1rem;
}
.nav-cta:hover { background: rgba(255,255,255,.1); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; color: var(--white);
  padding: 170px 0 90px; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(62,143,150,.55), transparent 60%),
    radial-gradient(700px 480px at 5% 110%, rgba(62,143,150,.35), transparent 55%),
    linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 55%, var(--teal-dark) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo { width: 150px; margin: 0 auto 1.6rem; filter: drop-shadow(0 6px 20px rgba(0,0,0,.25)); }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .28em; font-size: .8rem;
  color: #BFE0E2; margin-bottom: 1rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); color: var(--white); margin-bottom: 1.2rem; }
.hero-sub { max-width: 640px; margin: 0 auto 2.2rem; font-size: 1.1rem; color: #DCEEEE; }
.hero-sub strong { color: var(--white); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3.2rem;
}
.badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: .8rem 1.4rem; text-align: left;
  backdrop-filter: blur(6px);
}
.badge strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; }
.badge span { font-size: .85rem; color: #C4DEDF; }

/* ===== Secciones ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--mist); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.kicker {
  text-transform: uppercase; letter-spacing: .26em; font-size: .78rem;
  color: var(--aqua); font-weight: 700; margin-bottom: .7rem;
}
.section-head h2, .split-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-sub { color: var(--muted); margin-top: .9rem; }

/* ===== Tarjetas de servicios ===== */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: 0 4px 14px rgba(20,51,58,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--aqua-soft); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: var(--white); margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.card ul { list-style: none; }
.card li {
  position: relative; padding-left: 1.4rem; margin-bottom: .45rem;
  font-size: .93rem; color: var(--ink);
}
.card li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--aqua);
}

/* ===== Nosotros ===== */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.split-text p { color: var(--muted); margin: 1.1rem 0; }
.ticks { list-style: none; margin: 1.6rem 0 2rem; }
.ticks li {
  position: relative; padding-left: 2rem; margin-bottom: .9rem; color: var(--ink);
}
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
  background: var(--white); border: 1.5px solid var(--aqua-soft);
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; line-height: 1;
}
.media-frame {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  transform: rotate(1.5deg); transition: transform .3s ease;
}
.media-frame:hover { transform: rotate(0deg) scale(1.02); }

/* ===== Proceso ===== */
.steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem;
  counter-reset: step;
}
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 1.6rem 1.8rem;
  box-shadow: 0 4px 14px rgba(20,51,58,.05);
}
.step-num {
  position: absolute; top: -22px; left: 1.6rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: var(--white); display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(36,106,113,.35);
}
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ===== Contacto ===== */
.section-contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.2rem; align-items: start; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--teal-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(62,143,150,.15);
  background: var(--white);
}
.field textarea { resize: vertical; }
.form-note { margin-top: .9rem; font-size: .92rem; color: var(--teal); min-height: 1.2em; }

.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; margin-bottom: 1.4rem;
}
.info-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.info-card-accent { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #DCEEEE; border: 0; }
.info-card-accent h3 { color: var(--white); }
.info-card-accent strong { color: var(--white); }
.info-small { font-size: .88rem; margin-top: .8rem; color: #BFDEDE; }
.info-list { list-style: none; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-label { font-weight: 600; color: var(--muted); font-size: .88rem; }
.info-list a { font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--teal-dark); color: #B8D6D8; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding: 64px 0 40px;
}
.footer-logo { width: 130px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; }
.footer-col h4 { color: var(--white); font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: .9rem; }
.footer-col a { display: block; color: #B8D6D8; text-decoration: none; margin-bottom: .5rem; font-size: .93rem; }
.footer-col a:hover { color: var(--white); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 0; text-align: center; font-size: .85rem; color: #8FB5B8;
}

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ===== Animación de aparición ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 320px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .field-row { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--teal-dark); border-bottom: 1px solid rgba(255,255,255,.1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 1rem; width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,.06); }
  .nav-cta { border: 0; border-radius: 0; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 140px 0 70px; }
}
