@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary:      #1a56db;
  --color-primary-dark: #1341b0;
  --color-accent:       #f59e0b;
  --color-dark:         #0d1117;
  --color-dark-2:       #161b22;
  --color-text:         #1f2937;
  --color-text-muted:   #6b7280;
  --color-bg:           #f9fafb;
  --color-white:        #ffffff;
  --color-border:       #e5e7eb;

  --font:          'Inter', system-ui, sans-serif;
  --section-py:    5rem;
  --container-max: 1200px;
  --radius:        12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.16);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ------ Utilidades ------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: var(--section-py) 0;
}
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.section-header--light .section-label { color: var(--color-accent); }
.section-header--light h2,
.section-header--light p { color: var(--color-white); }
.section-header--light p { opacity: .75; }

/* ------ Botones ------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 6px 20px rgba(26,86,219,.45); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--color-white); }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1rem 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(10px);
  padding: .65rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 70px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-white); }
.btn-nav {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: .55rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--color-primary-dark); }

/* Hamburguesa (móvil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.35) 50%,
    rgba(0,0,0,.7) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 1.5rem;
  max-width: 820px;
}
.hero-tagline {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .85;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(13,17,23,.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-scroll { display: none; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   STATS
============================================= */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1.75rem 3rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child { border-right: none; }
.stat-number {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}
.stat-symbol {
  font-size: clamp(1rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-accent);
  margin-left: .15rem;
}
.stat p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  max-width: 120px;
}

/* =============================================
   ABOUT
============================================= */
.about {
  background: var(--color-bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.about-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge span {
  font-size: .8rem;
  opacity: .8;
}
.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.about-text blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(26,86,219,.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text);
  font-weight: 500;
}

/* =============================================
   SERVICES
============================================= */
.services {
  background: var(--color-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.service-icon {
  width: 52px; height: 52px;
  background: rgba(26,86,219,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 28px; height: 28px;
  stroke: var(--color-primary);
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: .92rem;
  line-height: 1.6;
}

/* =============================================
   GALLERY
============================================= */
.gallery {
  background: var(--color-bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,86,219,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,.7);
  line-height: 1;
  transition: color .2s;
}
.lightbox-close:hover { color: var(--color-white); }

/* =============================================
   WHY
============================================= */
.why {
  background: var(--color-dark);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.why-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background .25s, border-color .25s;
}
.why-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(26,86,219,.4);
}
.why-icon {
  width: 48px; height: 48px;
  background: rgba(26,86,219,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.why-icon svg {
  width: 24px; height: 24px;
  stroke: var(--color-primary);
}
.why-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: .5rem;
}
.why-item p {
  font-size: .92rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* =============================================
   CONTACT
============================================= */
.contact {
  background: var(--color-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.contact-text p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.contact-list svg {
  width: 20px; height: 20px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}
.contact-list a, .contact-list span {
  color: var(--color-text);
  font-weight: 500;
  transition: color .2s;
}
.contact-list a:hover { color: var(--color-primary); }

/* Formulario */
.contact-form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

/* =============================================
   FOOTER
============================================= */
.footer {
  background: var(--color-dark-2);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand img {
  height: 100px;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  max-width: 260px;
  line-height: 1.6;
}
.footer-links h4,
.footer-social h4 {
  color: var(--color-white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-links li a {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  transition: color .2s;
}
.footer-links li a:hover { color: var(--color-white); }
.social-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  transition: color .2s;
}
.social-links a:hover { color: var(--color-white); }
.social-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
}
.footer-bottom p {
  color: rgba(255,255,255,.3);
  font-size: .83rem;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    bottom: 0;
    width: 70%;
    max-width: 320px;
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .3s ease;
    z-index: 800;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { right: 0; bottom: -1.25rem; }
  .about-img img { height: 320px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .hero-stats { align-items: stretch; }
  .stat { padding: .85rem .75rem; flex: 1; min-width: 0; }
  .stat p { font-size: .72rem; max-width: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
