:root {
  --primary: #0b3a5f; /* deep navy */
  --secondary: #1f6feb; /* elegant blue */
  --accent: #ff8c42; /* orange accent */
  --dark: #0a0f1a; /* bluish dark */
  --light: #f5f7f7;
  --text: #0d1b2a;
  --muted: #7b8a9a;
  --card: #0e1b2a;
  --glass: rgba(10, 15, 26, 0.5);
}

* { box-sizing: border-box; }

html, body { height: 100%; max-width: 100%;}

body {
  margin: 0;
  background: var(--dark);
  color: var(--light);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(11,31,30,0.85), rgba(11,31,30,0.4) 60%, transparent);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo img { width: 40px; height: 40px; filter: drop-shadow(0 2px 12px rgba(0,0,0,.35)); }
.logo span { letter-spacing: .3px; }

.main-nav ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; }
.main-nav a { padding: 8px 10px; border-radius: 8px; color: var(--light); opacity: .9; transition: all .25s ease; }
.main-nav a:hover { background: rgba(31,111,235,.12); color: white; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: transparent; border: 0; width: 40px; height: 40px; padding: 0; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #e9f3f2; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer styles on mobile */
@media (max-width: 900px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100dvh; width: min(82vw, 360px); background: rgba(10,15,26,.96); backdrop-filter: blur(6px); border-left: 1px solid rgba(255,255,255,.08); transform: translateX(100%); transition: transform .3s ease; z-index: 140; padding: 80px 18px 18px; }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .main-nav a { display: block; padding: 12px 14px; font-size: 1.05rem; }
  .menu-open .main-nav { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 130; }
  .menu-backdrop[hidden] { display: none; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; box-shadow: 0 8px 24px rgba(31,111,235,.25); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(31,111,235,.35); }
.btn-outline { border: 2px solid rgba(255,140,66,.65); color: var(--accent); background: transparent; }
.btn-outline:hover { background: rgba(244,180,0,.12); }

.hero { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: url('../images/Background.jpg') center/cover no-repeat fixed; transform: scale(1.05); filter: saturate(1.05) brightness(.9) contrast(1.05); }
.hero-overlay { position: absolute; inset: 0; background:
  radial-gradient(1200px 600px at 70% 10%, rgba(31,111,235,.22), transparent 60%),
  linear-gradient(180deg, rgba(10,15,26,.78), rgba(10,15,26,.34) 40%, rgba(10,15,26,.9)); }
.hero-content { position: relative; text-align: center; padding: 60px 0; }
.hero .title { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 10px; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.hero .subtitle { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 820px; margin: 0 auto 24px; color: #e9f3f2; opacity: .95; }
.cta { display: flex; gap: 12px; justify-content: center; }

.scroll-indicator { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; display: grid; place-items: start; padding: 8px; opacity: .85; }
.scroll-indicator span { width: 6px; height: 8px; background: #fff; border-radius: 3px; animation: scroll 1.6s infinite ease-in-out; }

@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(16px); opacity: .1; } 100% { transform: translateY(0); opacity: 1; } }

.section { padding: 80px 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.02)); }
.center { text-align: center; }
.lead { color: #d5e6e4; opacity: .9; max-width: 760px; margin: 8px auto 0; }


.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.features { margin: 18px 0 0; padding-left: 18px; color: #d0e1df; }
.features li { margin: 6px 0; }
.about-card { background: linear-gradient(180deg, rgba(31,111,235,.12), rgba(11,58,95,.18)); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.about-card .badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #1b1b1b; font-weight: 700; padding: 6px 10px; border-radius: 12px; font-size: .8rem; }
.about-card img { border-radius: 8px; aspect-ratio: 16 / 12; object-fit: cover; background: rgba(0,0,0,.2); }
.about {
  font-size: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 80%;
}

.services { 
  background: linear-gradient(180deg, rgba(14,27,42,1), rgba(10,15,26,1)); 
  height: auto; 
  display: grid; 
  align-items: center; 
  padding: 20px; 
  box-shadow: 0 8px 24px rgba(0,0,0,.25); 
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; 
}
.services .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 80%;
}

@media (max-width: 640px) {
  .services .container { width: 85%; margin: 0 auto; }
  .services-grid { gap: 18px; }
  .service-card, .services-media { width: 100%; max-width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .card .link { display: inline-block; padding: 10px 12px; border-radius: 10px; background: rgba(31,111,235,.12); text-align: center; width: 100%; }
}

.card { 
  background: var(--card); 
  border: 1px solid rgba(255,255,255,.06); 
  border-radius: 16px; 
  padding: 20px; 
  box-shadow: 0 8px 24px rgba(0,0,0,.25); 
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; 
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.35); border-color: rgba(31,111,235,.45); }
.card h3 { margin: 0 0 6px; }
.card .link { color: var(--secondary); font-weight: 600; }

.contact-form { background: linear-gradient(180deg, rgba(31,111,235,.08), rgba(31,111,235,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: #e6f2f1; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #eaf7f6; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input::placeholder, .field textarea::placeholder { color: #b9d1cf; }
.field input:focus, .field textarea:focus { border-color: rgba(31,111,235,.75); box-shadow: 0 0 0 4px rgba(31,111,235,.18); background: rgba(255,255,255,.08); }
.span-2 { grid-column: span 2; }
form .btn-primary { margin-top: 22px; }
.form-note { margin-top: 8px; color: #cfe2df; opacity: .85; font-size: .9rem; }

.site-footer { margin-top: 28px; background: #171a20; border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid rgba(255,140,66,.18); }
.footer-col h4 { margin: 0 0 10px; font-size: .95rem; color: var(--accent); text-transform: uppercase; letter-spacing: .6px; }
.footer-col p { color: #c7d3e0; margin: 6px 0 12px; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: #cfd7e4; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; align-items: center; }
.footer-socials a { width: 32px; height: 32px; display: grid; place-items: center; background: rgba(255,140,66,.08); border: 1px solid rgba(255,140,66,.35); border-radius: 8px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.footer-socials a:hover { transform: translateY(-2px); background: rgba(255,140,66,.2); border-color: rgba(255,140,66,.8); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 18px; color: #aeb9c7; border-top: 1px solid rgba(255,140,66,.18); }
.footer-legal { display: inline-flex; gap: 10px; align-items: center; }
.footer-legal a { color: #aeb9c7; }
.footer-legal a:hover { color: var(--accent); }

/* Footer CTA */
.footer-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #1b1b1b; font-weight: 700; border: 1px solid rgba(0,0,0,.05); box-shadow: 0 6px 18px rgba(255,140,66,.25); }
.whatsapp-fab { position: fixed; right: 16px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 120; border: 1px solid rgba(255,255,255,.25); outline: 4px solid rgba(0,0,0,.06); line-height: 0; }
.footer-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Footer responsive */
@media (max-width: 900px) {
  /* Ancho y apilado para WHY y SERVICES */
  .why .container, .services .container { width: 85%; margin: 0 auto; }
  .why .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: 1fr; justify-items: stretch; }
  .service-card, .services-media { width: 100%; max-width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0; }
  .footer-socials a { width: 36px; height: 36px; }
}
@media (max-width: 640px) {
  /* Refuerzo en móvil pequeño */
  .why .container, .services .container { width: 85%; margin: 0 auto; }
  .why .grid-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
  .footer-col { text-align: center; }
  .footer-col .logo { justify-content: center; }
  .footer-links { justify-items: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

/* Services layout */
.services-grid { display: grid; align-items: start; gap: 28px; grid-template-columns: 1fr minmax(360px, 420px) 1fr; }
.service-card { width: 100%; max-width: 1080px; }
.services-media { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 44px rgba(0,0,0,.4); }
.services-media img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 10; transform: scale(1.02); transition: transform .5s ease; }
.services-media:hover img { transform: scale(1.05); }

/* Plan accordions */
.plan-accordion { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px 12px; background: rgba(255,255,255,.03); margin: 10px 0; }
.plan-accordion summary { cursor: pointer; font-weight: 700; color: #e6f2f1; list-style: none; }
.plan-accordion[open] { background: rgba(255,255,255,.05); }
.plan-accordion summary::-webkit-details-marker { display: none; }

/* Services responsive fix (placed after base to win cascade) */
@media (max-width: 900px) {
  .services .container { width: 85%; margin:  auto; }
  .services-grid { display: block !important; grid-template-columns: 1fr !important; gap: 22px; }
  .service-card, .services-media { width: 100%; max-width: 100%; margin-bottom: 20px;}
}
@media (max-width: 640px) {
  .services .container { width: 85%; margin: 0 auto; }
  .services-grid { display: block !important; grid-template-columns: 1fr !important; gap: 18px; }
}

/* Reviews */
.reviews { background: linear-gradient(180deg, rgba(14,22,33,.5), rgba(14,22,33,.2)); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.review-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.review-card .stars { color: #ffd166; letter-spacing: 2px; margin-bottom: 8px; }
.review-card .author { display: block; margin-top: 8px; color: #c7d3e0; font-weight: 600; }

/* Language Switcher */
.lang-switch { display: inline-flex; gap: 8px; align-items: center; margin-left: 14px; }
.lang-btn { background: transparent; color: #d8e6ff; border: 1px solid rgba(255,255,255,.14); padding: 6px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: all .2s ease; }
.lang-btn:hover { background: rgba(31,111,235,.12); }
.lang-btn.active { background: linear-gradient(135deg, var(--secondary), var(--primary)); border-color: transparent; color: #fff; }

/* Gallery */
.gallery-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/10; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.video-thumb { position: relative; }
.play-badge { position: absolute; inset: auto auto 10px 10px; background: rgba(0,0,0,.55); color: #fff; padding: 8px 10px; border-radius: 999px; font-weight: 700; border: 1px solid rgba(255,255,255,.25); }

/* Lightbox */
.lightbox[aria-hidden="true"] { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(6,10,18,.85); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; }
.lightbox-inner { position: relative; width: min(1100px, 92%); aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-inner img, .lightbox-inner iframe, .lightbox-inner video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; top: 12px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 8px 10px; border-radius: 10px; cursor: pointer; backdrop-filter: blur(4px); }
.lightbox-close { right: 12px; font-size: 22px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 22px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Info card and socials */
.info-card { background: linear-gradient(180deg, rgba(31,111,235,.08), rgba(31,111,235,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.social-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.social-links a { padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d7e3ff; transition: all .2s ease; }
.social-links a:hover { border-color: rgba(31,111,235,.6); background: rgba(31,111,235,.12); }