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

:root {
  --primary: #2c6e8a;
  --primary-dark: #1e4f65;
  --accent: #e8a020;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #fff;
  --bg-alt: #f4f8fa;
  --border: #dde8ed;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(44,110,138,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
}

.section-sub {
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; text-align: center; }

.link-arrow { color: var(--primary); font-weight: 500; font-size: 0.9rem; }
.link-arrow:hover { color: var(--primary-dark); }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
}
.logo-img { height: 72px; width: auto; border-radius: 6px; object-fit: contain; }
.nav { display: flex; gap: 2rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-light); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

.mobile-nav {
  display: none; flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 1rem; }

/* HERO */
.hero {
  position: relative;
  background: #ebebeb;
  color: var(--text);
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
}
.hero-bg { display: none; }
.hero-content { position: relative; max-width: 780px; margin: 0 auto; text-align: left; }
.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-subtitle { font-size: 1rem; color: var(--text-light); max-width: 560px; margin: 0 0 2.5rem; }
.hero-features {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.75rem 3rem;
  margin-bottom: 2.5rem;
  width: fit-content;
}
.hero-feature {
  display: flex; align-items: center; gap: 0.6rem;
  background: none; border: none; border-radius: 0;
  padding: 0; font-size: 0.88rem; font-weight: 500;
  color: var(--text); white-space: nowrap;
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; min-width: 24px;
  background: #f5c518; border-radius: 50%;
  color: #fff; font-size: 0.8rem; font-weight: 700;
  line-height: 1;
}

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, #1e4f65, #2c6e8a);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}
.page-sub { opacity: 0.85; font-size: 1.1rem; }

/* ABOUT */
.about-text-only { max-width: 680px; }
.about-text-only p { color: var(--text-light); margin-bottom: 1rem; }
.about-text-only .btn { margin-top: 0.5rem; }

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--primary-dark); }
.service-card-body p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 1rem; }

/* CLIENTS */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}
.clients-grid img {
  width: 90px; height: 90px;
  object-fit: contain;
  filter: grayscale(40%); transition: filter 0.2s;
  border-radius: 8px;
}
.clients-grid img:hover { filter: grayscale(0%); }

/* SERVICIOS PAGE - layout split */
.srv-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 240px;
}
.srv-section:nth-child(odd) .srv-left  { background: #5a6a72; }
.srv-section:nth-child(odd) .srv-right { background: #f4f8fa; }
.srv-section:nth-child(even) .srv-left  { background: #4a5a62; }
.srv-section:nth-child(even) .srv-right { background: #eef2f5; }

.srv-left {
  color: #fff;
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.srv-left h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.srv-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.75;
  text-transform: uppercase;
}

.srv-right {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
}

/* Clases - icon cards */
.srv-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.srv-icon-card {
  color: var(--text);
  text-align: center;
}
.srv-icon-card svg { color: var(--primary); opacity: 0.8; margin: 0 auto 0.6rem; }
.srv-icon-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--primary-dark); }
.srv-icon-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* Flags - una fila, cada bandera con label */
.srv-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-end;
}
.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 52px;
}
.flag { font-size: 1.8rem; line-height: 1; display: block; }
.flag-duo {
  display: flex;
  line-height: 1;
  font-size: 1.8rem;
  gap: 0;
  overflow: hidden;
  border-radius: 4px;
  height: 1.8rem;
}
.flag-duo span {
  display: block;
  width: 0.95em;
  overflow: hidden;
}
.flag-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.2;
}
.flag-sub {
  font-size: 0.68rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.2;
  display: block;
  min-height: 0.9rem;
}

/* Examenes */
.exams-grid-srv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
}
.exam-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.exam-card img { width: 100%; height: 100%; object-fit: contain; }

