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

:root {
  --blue:    #0a66c2;
  --blue-dk: #084e96;
  --dark:    #0f1117;
  --dark2:   #1a1d27;
  --dark3:   #23263a;
  --light:   #f4f6fb;
  --muted:   #8892a4;
  --white:   #ffffff;
  --accent:  #00c2ff;
  --radius:  10px;
  --gap:     2rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 11, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.3s;
}

nav.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(10, 11, 17, 0.97);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.4rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--white);
}
.nav-logo span { color: var(--accent); }
.nav-logo-img { height: 36px; width: auto; }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 0.5rem 1.25rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-dk); }

.nav-cta-wa {
  background: #25d366;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-cta-wa:hover { background: #1ebe5d; }

/* hamburger */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 57px; left: 0; right: 0;
  background: rgba(10, 11, 17, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  flex-direction: column; gap: 1.25rem;
  z-index: 99;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1rem; font-weight: 600; color: var(--muted);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--white); }

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0a2340 0%, var(--dark) 70%);
  position: relative; overflow: hidden;
}

#inicio::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a66c2' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,194,255,0.12); color: var(--accent);
  border: 1px solid rgba(0,194,255,0.3);
  padding: 0.3rem 0.85rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 800px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.15rem; color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  background: var(--blue); color: var(--white);
  padding: 0.8rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-2px); }

.btn-wa {
  background: #25d366; color: var(--white);
  padding: 0.8rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.2); color: var(--white);
  padding: 0.8rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  margin-top: 4rem;
  display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center;
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── SECTIONS SHARED ── */
section { padding: 5rem 1.5rem; }

.section-inner {
  max-width: 1100px; margin: 0 auto;
}

.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.2;
  max-width: 600px;
}

.section-desc {
  margin-top: 0.75rem;
  color: var(--muted); font-size: 1rem;
  max-width: 560px;
}

/* ── SCROLL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SERVICES ── */
#servicios { background: var(--dark2); }

.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: rgba(0,194,255,0.4);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(10,102,194,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}

.service-name {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem;
}
.service-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── ABOUT ── */
#nosotros { background: var(--dark); }

.about-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

.values {
  margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

.value-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; font-weight: 500;
}
.value-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.about-highlights {
  display: flex; flex-direction: column; gap: 1rem;
}

.highlight-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.highlight-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.highlight-card p { font-size: 0.85rem; color: var(--muted); }

/* ── TESTIMONIAL ── */
#testimonios { background: var(--dark); }

.testimonials-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 820px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 0.75rem; left: 1.25rem;
  font-size: 3.5rem; color: var(--blue); opacity: 0.25;
  line-height: 1; font-family: Georgia, serif;
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
}

.testimonial-text {
  font-size: 0.95rem; font-style: italic; color: #cdd2dc;
  position: relative; z-index: 1; flex: 1;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-author {
  font-size: 0.8rem; font-weight: 700; color: var(--white);
}

/* ── CONTACT ── */
#contacto { background: var(--dark2); }

.contact-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
}

.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(10,102,194,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.contact-info h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.2rem; }
.contact-info p, .contact-info a { font-size: 0.95rem; font-weight: 500; color: var(--white); }
.contact-info a:hover { color: var(--accent); }

.hours-table { margin-top: 0; }
.hours-table h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--muted); }
.hours-row .time { font-weight: 600; }

.social-links {
  margin-top: 2rem;
  display: flex; gap: 1rem;
}
.social-link {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: border-color 0.2s, background 0.2s;
}
.social-link:hover { border-color: var(--accent); background: rgba(0,194,255,0.08); }

/* ── SERVICES CTA ── */
.services-cta {
  margin-top: 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.75rem 2rem;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
}
.services-cta p { color: var(--muted); font-size: 0.95rem; }

/* ── SOCIAL FLOAT ── */
.social-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 150;
  display: flex; flex-direction: column; gap: 0.6rem;
  align-items: center;
}

.social-float-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.social-float-btn:hover { transform: scale(1.12); }

.social-float-fb  { background: #1877f2; }
.social-float-fb:hover  { box-shadow: 0 5px 18px rgba(24,119,242,0.5); }

.social-float-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-float-ig:hover { box-shadow: 0 5px 18px rgba(214,36,159,0.45); }

.social-float-x   { background: #000; border: 1px solid rgba(255,255,255,0.15); }
.social-float-x:hover   { box-shadow: 0 5px 18px rgba(255,255,255,0.12); }

/* ── CONTACT: WA icon ── */
.contact-icon-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

/* ── SOCIAL MEDIA SECTION ── */
#redes { background: var(--dark2); }

.social-cards {
  margin-top: 2.5rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.social-card {
  flex: 1; min-width: 180px;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.social-card:hover {
  border-color: rgba(0,194,255,0.4);
  transform: translateY(-4px);
}
.social-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(10,102,194,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 0.5rem;
}
.social-card-name { font-size: 0.95rem; font-weight: 700; }
.social-card-handle { font-size: 0.85rem; color: var(--muted); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--dark3);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.85rem; color: var(--muted); max-width: 700px; }
.cookie-btn {
  background: var(--blue); color: var(--white);
  border: none; padding: 0.5rem 1.5rem;
  border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.cookie-btn:hover { background: var(--blue-dk); }

/* ── FOOTER ── */
footer {
  background: #080a10;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; }
.footer-logo span { color: var(--accent); }
footer p { font-size: 0.8rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero-stats { gap: 2rem; }
}
