:root {
  --bg: #f3faf7;
  --bg-soft: #eef7ff;
  --primary: #84d6cf;
  --primary-deep: #67b7c8;
  --secondary: #7b4f85;
  --secondary-deep: #56335e;
  --text: #14222d;
  --text-soft: #4b5b67;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 34, 45, 0.12);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fffd 0%, #f4f8ff 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.center { text-align: center; }
.topbar {
  background: linear-gradient(90deg, var(--secondary), var(--primary-deep));
  color: var(--white);
  font-size: 0.94rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.top-actions { display: flex; gap: 12px; align-items: center; }
.top-actions a, .lang-toggle {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 999px;
}
.lang-toggle { cursor: pointer; }
.hero {
  position: relative;
  min-height: 92vh;
  background: url('assets/images/portada.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(8, 16, 24, 0.78), rgba(72, 125, 138, 0.35));
}
.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); font-weight: 700; }
.brand img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
}
.nav-links { display: flex; gap: 24px; color: var(--white); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 80px;
}
.card-glass {
  width: min(640px, 100%);
  padding: 34px;
  border-radius: 30px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.18);
}
.eyebrow, .section-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(132,214,207,0.16);
  color: var(--secondary-deep);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .75rem;
}
.hero .eyebrow {
  background: rgba(132,214,207,0.22);
  color: var(--white);
}
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
  margin: 14px 0 18px;
}
h1 { font-size: clamp(3rem, 6vw, 5.4rem); color: var(--white); }
h2 { font-size: clamp(2.3rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
p { line-height: 1.7; color: var(--text-soft); margin: 0; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.06rem; }
.hero-buttons, .form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-buttons { margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.12); }
.btn-primary { background: linear-gradient(90deg, var(--secondary), var(--primary-deep)); color: var(--white); }
.btn-secondary { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.25); }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.align-center { align-items: center; }
.feature-list, .timeline-list, .contact-list { display: grid; gap: 18px; margin-top: 24px; }
.feature-item, .service-card, .info-card, .social-card, .contact-form {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(103, 183, 200, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-item { padding: 22px; }
.feature-item strong, .contact-list strong { display: block; margin-bottom: 6px; }
.info-card, .social-card, .contact-form { padding: 30px; }
.info-logo { width: 120px; border-radius: 24px; margin-bottom: 18px; }
.info-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.section-head { max-width: 720px; margin: 0 auto 34px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card { padding: 28px; }
.rounded-image { border-radius: 28px; box-shadow: var(--shadow); }
.timeline-list > div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(20,34,45,.08);
}
.timeline-list > div:last-child { border-bottom: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  margin-top: 22px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.facebook-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin: 20px 0 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(132,214,207,.22), rgba(123,79,133,.12));
}
.facebook-card img { width: 74px; border-radius: 18px; }
.contact-list a {
  background: rgba(255,255,255,0.72);
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(20,34,45,.07);
}
.contact-form label { display: grid; gap: 8px; margin-bottom: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(20,34,45,.1);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary-deep); }
.site-footer {
  background: #101b24;
  color: rgba(255,255,255,.88);
  padding: 22px 0 90px;
}
.footer-inner { text-align: center; }
.footer-inner a { color: var(--primary); }
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #28d366, #1ca452);
  box-shadow: 0 18px 28px rgba(28,164,82,.3);
  z-index: 40;
}
.whatsapp-float svg { width: 30px; fill: white; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,16,24,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: min(900px, 100%);
  max-height: 85vh;
  border-radius: 20px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--white);
  background: rgba(255,255,255,.14);
  cursor: pointer;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 980px) {
  .grid-2, .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .hero { min-height: 82vh; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .card-glass, .info-card, .social-card, .contact-form, .service-card, .feature-item { padding: 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-buttons, .form-row { flex-direction: column; }
  .brand img { width: 52px; height: 52px; }
  .whatsapp-float { width: 56px; height: 56px; }
}
