 @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --navy: #1a2a4a;
  --gold: rgb(184, 151, 58);
  --gold-light: #c9a84c;
  --light-bg: #f5f6f8;
  --card-bg: #F0E9DA33;
  --text: #2c3e50;
  --text-light: #6b7a8d;
  --white: #ffffff;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6%; background: var(--white);
  box-shadow: 0 1px 1px rgba(184, 151, 58, 0.50); position: sticky; top: 0; z-index: 100;
  animation: fadeIn .6s ease both;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-circle {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--navy); font-weight: 700;
  line-height: 1.1; text-align: center;
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--navy); font-weight: 700; line-height: 1.2; }
.logo-sub { font-family: 'Lato', sans-serif; font-size: 0.625rem; letter-spacing: 2px; color: var(--text-light); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text); font-size: 1rem; font-weight: 400;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: .3s; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 45fr 55fr;
    min-height: 85vh;
  position: relative;
  background: #FDFCF9;
  margin:0px;
}
.hero-content, .hero-image { position: relative; z-index: 1;animation: fadeInUp .8s ease both; }



.hero-content {
  padding: 70px 8% 70px 8%;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 4rem);
  color: var(--navy); line-height: 1.2; margin-bottom: 22px;
  animation: fadeInUp .8s ease both;
    font-weight: 400;
}
.hero-content h1 span { color: var(--gold); font-style: italic; }
.hero-subtitle {
  font-size: 1rem; color: var(--text-light); line-height: 1.6;
  margin-bottom: 36px; max-width: 380px;
  padding-top: 18px; border-top: 1px solid var(--gold);
  animation: fadeInUp .8s ease .2s both;
}
.btn-group {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeInUp .8s ease .4s both;
}
.btn-primary {
  background: var(--navy); color: var(--white); border: 2px solid var(--navy);
  padding: 12px 26px; border-radius: 4px; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; letter-spacing: .5px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .15s ease, box-shadow .3s ease;
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,42,74,.18); }
.btn-outline {
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
  padding: 12px 26px; border-radius: 4px; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; letter-spacing: .5px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .15s ease, box-shadow .3s ease;
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,42,74,.18); }
.hero-image {
  overflow: hidden;
  border-radius: 15% 0 0 15% / 50% 0 0 50%;  /* más suave */

}


.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-image-placeholder {
  width: 100%; height: 100%; min-height: 420px;
  background: linear-gradient(135deg, #c9a84c22 0%, #1a2a4a22 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--gold);
  animation: fadeIn 1.2s ease .3s both;
}

.hero-wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.hero-wave-bottom svg {
  width: 100%;
  height: 60px;  /* más alto = curva más pronunciada */
  display: block;
}

/* ── SECTIONS ────────────────────────────────────────── */
section { padding: 10rem 8%; }

.section-title {
  font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: 3px;
  color: var(--navy); text-align: center; margin-bottom: 12px;
   display: flex;
  align-items: center;
  gap: 10px;
}
.section-divider {
  width: 0; height: 2px; background: var(--gold); margin: 0 auto 40px;
  transition: width .7s ease;
}
.section-divider.visible { width: 60px; }

/* ── QUIENES SOMOS ───────────────────────────────────── */
.quienes { background: var(--light-bg);   position:relative; }
.quienes-text { max-width: 720px; margin: 0 auto; text-align: center;}
.quienes-text p { font-size: 1.2rem; line-height: 1.8; color: var(--text); margin-bottom: 22px; }
.quienes-text strong { color: var(--navy); }
.quienes-text .btn-primary { display: inline-block; margin-top: 10px; }

.quienes-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.quienes-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ── SERVICIOS ───────────────────────────────────────── */
.servicios { background: var(--white); }
.servicios-separador {
  width: 120px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 40px; /* auto en los lados lo centra */
}
.servicios-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 3rem;

}
.service-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 30px 22px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid #e9ddc8;  /* más delgado queda más elegante */
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 10px; background: var(--navy);
}

.service-card--finanzas::after {
  background: var(--navy);
}

.service-card--contabilidad::after {
  background: var(--gold);
}

.service-card--auditoria::after {
  background: #4a7a9b; /* azul medio */
}

