/* Auto École Cabanes — style.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600&display=swap');

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

:root {
  --dark: #1a1a1a;
  --gold: #c5a44e;
  --gold-light: #d4b96a;
  --gold-dark: #a08535;
  --cream: #faf5eb;
  --cream-dark: #f0e8d0;
  --white: #ffffff;
  --text-muted: #8a8a8a;
  --border: rgba(197,164,78,0.25);
  --shadow: 0 4px 30px rgba(0,0,0,0.35);
}

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

/* TYPOGRAPHY */
h1,h2,h3,h4,h5 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p { font-size: 0.95rem; }

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

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 38px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  background: transparent;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }

/* HEADER / NAV */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.96);
  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: 80px;
}
.nav-logo img { height: 52px; }
.nav-menu { display: flex; list-style: none; gap: 36px; align-items: center; }
.nav-menu a {
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu .btn { padding: 10px 24px; font-size: 0.75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--cream); 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: #1a1a1a;
}
.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: #1a1a1a;
  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: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-text-half h1 { color: #fff; margin-bottom: 20px; }
.hero-text-half h1 em { color: var(--gold); font-style: italic; }
.hero-text-half p { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1rem; max-width: 460px; }
.hero-text-half .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* GOLD DIVIDER */
.gold-divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
}
.gold-divider-left { margin: 0 0 24px; }

/* SECTIONS */
section { padding: 90px 0; }
.section-dark { background: var(--dark); color: var(--cream); }
.section-cream { background: var(--cream); }
.section-cream-dark { background: var(--cream-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-muted); }
.section-dark .section-header p { color: rgba(250,245,235,0.65); }

/* STATS BAR */
.stats-bar {
  background: var(--gold);
  padding: 28px 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: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.8;
  margin-top: 4px;
}

/* 2-COL SECTIONS */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  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;
}
.two-col-text .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.two-col-text h2 { margin-bottom: 20px; }
.two-col-text p { margin-bottom: 16px; color: var(--text-muted); font-size: 0.94rem; }
.section-dark .two-col-text p { color: rgba(250,245,235,0.7); }
.two-col-text .btn { margin-top: 10px; }

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 40px 32px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card-icon { font-size: 2rem; margin-bottom: 20px; }
.card h3 { color: var(--gold); margin-bottom: 14px; }
.card p { color: rgba(250,245,235,0.7); font-size: 0.9rem; }
.section-cream .card, .section-cream-dark .card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.section-cream .card p, .section-cream-dark .card p { color: var(--text-muted); }
.section-cream .card h3, .section-cream-dark .card h3 { color: var(--dark); }

/* BANNER (CSS BG) */
.banner-section {
  position: relative;
  padding: 100px 0;
  background-image: url('/images/examen-code.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.82);
}
.banner-section .container { position: relative; text-align: center; }
.banner-section h2 { color: var(--cream); margin-bottom: 16px; }
.banner-section p { color: rgba(250,245,235,0.75); max-width: 620px; margin: 0 auto 34px; }

/* CTA SECTION */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cta-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-content {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 60px;
}
.cta-content .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.cta-content h2 { color: var(--cream); margin-bottom: 18px; }
.cta-content p { color: rgba(250,245,235,0.7); margin-bottom: 30px; }

/* BLOG / MAGAZINE */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.blog-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 28px 26px; }
.blog-card-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { font-size: 0.88rem; color: var(--text-muted); }
.blog-card .read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ARTICLE PAGE */
.article-hero {
  background: var(--dark);
  padding: 140px 0 70px;
  text-align: center;
}
.article-hero h1 { color: var(--cream); margin-bottom: 16px; }
.article-meta {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-content { max-width: 800px; margin: 0 auto; padding: 70px 30px; }
.article-content h2 { color: var(--dark); margin: 40px 0 16px; }
.article-content h3 { color: var(--dark); margin: 28px 0 12px; }
.article-content p { margin-bottom: 20px; color: #444; line-height: 1.85; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; color: #444; line-height: 1.85; }
.article-content li { margin-bottom: 8px; }
.article-img { width: 100%; height: 380px; object-fit: cover; margin: 30px 0; display: block; }
.article-content a { color: var(--gold); text-decoration: underline; }

/* PAGE HERO (non-split) */
.page-hero {
  background: var(--dark);
  padding: 140px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--cream); margin-bottom: 16px; }
.page-hero p { color: rgba(250,245,235,0.7); max-width: 600px; margin: 0 auto; }

/* FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; align-items: start; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.9rem; }

/* ACCORDION (FAQ) */
.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: 22px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.section-dark .faq-q { color: var(--cream); }
.faq-q .faq-icon { font-size: 1rem; color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 22px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; }
.section-dark .faq-a { color: rgba(250,245,235,0.7); }
.faq-item.open .faq-a { display: block; }

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

/* SITEMAP */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-col h3 { color: var(--gold); margin-bottom: 16px; font-size: 1.1rem; }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 10px; }
.sitemap-col ul li a { color: var(--dark); font-size: 0.9rem; }
.sitemap-col ul li a:hover { color: var(--gold); }

/* 404 */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--dark); }
.error-page h1 { font-size: 8rem; color: var(--gold); line-height: 1; margin-bottom: 0; }
.error-page h2 { color: var(--cream); margin-bottom: 16px; }
.error-page p { color: rgba(250,245,235,0.65); margin-bottom: 30px; }

/* FOOTER */
footer {
  background: #111;
  color: rgba(250,245,235,0.65);
  padding: 60px 0 28px;
  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: 50px;
  margin-bottom: 50px;
}
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.75; max-width: 300px; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(250,245,235,0.65); font-size: 0.87rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 30px 0;
  border-top: 1px solid rgba(197,164,78,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(250,245,235,0.45); }
.footer-bottom a:hover { color: var(--gold); }

/* 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: 40px; }
  .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: 60px 0; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--dark); padding: 20px 30px; gap: 0; border-top: 1px solid var(--border); }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 12px 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: 50px 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col.reverse { direction: ltr; }
}
