/* =========================================================
   Carolina Caloia | Consultora de Personas y Organizaciones
   ========================================================= */

:root {
  /* Paleta tomada del logo */
  --cream: #fbfcfb;          /* fondo general */
  --sand: #eef5f3;           /* fondo de secciones alternas */
  --paper: #ffffff;
  --ink: #1f3340;
  --muted: #5a6b75;
  --sage: #1a8f9c;           /* turquesa */
  --sage-dark: #0d4f6e;      /* azul petróleo (texto del logo) */
  --forest: #0b4462;         /* azul profundo */
  --terracotta: #6aa62c;     /* verde lima del logo */
  --terracotta-soft: #e7f2d9;
  --violet: #b565d4;         /* violeta del logo */
  --line: rgba(13, 79, 110, .12);

  --serif: "Gilda Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 68, 98, .08);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--forest);
}

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--sage-dark);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.btn:hover { background: var(--forest); border-color: var(--forest); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--sage-dark); }
.btn--ghost:hover { background: var(--sage-dark); color: #fff; }
.btn--small { padding: 9px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* El logo tiene fondo blanco: "multiply" lo vuelve invisible sobre fondos claros */
.logo__mark {
  width: 72px; height: 48px;
  object-fit: cover;
  object-position: 45% 50%;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-family: var(--serif); font-size: 21px; color: var(--forest); font-weight: 400; }
.logo__text small { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav a:not(.btn):hover::after,
.nav a.is-current::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: hidden;
}
.hero {
  background:
    radial-gradient(ellipse at 85% 30%, rgba(26, 143, 156, .10), transparent 55%),
    radial-gradient(ellipse at 70% 90%, rgba(181, 101, 212, .08), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(106, 166, 44, .08), transparent 50%),
    var(--cream);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
}
.hero__logo {
  width: 100%;
  mix-blend-mode: multiply;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__title {
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 1.02;
  margin-bottom: 28px;
  letter-spacing: -.01em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--sage) 0%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { max-width: 560px; font-size: 19px; color: var(--muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tinted { background: var(--sand); }
.section--dark { background: var(--forest); color: #e6eff3; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .eyebrow { color: #a9d66b; }

.section__head { max-width: 760px; margin-bottom: 56px; }
.section__title { font-size: clamp(32px, 4.2vw, 50px); }
.section__intro { color: rgba(230, 239, 243, .78); font-size: 17.5px; }

.lead { font-size: 20px; line-height: 1.6; }

/* Propuesta */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; align-items: start; }
.split__body p { color: var(--muted); }
.split__body .lead { color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.pillar {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
}
.pillar__num { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--terracotta); letter-spacing: .12em; }

/* Misión / visión */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv__card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 46px 42px;
  box-shadow: var(--shadow);
}
.mv__card p:not(.eyebrow) { color: var(--muted); }

/* Texto justificado (misión, visión y "Sobre Carolina") */
.mv__card p:not(.eyebrow),
.about__body > p:not(.eyebrow):not(.about__role),
.about__quote {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.mv__card .eyebrow { font-size: 14px; }
.mv__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e0f0f1;
  color: var(--sage-dark);
  margin-bottom: 22px;
}
.mv__icon svg { width: 26px; height: 26px; }

/* Situaciones */
.situations {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.situations li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 18px 52px;
  font-size: 15.5px;
  line-height: 1.5;
  transition: border-color .25s, transform .25s;
}
.situations li::before {
  content: "";
  position: absolute; left: 20px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  box-shadow: inset 0 0 0 4px var(--terracotta-soft), inset 0 0 0 8px var(--terracotta);
}
.situations li:hover { border-color: var(--sage); transform: translateY(-2px); }
.situations__note { margin-top: 34px; color: var(--muted); font-size: 16px; }
.situations__note a { color: var(--sage-dark); font-weight: 600; }

/* Servicios */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}
.tab {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: rgba(230, 239, 243, .75);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  line-height: 1.35;
  transition: background .25s, color .25s, border-color .25s;
}
.tab span { display: block; font-size: 12px; letter-spacing: .14em; color: #a9d66b; margin-bottom: 6px; font-weight: 600; }
.tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tab.is-active { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.tab.is-active span { color: var(--terracotta); }

.panel { display: none; }
.panel.is-active { display: block; animation: fadeUp .5s ease both; }
.panel__head { max-width: 700px; margin-bottom: 30px; }
.panel__head h3 { font-size: 34px; }
.panel__head p { color: rgba(230, 239, 243, .78); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: background .3s, transform .3s, border-color .3s;
}
.card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); border-color: rgba(169, 214, 107, .5); }
.card h4 { font-size: 23px; margin-bottom: 12px; }
.card p { font-size: 15px; color: rgba(230, 239, 243, .75); margin: 0; line-height: 1.65; }

/* Sobre */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.about__photo { position: sticky; top: calc(var(--header-h) + 30px); }
.about__photo > img,
.about__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
}
.about__placeholder {
  background: linear-gradient(160deg, #ffffff 0%, #eaf4f4 60%, #e7f2d9 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.about__placeholder img {
  width: 82%;
  mix-blend-mode: multiply;
}
.about__badge {
  position: absolute;
  right: -24px; bottom: 40px;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  line-height: 1.25;
}
.about__badge strong { font-family: var(--serif); font-size: 32px; color: var(--terracotta); }
.about__badge small { font-size: 13px; color: var(--muted); }
.about__role { color: var(--sage); font-weight: 500; margin-top: -6px; margin-bottom: 26px; }
.about__body > p:not(.eyebrow):not(.about__role) { color: var(--muted); }
.about__body strong { color: var(--ink); font-weight: 600; }
.about__quote {
  margin: 34px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--terracotta);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--forest);
}
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-size: 13.5px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #e0f0f1;
  color: var(--sage-dark);
  font-weight: 500;
}

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact__intro p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 18px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  word-break: break-word;
}
.contact__item:hover { transform: translateX(6px); box-shadow: 0 14px 34px rgba(11, 68, 98, .13); }
.contact__item small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact__item > span:last-child { font-weight: 500; font-size: 17px; line-height: 1.4; }
.contact__icon {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--terracotta-soft);
  color: var(--terracotta);
}
.contact__icon svg { width: 22px; height: 22px; }

/* Footer */
.footer {
  background: var(--paper);
  color: var(--muted);
  padding: 56px 0 40px;
  font-size: 14px;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--forest), var(--sage), var(--terracotta), var(--violet)) 1;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer__logo { width: 280px; max-width: 80%; mix-blend-mode: multiply; }
.footer__tagline { font-family: var(--serif); font-size: 21px; color: var(--sage-dark); margin: 0; }
.footer__copy { margin: 0; font-size: 13px; }

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

/* Animaciones */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel.is-active { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 10px 24px 26px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .header.menu-open { background: var(--cream); }

  .split, .about, .contact, .mv { grid-template-columns: 1fr; gap: 40px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .about__photo { position: relative; top: 0; max-width: 420px; }
  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__art { order: -1; max-width: 340px; margin-left: -14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .container { padding: 0 20px; }
  .logo__text small { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 50px); }
  .hero__lead { font-size: 17px; }
  .pillars { grid-template-columns: 1fr; }
  .mv__card { padding: 34px 26px; }
  .situations { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .about__badge { right: 12px; bottom: 20px; }
  .about__quote { font-size: 20px; }
  .contact__item > span:last-child { font-size: 15.5px; }
  .footer { padding-bottom: 96px; } /* que el botón de WhatsApp no tape el copyright */
}