.service-card--optimizacion::after {
  background: #c9a84c; /* dorado claro */
}

.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,42,74,.12); }
.service-icon { font-size: 2rem; margin-bottom: 14px; color: var(--gold); }
.service-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text);
  margin-bottom: 12px; margin-top:12px; line-height: 1.3; font-weight: 600;
   position: relative;
  padding-bottom: 10px;  /* espacio para la línea */
}
.service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;      /* ancho de la línea */
  height: 2px;      /* grosor */
  background: var(--gold);
}

.service-card p { font-size: 1rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.service-card ul { padding-left: 16px; }
.service-card ul li { font-size: 1rem; color: var(--text-light); line-height: 1.7; }

/* ── CTA Section ─────────────────────────────────────── */

.cta {
  background: var(--card-bg);
  padding: 80px 8%;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Texto izquierda */
.cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 400;
}

.cta-text p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.cta-text--bajada {
  font-size: 0.85rem !important;
  color: var(--text-light);
  line-height: 1.8;
  padding-top: 2rem;
}

/* Tarjeta */
.cta-card {
  background: #ffffff;
  border: 1px solid #e2d5b8;
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: 0 4px 24px rgba(26, 42, 74, 0.07);
  margin-top: 3rem;
}

/* Decoración top */
.cta-card-deco-top,
.cta-card-deco-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.cta-card-deco-bottom {
  margin-bottom: 0;
  margin-top: 24px;
}

.deco-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.deco-diamond {
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.8;
}

.deco-icon {
  font-size: 1.2rem;
  opacity: 0.6;
}

/* Título tarjeta */
.cta-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 400;
  text-align: center;
  margin-bottom: 28px;
}

/* Form dentro de la tarjeta */
.cta-card .contact-form {
  max-width: 100%;
  gap: 18px;
}

.cta-card .form-group label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
}

/* Input con ícono */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 0.9rem;
  opacity: 0.5;
  pointer-events: none;
}

.cta-card .form-input {
  padding-left: 40px;
  background: var(--light-bg);
  border: 1px solid #e2d5b8;
  border-radius: 4px;
}

.cta-card .form-input--textarea {
  padding-left: 16px;
  min-height: 140px;
  resize: vertical;
}

.cta-card .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 58, 0.10);
  background: #ffffff;
}

/* Botón con líneas decorativas */
.cta-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.deco-line-short {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.cta-card .form-btn {
  white-space: nowrap;
  padding: 13px 24px;
  font-size: 0.9375rem;
  display: block;
  margin: 0 auto;
}

.chip {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  margin-right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-card {
    padding: 28px 24px;
  }
}


/* ── FOOTER ──────────────────────────────────────────── */
footer { background: var(--navy); color: #aab5c5; padding: 50px 8% 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-circle { border-color: #aab5c5; color: #fff; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-sub { color: #aab5c5; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 1rem; line-height: 1.7; max-width: 260px; }
.footer-contact h4 {
  font-family: 'Playfair Display', serif; color: var(--white); font-size: 0.875rem;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; text-align: right;
}
.footer-contact p { font-size: 1rem; line-height: 2; text-align: right; }
.footer-contact a { color: #aab5c5; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #2d3f5a; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem; color: #6b7a8d;
}

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeInUp {
  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 .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }


.contact-form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #dde2ea;
  border-radius: 4px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.form-input::placeholder {
  color: #aab5c5;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 58, 0.12);
}

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

.form-btn {
  align-self: flex-start;
  background: var(--navy);
  color: #ffffff;
  border: 2px solid var(--navy);
  padding: 13px 32px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .15s ease, box-shadow .3s ease;
}

.form-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184, 151, 58, 0.25);
}


/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: var(--white);
    padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.1); gap: 16px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { display: none; }
   .hero-content {
    padding: 60px 6% 50px;}
  .servicios-grid { grid-template-columns: 1fr; }
   .service-icon {
    font-size: 2.5rem;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact h4, .footer-contact p { text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; }
    .cta-card .form-btn {
    width: 100%;
    text-align: center;
  }
  section { padding: 60px 6%; }
}