/* ============================================================
   Medellín Surgery — Premium Medical Tourism Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg:          #0B1929;
  --bg-surface:  #112240;
  --bg-card:     #1A3050;
  --bg-card-hover: #203A5E;
  --accent:      #10B981;
  --accent-light:#34D399;
  --cta:         #10B981;
  --cta-hover:   #059669;
  --text:        #E8EDF4;
  --text-muted:  #7B8DA6;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 20px 60px rgba(0,0,0,0.5);
  --shadow-sm:   0 4px 20px rgba(0,0,0,0.3);
  --font-display:'DM Serif Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --transition:  all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

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

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(11,25,41,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--cta);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }

.lang-toggle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(16,185,129,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(16,185,129,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; max-width: 560px; margin-bottom: 2.5rem; }

.hero-cta {
  display: inline-flex;
  background: var(--cta);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.hero-cta:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat h3 { color: var(--accent); font-size: 2rem; margin-bottom: 0.2rem; }
.hero-stat p { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 768px) {
  .hero { padding: 7rem 0 4rem; min-height: auto; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

/* === SECTIONS === */
section {
  padding: 6rem 0;
}
section:nth-child(even) {
  background: var(--bg-surface);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { margin-bottom: 1rem; }

/* === PROCEDURE CARDS === */
.procedure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.procedure-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.procedure-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.procedure-card .icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.procedure-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.procedure-card p {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.procedure-card .price {
  display: inline-block;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* === COMPARISON TABLE === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-surface);
  padding: 1rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .savings {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 0.7rem 0.8rem; }
}

/* === WHY MEDELLIN === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}
.why-card .why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.why-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }

/* === FAQ === */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.4rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.4rem;
}
.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === FORM === */
.form-section {
  background: var(--bg-surface);
}
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); color: var(--text); }

.form-submit {
  width: 100%;
  background: var(--cta);
  color: #fff;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.form-submit:hover { background: var(--cta-hover); }

/* === NETWORK LINKS === */
.network-section {
  padding: 3rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.network-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.network-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.network-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* === FOOTER === */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; }
