@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700;800&family=Cabin:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
  --primary:       #113e61;
  --primary-light: #1a5a8a;
  --primary-dark:  #0c2d47;
  --accent:        #111111;
  --white:         #ffffff;
  --light-bg:      #f5f7fa;
  --font-title:    'League Spartan', Arial, sans-serif;
  --font-body:     'Cabin', Georgia, serif;
  --nav-h:         70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--accent);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav[role="navigation"] {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--primary);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* Logo */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Lado derecho: links + botón WA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover  { border-bottom-color: rgba(255,255,255,0.6); }
.nav-links a.active { border-bottom-color: var(--white); }

/* Botón WhatsApp en nav */
.nav-wa {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #25D366;
  color: var(--white) !important;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border-bottom: none !important;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-wa:hover { background: #1ebe5d; border-bottom: none !important; }
.nav-wa svg { width: 16px; height: 16px; fill: white; flex-shrink: 0; }

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

/* ─── HERO — PANTALLA COMPLETA ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
}

/* overlay oscuro para contraste */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 16:9 — escala para cubrir siempre */
  width: max(100vw, calc(100vh * 16 / 9));
  height: max(100vh, calc(100vw * 9 / 16));
  border: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem;
  max-width: 800px;
}

.hero-content .greeting {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  margin-bottom: 0.5rem;
}

.hero-content .hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.85;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ─── BOTONES HERO ─── */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--white);
  transition: background 0.22s, color 0.22s, transform 0.15s;
  display: inline-block;
}

.btn-hero-solid { background: var(--white); color: var(--primary); }
.btn-hero-solid:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

.btn-hero-outline { background: transparent; color: var(--white); }
.btn-hero-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }

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

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--primary);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* ─── EMPRESA ─── */
.empresa { background: var(--white); }

.empresa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

.empresa-card {
  background: var(--light-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.empresa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(17,62,97,0.16);
}

.empresa-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.empresa-card-body { padding: 1.75rem; }

.empresa-card-body h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.empresa-card-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
}

/* ─── MARCAS ─── */
.marcas {
  background: var(--primary);
  padding: 3.5rem 2rem;
  text-align: center;
}

.marcas h2 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marcas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.marcas-list span {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  padding: 0.45rem 1.3rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.marcas-list span:hover { background: rgba(255,255,255,0.2); }

/* ─── PROMOCIONES ─── */
.promociones { background: var(--light-bg); text-align: center; }

.promo-desc {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.promo-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
}

.promo-form input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.promo-form input[type="email"]:focus { border-color: var(--primary); }

.btn-primary {
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ─── GALERÍA / PRODUCTOS ─── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: calc(var(--nav-h) + 3.5rem) 2rem 3.5rem;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

.galeria { padding: 4rem 2rem; background: var(--white); }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}

.galeria-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(17,62,97,0.22);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ─── CONTACTO ─── */
.contacto-body {
  padding: 4rem 2rem;
  background: var(--light-bg);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contacto-info h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.75rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg { width: 18px; height: 18px; fill: white; }

.info-text strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.info-text a, .info-text span { color: #444; text-decoration: none; font-size: 1rem; }
.info-text a:hover { color: var(--primary); }

.horarios {
  margin-top: 2rem;
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
}

.horarios h3 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.horarios p { color: #444; font-size: 1rem; }
.horarios strong { color: var(--primary-dark); }

.contacto-form-wrap h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17,62,97,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.map-wrap {
  max-width: 1100px;
  margin: 3rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.map-wrap iframe { display: block; }

/* ─── FOOTER — fondo blanco ─── */
footer {
  background: var(--white);
  color: #555;
  text-align: center;
  padding: 3rem 2rem 2rem;
  border-top: 2px solid var(--light-bg);
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

footer .footer-nav a {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

footer .footer-nav a:hover { color: var(--primary-light); }

footer .footer-copy {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 1rem;
}

/* ─── WHATSAPP FLOTANTE ─── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

/* ─── ANIMACIONES SCROLL ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ─── RESPONSIVE — TABLET (≤1024px) ─── */
@media (max-width: 1024px) {
  .empresa-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── RESPONSIVE — MÓVIL (≤768px) ─── */
@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  nav[role="navigation"] { padding: 0 1.25rem; }

  .nav-right {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--primary-dark);
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-right.open { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
  }

  .hamburger { display: flex; }

  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 3rem); }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-hero { width: 100%; max-width: 280px; text-align: center; }

  .empresa-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }

  .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-doble { grid-template-columns: 1fr !important; }

  .promo-form { flex-direction: column; }
  .promo-form input[type="email"] { width: 100%; }

  footer .footer-nav { gap: 1.25rem; }

  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 28px; height: 28px; }

  section { padding: 3.5rem 1.25rem; }
}

/* ─── RESPONSIVE — PEQUEÑO (≤480px) ─── */
@media (max-width: 480px) {
  .galeria-grid { grid-template-columns: 1fr; }
  .marcas-list span { font-size: 0.8rem; padding: 0.4rem 1rem; }
  .hero { min-height: 100svh; }
}
