/* Work Formation — style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

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

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0a7a70;
  --light: #f0fdfa;
  --light-mid: #ccfbf1;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(13,148,136,0.2);
  --shadow: 0 4px 30px rgba(15,23,42,0.15);
}

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

/* TYPOGRAPHY */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { font-size: 0.95rem; }

/* LINKS */
a { color: var(--teal); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--teal-light); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 38px;
  background: var(--teal);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid var(--teal);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 3px;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  background: transparent;
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid var(--teal);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 3px;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-white {
  display: inline-block;
  padding: 14px 38px;
  background: var(--white);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 3px;
}
.btn-white:hover { background: transparent; color: var(--white); }

/* HEADER / NAV */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 48px; }
.nav-menu { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-menu a {
  color: rgba(240,253,250,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--teal-light); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu .btn { padding: 9px 22px; font-size: 0.78rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--light); transition: all 0.3s; }

/* SPLIT HERO */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero-video-half {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.hero-split-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.hero-text-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: #0f172a;
  color: #fff;
}
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-video-half { height: 300px; }
  .hero-text-half { padding: 40px 24px; }
}

.hero-text-half .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 18px;
}
.hero-text-half h1 { color: #fff; margin-bottom: 18px; }
.hero-text-half h1 em { color: var(--teal-light); font-style: italic; }
.hero-text-half p { color: rgba(240,253,250,0.75); margin-bottom: 34px; font-size: 1rem; max-width: 440px; }
.hero-text-half .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* TEAL ACCENT */
.teal-line {
  width: 50px; height: 3px;
  background: var(--teal);
  margin: 0 auto 20px;
  border-radius: 2px;
}
.teal-line-left { margin: 0 0 20px; }

/* SECTIONS */
section { padding: 86px 0; }
.section-navy { background: var(--navy); color: var(--light); }
.section-navy-mid { background: var(--navy-mid); color: var(--light); }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-navy .section-header .eyebrow,
.section-navy-mid .section-header .eyebrow { color: var(--teal-light); }
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-muted); }
.section-navy .section-header p,
.section-navy-mid .section-header p { color: rgba(240,253,250,0.65); }

/* STATS BAR */
.stats-bar { background: var(--teal); padding: 26px 0; }
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-top: 4px;
}

/* 2-COL */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.two-col-text .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-navy .two-col-text .eyebrow { color: var(--teal-light); }
.two-col-text h2 { margin-bottom: 18px; }
.two-col-text p { margin-bottom: 14px; color: var(--text-muted); font-size: 0.94rem; }
.section-navy .two-col-text p,
.section-navy-mid .two-col-text p { color: rgba(240,253,250,0.7); }
.two-col-text .btn { margin-top: 8px; }
.check-list { list-style: none; margin: 0 0 22px; }
.check-list li { padding: 6px 0 6px 28px; position: relative; color: var(--text-muted); font-size: 0.9rem; }
.section-navy .check-list li { color: rgba(240,253,250,0.72); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: 6px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--teal); }
.card-icon { font-size: 2rem; margin-bottom: 18px; }
.card h3 { color: var(--teal-light); margin-bottom: 12px; }
.card p { color: rgba(240,253,250,0.68); font-size: 0.88rem; }
.section-white .card, .section-light .card {
  background: var(--white);
  border: 1px solid rgba(13,148,136,0.15);
  box-shadow: 0 2px 16px rgba(15,23,42,0.07);
}
.section-white .card p, .section-light .card p { color: var(--text-muted); }
.section-white .card h3, .section-light .card h3 { color: var(--navy); }

/* BANNER (CSS BG) */
.banner-section {
  position: relative;
  padding: 96px 0;
  background-image: url('/images/examen-medical.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.84);
}
.banner-section .container { position: relative; text-align: center; }
.banner-section h2 { color: var(--light); margin-bottom: 14px; }
.banner-section p { color: rgba(240,253,250,0.72); max-width: 600px; margin: 0 auto 32px; }

/* CTA SECTION */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cta-image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}
.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-content {
  background: var(--teal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 58px;
}
.cta-content .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.82); margin-bottom: 28px; }

/* BLOG / RESSOURCES */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid rgba(13,148,136,0.15);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(15,23,42,0.12); }
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 26px 24px; }
.blog-card-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p { font-size: 0.86rem; color: var(--text-muted); }
.blog-card .read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

/* ARTICLE PAGE */
.article-hero {
  background: var(--navy);
  padding: 140px 0 64px;
  text-align: center;
}
.article-hero h1 { color: var(--light); margin-bottom: 14px; }
.article-meta {
  font-size: 0.78rem;
  color: var(--teal-light);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.article-content { max-width: 800px; margin: 0 auto; padding: 66px 30px; }
.article-content h2 { color: var(--navy); margin: 38px 0 14px; }
.article-content h3 { color: var(--navy); margin: 26px 0 10px; }
.article-content p { margin-bottom: 18px; color: #374151; line-height: 1.85; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; color: #374151; line-height: 1.85; }
.article-content li { margin-bottom: 7px; }
.article-img { width: 100%; height: 360px; object-fit: cover; margin: 28px 0; display: block; border-radius: 4px; }
.article-content a { color: var(--teal); text-decoration: underline; }

/* PAGE HERO */
.page-hero {
  background: var(--navy);
  padding: 140px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--light); margin-bottom: 14px; }
.page-hero p { color: rgba(240,253,250,0.7); max-width: 600px; margin: 0 auto; }

/* FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info h3 { margin-bottom: 18px; }
.contact-info p { color: var(--text-muted); margin-bottom: 10px; font-size: 0.9rem; }

/* ACCORDION */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.section-navy .faq-q, .section-navy-mid .faq-q { color: var(--light); }
.faq-q .faq-icon { font-size: 1rem; color: var(--teal); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.section-navy .faq-a, .section-navy-mid .faq-a { color: rgba(240,253,250,0.68); }
.faq-item.open .faq-a { display: block; }

/* BREADCRUMB */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--light);
  border-bottom: 1px solid var(--light-mid);
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 8px; }

/* SITEMAP */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.sitemap-col h3 { color: var(--teal); margin-bottom: 14px; font-size: 1.05rem; }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 9px; }
.sitemap-col ul li a { color: var(--text); font-size: 0.88rem; }
.sitemap-col ul li a:hover { color: var(--teal); }

/* 404 */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--navy); }
.error-page h1 { font-size: 7rem; color: var(--teal); line-height: 1; margin-bottom: 0; }
.error-page h2 { color: var(--light); margin-bottom: 14px; }
.error-page p { color: rgba(240,253,250,0.65); margin-bottom: 28px; }

/* BADGES */
.badge { display: inline-block; padding: 4px 12px; background: rgba(13,148,136,0.15); color: var(--teal); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 20px; margin-bottom: 14px; }
.section-navy .badge { background: rgba(13,148,136,0.25); color: var(--teal-light); }

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(240,253,250,0.65);
  padding: 56px 0 24px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.86rem; line-height: 1.75; max-width: 300px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(240,253,250,0.62); font-size: 0.86rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px 0;
  border-top: 1px solid rgba(13,148,136,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(240,253,250,0.4); }
.footer-bottom a:hover { color: var(--teal-light); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col img { height: 300px; }
  .cta-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); padding: 18px 30px; gap: 0; border-top: 1px solid var(--border); }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 11px 0; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-content { padding: 48px 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col.reverse { direction: ltr; }
}
