/* =========================================================
VARIABLES Y RESET
========================================================= */
:root {
  --color-primary: #0056b3;
  --color-secondary: #f39c12;
  --color-text: #333333;
  --color-bg-light: #f8f9fa;
  --color-white: #ffffff;
  --whatsapp-green: #25D366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  line-height: 1.6;
}

/* =========================================================
UTILIDADES Y CONTENEDOR
========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

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

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
}

.btn-large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* =========================================================
HEADER / NAVEGACIÓN
========================================================= */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: 143px;
  object-fit: contain;
  display: block;
}

.company-name {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.company-address{
  color: var(--color-primary);
  font-size: 0.60rem;
  font-weight: 550;
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tagline {
  font-size: 0.85rem;
  color: #c97b0a;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--color-primary);
  background: none;
  border: none;
}

/* =========================================================
SECCIONES GENERALES
========================================================= */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 40px;
}

/* HERO OPTIMIZADO */
.hero {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto; /* 3 filas: contenido, imagen, botón */
  gap: 50px;
  align-items: center;
}

.hero-content {
  grid-column: 1;
  grid-row: 1 / 3; /* Ocupa la primera y segunda fila a la izquierda */
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 30px;
}

.hero-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  aspect-ratio: 651 / 389;
  grid-column: 2;
  grid-row: 1 / 3; /* La imagen ocupa la primera y segunda fila a la derecha */
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón debajo de todo, centrado */
.hero-actions {
  grid-column: 1 / -1; /* Ocupa todas las columnas */
  grid-row: 3; /* Tercera fila */
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

/* BENEFICIOS */
.benefits {
  padding: 60px 0;
  background-color: var(--color-white);
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.benefit-card {
  background: var(--color-bg-light);
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card .icon {
  color: var(--color-secondary);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.benefit-card h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* EQUIPOS */
.equipos {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

.equipos-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.equipos-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  aspect-ratio: 651 / 884;
}

.equipos-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.precios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.precio-card {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.precio-card:hover {
  transform: translateY(-5px);
}

.precio-btu { font-size: 1rem; font-weight: 600; margin-bottom: 8px; opacity: 0.9; }
.precio-valor { font-size: 1.5rem; font-weight: 800; color: #ffd700; margin-bottom: 8px; }
.precio-m2 { font-size: 0.85rem; opacity: 0.9; }

.cta-container { text-align: center; }

/* CONTACTO Y MAPA */
.contact-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-info h3 { color: var(--color-primary); margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; font-size: 1.05rem; }
.contact-info a { color: var(--color-primary); font-weight: 600; }

.map-container {
  min-height: 420px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background-color: #e9ecef;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  border: 0;
}

/* FOOTER */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.footer-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.footer-info p {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: auto;
  height: 70px;
  display: block;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-white);
  transition: transform 0.3s;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--color-secondary);
  /*transform: scale(1.1);*/
 transform: translateY(-2px);
}

.social-links img,
.social-links svg {
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--whatsapp-green);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2000;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =========================================================
RESPONSIVE - TABLET (768px y menor)
========================================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    gap: 15px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
    text-align: center;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-image {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
  }

  .equipos-container,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .precios-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .map-container {
    min-height: 300px;
  }

  .map-container iframe {
    min-height: 300px;
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }
}

/* =========================================================
RESPONSIVE - MÓVIL (700px y menor)
========================================================= */
@media (max-width: 700px) {
  .navbar {
    justify-content: space-between;
  }

  .logo-container {
    order: 1;
  }

  .menu-toggle {
    order: 2;
  }

  .nav-links {
    order: 3;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }
}

/* =========================================================
RESPONSIVE - MÓVIL PEQUEÑO (480px y menor)
========================================================= */
@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .logo-img {
    height: 40px;
    width: 114px;
  }

  .company-name {
    font-size: 0.75rem;
  }

  .precios-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
