:root {
  --primary: #266eae;
  --secondary: #5f2f95;
  --accent: #ee2f8f;
  --dark: #142333;
  --text: #253444;
  --muted: #64748b;
  --light: #f6f9fc;
  --white: #ffffff;
  --border: rgba(38, 110, 174, 0.14);
  --shadow: 0 18px 45px rgba(20, 35, 51, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.section { padding: 72px 0; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.center { text-align: center; }
.card, .service-card, .feature-card, .stat-card, .form-card, .promo-card, .social-link-card, .contact-item {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(38,110,174,0.1);
}
.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 5px;
}
.brand strong {
  display: block;
  color: var(--dark);
  font-size: 1rem;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.lang-switch {
  display: inline-flex;
  background: #edf5fb;
  border-radius: 999px;
  padding: 4px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: url('../images/portada.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(20,35,51,0.72) 10%, rgba(38,110,174,0.42) 55%, rgba(95,47,149,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}
.hero-copy {
  max-width: 670px;
  color: var(--white);
  padding: 34px;
  border-radius: 30px;
}
.glass {
  background: rgba(20,35,51,0.34);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.eyebrow, .section-kicker {
  display: inline-block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.eyebrow { color: #d9ebff; }
.section-kicker { color: var(--accent); margin-bottom: 12px; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.05;
  margin: 14px 0 16px;
}
.hero p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.95);
}
.hero-actions, .section-heading { margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--white);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  margin-left: 12px;
}

.intro-grid, .video-grid, .social-grid, .contact-grid { align-items: center; }
.intro h2, .services-section h2, .gallery-section h2, .video-section h2, .social-section h2, .contact-section h2, .map-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
  margin: 0 0 16px;
}
.intro p, .section-heading p, .video-section p, .social-section p {
  color: var(--muted);
  line-height: 1.8;
}
.feature-list, .service-grid, .stats-grid, .contact-list {
  display: grid;
  gap: 18px;
}
.feature-list { grid-template-columns: 1fr; margin-top: 26px; }
.feature-card, .service-card, .stat-card {
  padding: 22px;
}
.feature-card h3, .service-card h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 1.1rem;
}
.feature-card p, .service-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.media-card {
  padding: 22px;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-panel {
  width: min(100%, 520px);
  border-radius: 26px;
  object-fit: contain;
}
.stats-section { padding-top: 0; }
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-card {
  text-align: center;
  padding: 28px 20px;
}
.stat-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-card span {
  color: var(--muted);
  line-height: 1.6;
}
.services-section {
  background: linear-gradient(180deg, rgba(38,110,174,0.03) 0%, rgba(95,47,149,0.05) 100%);
}
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}
.service-card { min-height: 100%; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.video-frame, .map-frame {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.video-frame iframe {
  width: 100%;
  min-height: 390px;
  border: 0;
}
.social-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-top: 22px;
}
.social-link-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 18px;
}
.social-link-card span { display: block; margin-top: 4px; color: var(--muted); }
.promo-card { padding: 18px; }
.promo-card img {
  width: 100%;
  border-radius: 18px;
}
.contact-list { margin-top: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}
.contact-item span { font-size: 1.4rem; line-height: 1; }
.contact-item strong { color: var(--dark); }
.contact-item p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.form-card { padding: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dark);
}
.form-row input, .form-row textarea {
  width: 100%;
  border: 1px solid rgba(38,110,174,0.2);
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
  background: #fbfdff;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(38,110,174,0.1);
}
.map-frame iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.88);
  padding: 24px 0;
}
.footer-inner {
  text-align: center;
}
.site-footer a { color: #8fd1ff; }
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #24d366, #1e9c52);
  color: white;
  box-shadow: 0 12px 30px rgba(36, 211, 102, 0.35);
  z-index: 60;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 26, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: min(960px, 100%);
  max-height: 85vh;
  border-radius: 18px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .grid-2, .service-grid, .stats-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1120px); }
  .topbar-inner { min-height: 72px; }
  .brand div span { display: none; }
  .hero-copy { padding: 22px; }
  .hero h1 { font-size: 2rem; }
  .btn { width: 100%; }
  .btn-outline { margin: 12px 0 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 58px 0; }
}
