:root {
  --blue-1: #0097e6;
  --blue-2: #0056c9;
  --orange: #ff7b00;
  --green: #57b500;
  --dark: #0c2340;
  --text: #1d2c3c;
  --muted: #5f7082;
  --bg: #f5fbff;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(4, 67, 126, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue-2);
}
.brand-mini img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.lang-btn {
  background: linear-gradient(135deg, var(--orange), #ffb100);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero {
  min-height: 100vh;
  padding-top: 72px;
  position: relative;
  background: url('assets/portada.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(3,22,41,0.72) 15%, rgba(0,119,255,0.25) 60%, rgba(255,123,0,0.18) 100%);
}
.nav {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-wrap { display: inline-flex; }
.logo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255,255,255,0.75);
}
.nav-links {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
}
.nav-links a {
  color: #fff;
  font-weight: 600;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
}
.glass-card {
  width: min(620px, 100%);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 34px;
}
.eyebrow {
  color: #fff4d6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .82rem;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
}
.hero-text {
  color: rgba(255,255,255,0.95);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ffb300);
  box-shadow: 0 12px 28px rgba(255,123,0,.32);
}
.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  box-shadow: 0 12px 28px rgba(0,86,201,.28);
}

.section {
  padding: 92px 0;
}
.section.alt {
  background: linear-gradient(180deg, #eef9ff 0%, #ffffff 100%);
}
.grid-2, .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}
.section-tag {
  display: inline-block;
  background: rgba(0,151,230,.12);
  color: var(--blue-2);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 16px;
}
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--dark);
}
.section p {
  color: var(--muted);
  line-height: 1.8;
}
.info-card, .form-card, .map-card, .service-card, .social-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.section-head {
  max-width: 740px;
  margin-bottom: 32px;
}
.cards-grid, .social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  padding: 28px;
}
.icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,151,230,.12), rgba(255,123,0,.18));
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.service-card h3, .form-card h3 {
  margin: 0 0 10px;
  color: var(--dark);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery-item {
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  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.06); }
.social-card {
  padding: 28px;
  border: 1px solid rgba(0,151,230,.08);
}
.social-name {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .86rem;
}
.social-card strong {
  display: block;
  color: var(--dark);
  line-height: 1.5;
}
.video-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.contact-list a, .contact-list p {
  background: #fff;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 0;
}
.map-card iframe {
  width: 100%;
  height: 290px;
  border: 0;
  border-radius: var(--radius);
}
.form-card {
  padding: 28px;
}
form {
  display: grid;
  gap: 14px;
}
label span {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}
input, textarea {
  width: 100%;
  border: 1px solid #d7e3ee;
  background: #f9fcff;
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 4px rgba(0,151,230,.12);
}
.form-note {
  font-size: .92rem;
  margin: 4px 0 0;
}
.footer {
  background: #0b1d35;
  color: rgba(255,255,255,.9);
  padding: 28px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a { color: #7ed6ff; }
.floating-whatsapp, .floating-call {
  position: fixed;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 40;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.floating-whatsapp {
  bottom: 20px;
  background: #25d366;
}
.floating-whatsapp svg { width: 30px; fill: #fff; }
.floating-call {
  bottom: 92px;
  background: linear-gradient(135deg, var(--orange), #ffb300);
  color: #fff;
  font-size: 1.45rem;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 14, 28, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1000px, 96vw);
  max-height: 88vh;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

@media (max-width: 980px) {
  .nav { position: static; transform: none; padding-top: 18px; flex-direction: column; gap: 16px; }
  .hero-content { padding-top: 44px; }
  .grid-2, .contact-grid, .cards-grid, .social-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-wrap iframe { min-height: 420px; }
}
@media (max-width: 700px) {
  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding: 14px 18px;
    justify-content: flex-start;
  }
  .glass-card { padding: 24px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .section { padding: 74px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .video-wrap iframe { min-height: 280px; }
  .footer-inner { flex-direction: column; }
}