/* Foto redonda nosotros */
.profile-img-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 auto 1rem;
}
.profile-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Acordeón talleres */
.accordion { display: flex; flex-direction: column; width: 100%; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:first-child { border-top: 1px solid var(--border); }
.acc-btn {
  width: 100%;
  background: #fff;
  border: none;
  padding: 0.9rem 1.1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.2s;
}
.acc-btn:hover, .acc-btn.open { background: #f0f4f6; }
.acc-icon {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--primary);
  min-width: 16px;
}
.acc-body {
  display: none;
  background: #f8fafb;
  padding: 1rem 1.4rem;
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}
.acc-body.open { display: block; }

/* Servicios complementarios */
.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.comp-list li {
  color: var(--text);
  font-size: 0.93rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.4;
}
.comp-list li::before {
  content: '✓';
  font-weight: 700;
  color: var(--primary);
  min-width: 18px;
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.exams-grid img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--border);
  padding: 0.5rem; background: #fff;
}

.talleres-list { display: flex; flex-direction: column; gap: 1.5rem; }
.taller-item {
  border-left: 4px solid var(--primary);
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.taller-item h3 { color: var(--primary-dark); margin-bottom: 0.5rem; font-size: 1rem; }
.taller-item p { color: var(--text-light); font-size: 0.92rem; }

.complementarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.comp-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  font-size: 0.95rem; color: var(--text);
  box-shadow: var(--shadow);
  position: relative; padding-left: 2rem;
}
.comp-item::before {
  content: '✓'; position: absolute; left: 0.75rem;
  color: var(--primary); font-weight: 700;
}

/* NOSOTROS */
.profile-card {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3rem; align-items: start;
}
.profile-img-wrap img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover;
}
.profile-links { display: flex; gap: 1rem; margin-top: 1rem; }
.profile-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.profile-links a:hover { background: var(--primary-dark); }
.profile-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--primary-dark);
  margin-bottom: 1rem;
}
.profile-text p { color: var(--text-light); margin-bottom: 1rem; }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.valor-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.valor-card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1rem; }
.valor-card p { font-size: 0.9rem; color: var(--text-light); }

/* CONTACTO */
.contact-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 4rem; align-items: start;
}
.contact-item { margin-bottom: 1.5rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--primary); font-weight: 500;
  font-size: 1rem; transition: color 0.2s;
}
.contact-link:hover { color: var(--primary-dark); }
.contact-logo { margin-top: 2rem; }
.contact-logo img { width: 160px; border-radius: var(--radius); }

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block; font-size: 0.9rem; font-weight: 500;
  margin-bottom: 0.5rem; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--text);
  background: #fff; transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; }

.idioma-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.idioma-pill {
  cursor: pointer;
}
.idioma-pill input {
  display: none;
}
.idioma-pill span {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  background: #fff;
  transition: all 0.18s;
  user-select: none;
}
.idioma-pill input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.idioma-pill:hover span {
  border-color: var(--primary);
  color: var(--primary);
}

.form-success {
  background: #e8f5e9; color: #2e7d32;
  border-radius: var(--radius); padding: 1rem;
  text-align: center; margin-top: 1rem;
  font-weight: 500;
}

/* FOOTER */
.footer { background: var(--text); color: rgba(255,255,255,0.8); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 0.6rem; opacity: 0.7; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 1.5rem;
  text-align: center; font-size: 0.85rem; opacity: 0.5;
}

/* WHATSAPP BTN */
.whatsapp-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  display: flex; align-items: center; gap: 0.6rem;
  background: #25d366; color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  font-weight: 500; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .contact-grid, .profile-card { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .clients-grid img { width: 75px; height: 75px; }
  .srv-section { grid-template-columns: 220px 1fr; }
  .exams-grid-srv { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 700px) {
  .srv-section { grid-template-columns: 1fr; }
  .srv-left { padding: 2rem 1.5rem; min-height: unset; }
  .srv-right { padding: 2rem 1.5rem; }
  .srv-cards-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .exams-grid-srv { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
}

@media (max-width: 600px) {
  .services-grid, .valores-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero-features { grid-template-columns: 1fr; gap: 0.6rem; }
  .hero-feature { white-space: normal; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 0.85rem; border-radius: 50%; }
  .clients-grid img { width: 65px; height: 65px; }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 1fr; }
  .srv-cards-row { grid-template-columns: 1fr; }
  .exams-grid-srv { grid-template-columns: repeat(2, 1fr); }
}
