/* 40 Grados Sur — Global Styles */
:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2740;
  --gold: #c8a45c;
  --gold-light: #d4b876;
  --white: #ffffff;
  --light-gray: #f5f6f8;
  --mid-gray: #e2e4e8;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --font: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--white); }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy-dark); color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 68px; max-width: 1400px; margin: 0 auto; }
.logo { font-size: 1.35rem; font-weight: 700; letter-spacing: 2px; color: var(--white); white-space: nowrap; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.3px; padding: 4px 0; border-bottom: 2px solid transparent; transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); border-bottom-color: var(--gold); }
.lang-toggle { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); padding: 5px 14px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; cursor: pointer; letter-spacing: 1px; transition: all var(--transition); }
.lang-toggle:hover { background: var(--gold); color: var(--navy-dark); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--navy-dark);
    padding: 1.5rem 5%; gap: 1rem; box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #0b1e33 100%);
  color: var(--white); padding: clamp(4rem, 10vw, 7rem) 5%;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(200,164,92,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .subtitle { font-size: clamp(1rem, 2.2vw, 1.3rem); color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 2rem; line-height: 1.6; }
.hero .gold-line { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 2rem; border-radius: 2px; }

/* ── Sections ── */
.section { padding: clamp(3rem, 8vw, 5rem) 5%; }
.section.alt { background: var(--light-gray); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { color: var(--text-light); max-width: 650px; margin: 0.5rem auto 0; font-size: 1.05rem; }

/* ── Cards Grid ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.card {
  background: var(--white); border-radius: 10px; padding: 2rem; text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.card .icon { font-size: 2.4rem; margin-bottom: 1rem; }
.card h3 { color: var(--navy); }
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }
.stat-number { font-size: 2.6rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: 0.4rem; }

/* ── Two-Column ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ── Photo Placeholder ── */
.photo-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5a8c 100%);
  color: rgba(255,255,255,0.6); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; font-size: 0.95rem; font-style: italic;
  padding: 2rem; text-align: center; position: relative; overflow: hidden;
}
.photo-placeholder::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
}

/* ── Real Images ── */
.real-image {
  border-radius: 10px;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* ── Hero with background image ── */
.hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,39,64,0.82) 0%, rgba(26,58,92,0.75) 50%, rgba(11,30,51,0.85) 100%);
}

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px;
  transition: all var(--transition); cursor: pointer; border: none; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); transform: translateY(-2px); }

/* ── Specs Table ── */
.specs-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.specs-table th, .specs-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--mid-gray); }
.specs-table th { background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.9rem; }
.specs-table tr:hover { background: var(--light-gray); }
.specs-table td:first-child { font-weight: 600; color: var(--navy); width: 40%; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.timeline-item { margin-bottom: 2.5rem; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -2.15rem; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold); }
.timeline-year { font-weight: 700; color: var(--gold); font-size: 1.1rem; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--mid-gray); padding: 1.2rem 0; }
.faq-question { font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--gold); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; color: var(--text-light); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 500px; padding-top: 0.8rem; }

/* ── Contact Form ── */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--mid-gray);
  border-radius: 6px; font-family: var(--font); font-size: 0.95rem;
  transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white); text-align: center; padding: clamp(3rem, 8vw, 5rem) 5%;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 550px; margin: 0 auto 2rem; }

/* ── Footer ── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 3.5rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; max-width: var(--max-w); margin: 0 auto 2.5rem; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.5px; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; max-width: var(--max-w); margin: 0 auto; }

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── Process Steps ── */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; counter-reset: step; }
.process-step { text-align: center; padding: 1.5rem 1rem; position: relative; }
.process-step::before { counter-increment: step; content: counter(step); display: block; width: 44px; height: 44px; line-height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: 1.1rem; margin: 0 auto 0.8rem; }
.process-step h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.process-step p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Testimonial placeholder */
.testimonial { background: var(--white); border-left: 4px solid var(--gold); padding: 2rem; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.testimonial .quote { font-style: italic; font-size: 1.05rem; color: var(--text); margin-bottom: 0.8rem; }
.testimonial .attribution { font-weight: 600; color: var(--gold); font-size: 0.9rem; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── Print ── */
@media print {
  .site-header, .site-footer, .hamburger, .cta-section { display: none; }
  .hero { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 2rem; }
  .section { padding: 1.5rem 0; }
  body { font-size: 11pt; }
}
