 @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: 420px; overflow: hidden;
  max-height: 520px;
  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: 80px 8%; }

.section-title {
  font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: 3px;
  color: var(--navy); text-transform: uppercase; text-align: center; margin-bottom: 12px;
}
.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);  box-shadow: 0 1px 1px rgba(184, 151, 58, 0.50); }
.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; }

/* ── SERVICIOS ───────────────────────────────────────── */
.servicios { background: var(--white); }
.servicios-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px;

}
.service-card {
  background: var(--card-bg); border-radius: 6px; padding: 30px 22px;
  position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--navy);
}
.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: 1rem; color: var(--gold);
  margin-bottom: 12px; line-height: 1.3;
}
.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 ─────────────────────────────────────────────── */
.cta { background: var(--white); text-align: center; }
.cta h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--navy); margin-bottom: 24px;
}
.cta p { max-width: 620px; margin: 0 auto 32px; font-size: 1rem; color: var(--text-light); line-height: 1.7; }

/* ── 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; }

/* ── 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: 50px 6%; }
  .servicios-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact h4, .footer-contact p { text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 60px 6%; }
}