:root {
  --azul: #042c53;
  --azul-medio: #185fa5;
  --azul-claro: #378add;
  --dorado: #ba7517;
  --dorado-claro: #ef9f27;
  --gris-texto: #3a3a3a;
  --gris-suave: #f7f6f3;
  --gris-borde: #e2e0da;
  --blanco: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--gris-texto);
  background: var(--blanco);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-borde);
  padding: 0 2.5rem;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.nav-logo svg {
  height: 136px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--dorado);
}

.nav-cta {
  background: var(--azul);
  color: white !important;
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--azul-medio) !important;
  color: white !important;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero-left {
  padding: 6rem 4rem 6rem 6rem;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--azul);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--dorado);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  max-width: 460px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--azul);
  color: white;
  padding: 0.85rem 2rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
  transition:
    background 0.2s,
    transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--azul-medio);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--azul);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid var(--dorado-claro);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.btn-secondary:hover {
  color: var(--dorado);
}

.hero-right {
  height: 100vh;
  background: var(--azul);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.1s ease both;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    45deg,
    #fff 0,
    #fff 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 28px 28px;
}

.hero-right-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.hero-slogan {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 600;
  font-style: italic;
  color: white;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.hero-slogan span {
  color: var(--dorado-claro);
}

.hero-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-pillar {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-pillar::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--dorado-claro);
  flex-shrink: 0;
}

/* ── SECCIONES GENÉRICAS ── */
section {
  padding: 5.5rem 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--azul);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1rem;
  color: #666;
  font-weight: 300;
  line-height: 1.7;
  max-width: 580px;
}

.section-header {
  margin-bottom: 3.5rem;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--azul-medio), var(--dorado-claro));
  margin: 1.2rem 0 1.5rem;
}

/* ── PROPUESTA DE VALOR ── */
.valor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--gris-borde);
  border: 1.5px solid var(--gris-borde);
}

.valor-card {
  background: white;
  padding: 2.8rem 2.4rem;
  position: relative;
  transition: background 0.25s;
}

.valor-card:hover {
  background: #fafaf8;
}

.valor-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gris-borde);
  line-height: 1;
  margin-bottom: 1.2rem;
  transition: color 0.25s;
}

.valor-card:hover .valor-num {
  color: var(--dorado-claro);
}

.valor-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.valor-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  font-weight: 300;
}

/* ── SERVICIOS ── */
#servicios {
  background: var(--gris-suave);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--gris-borde);
}

.servicio-card {
  background: white;
  padding: 3rem 3rem 3.2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.servicio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(
    to bottom,
    var(--azul-medio),
    var(--dorado-claro)
  );
  transition: height 0.35s ease;
}

.servicio-card:hover::before {
  height: 100%;
}

.servicio-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dorado);
  background: #fdf5e6;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.servicio-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.servicio-card .objetivo {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--gris-borde);
  padding-left: 1rem;
}

.servicio-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.servicio-lista li {
  font-size: 0.85rem;
  color: #444;
  font-weight: 400;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.servicio-lista li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--dorado);
  font-weight: 400;
}

.servicio-full {
  grid-column: 1 / -1;
}

/* ── CONSULTORIA GRID ── */
.consultoria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--gris-borde);
  margin-top: 1.5px;
}

.consultoria-item {
  background: white;
  padding: 2.2rem 2rem;
  transition: background 0.2s;
}

.consultoria-item:hover {
  background: #fafaf8;
}

.consultoria-item h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.6rem;
}

.consultoria-item p {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.6;
  font-weight: 300;
}

.consultoria-icon {
  width: 32px;
  height: 2px;
  background: linear-gradient(to right, var(--azul-claro), var(--dorado-claro));
  margin-bottom: 1rem;
}

/* ── RESULTADOS ── */
.resultados-strip {
  background: var(--azul);
  padding: 3.5rem 0;
}

.resultados-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.resultado-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.resultado-item:last-child {
  border-right: none;
}

.resultado-item p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.4;
}

.resultado-item strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dorado-claro);
  margin-bottom: 0.3rem;
}

/* ── EQUIPO ── */
#equipo {
  background: white;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}
@media (min-width: 768px){
  .equipo-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
.persona-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem;
  border: 1px solid var(--gris-borde);
  border-radius: 2px;
  transition: border-color 0.25s;
  align-items: start;
  min-width: 0;
  *{
    min-width: 0;
  }
  &.doblecolumn{
    grid-column: span 1;
  }
}
@media (min-width: 768px){
  .persona-card{
    grid-template-columns: 88px minmax(0, 1fr);
    &.doblecolumn{
      grid-column: span 2;
    }
  }
}

.persona-card:hover {
  border-color: var(--azul-claro);
}

.persona-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.persona-areas {
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}

.persona-areas ul {
  display: flex;
  gap: 1rem;
  width: max-content;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: ticker 15s linear infinite;
}

.persona-areas:hover ul {
  animation-play-state: paused;
}

.persona-areas li {
  flex-shrink: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 1px;
  border: 1px solid currentColor;
  font-size: 11px;
  text-transform: uppercase;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}
.avatar-vf {
  background: linear-gradient(135deg, var(--azul-medio), var(--azul));
}
.avatar-ra {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
}

.persona-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gris-borde);
}

.photo-slot {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gris-suave);
  border: 2px dashed var(--gris-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-slot svg {
  opacity: 0.35;
}

.persona-info h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.2rem;
}

.persona-rol {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.persona-info p {
  font-size: 0.87rem;
  color: #666;
  line-height: 1.65;
  font-weight: 300;
}

/* ── CONTACTO ── */
#contacto {
  background: var(--azul);
}

#contacto .section-eyebrow {
  color: var(--dorado-claro);
}
#contacto .section-title {
  color: white;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contacto-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-dato {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.contacto-dato-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-dato a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.contacto-dato a:hover {
  color: var(--dorado-claro);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  color: white;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--dorado-claro);
}

.form-group select option {
  background: var(--azul);
  color: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-enviar {
  background: var(--dorado);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.2s,
    transform 0.15s;
  align-self: flex-start;
}

.btn-enviar:hover {
  background: var(--dorado-claro);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  background: #0a1a28;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25d366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}
.whatsapp-tooltip {
  position: fixed;
  bottom: 2.9rem;
  right: 5.6rem;
  z-index: 999;
  background: #1e1e1e;
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.whatsapp-float:hover ~ .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.footer-slogan {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: none;
  }
  .hero-left {
    padding: 5rem 2rem 4rem;
  }
  .valor-grid,
  .consultoria-grid {
    grid-template-columns: 1fr;
  }
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .servicio-full {
    grid-column: 1;
  }
  .equipo-grid {
    grid-template-columns: 1fr;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .resultados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 0 1.5rem;
  }
  .nav-links {
    display: none;
  }
}


  /* Honeypot: invisible para humanos */
  .hp-field { display: none !important; }
 
  /* Estado del botón */
  .btn-enviar { transition: opacity .2s; }
  .btn-enviar:disabled {
    opacity: .6;
    cursor: not-allowed;
  }
 
  /* Mensajes de estado */
  .form-msg {
    font-size: .85rem;
    margin-top: .5rem;
    display: none;
  }
  .form-msg.success { color: #EF9F27; }
  .form-msg.error   { color: #e05252; }
