/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #000;
  /* Fondo base negro para evitar flash blanco */
}

/* VARIABLES DE COLOR (ACCESIBILIDAD MEJORADA) */
:root {
  /* Verde oscurecido para cumplir ratio 4.5:1 */
  --brand-green: #0b6b37;
  --brand-green-hover: #084f28;
  --text-dark: #111;
  --text-gray: #555;
  --white: #fff;

  /* Nuevos colores para botones estilo intro y contraste fuerte */
  --btn-whatsapp: #005c4b;
  --btn-whatsapp-hover: #004639;
  --btn-call: #1f2544;
  /* Azul oscuro estilo remolque */
  --btn-call-hover: #151930;
}

/* TIPOGRAFÍA */
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* LAYOUT UTILS */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

/* HEADER & NAV MEJORADO */
#header {
  background: rgba(0, 0, 0, 0.85);
  /* Semitransparente */
  backdrop-filter: blur(10px);
  /* Efecto cristal moderno */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Línea sutil */
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
  height: 60px;
}

#header .nav-container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 5px;
}

.nav-menu a {
  color: var(--white);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Efecto subrayado animado en enlaces */
.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--brand-green);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: var(--brand-green);
}

.nav-menu a:hover::after {
  width: 80%;
}

/* Botón Llamar en Header */
.header-cta {
  background-color: var(--brand-green);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-cta:hover {
  background-color: var(--brand-green-hover);
  transform: scale(1.05);
}

/* MENÚ MÓVIL (Sin Javascript) */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* INTRO SECTION - REDISEÑADO */
#intro {
  height: 100vh;
  width: 100%;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
  /* Compensa el header fijo */
}

.intro-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  /* Oscurecido para imitar la referencia y mejorar contraste */
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge Superior Intro */
.badge-top {
  background-color: var(--btn-whatsapp);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: clamp(12px, 2.5vw, 15px);
  font-weight: 700;
  margin-bottom: 25px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Textos Intro */
.intro-content h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.intro-desc {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 650px;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Botones de Acción Intro */
.intro-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .intro-actions {
    flex-direction: row;
    max-width: 600px;
    justify-content: center;
  }
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 25px;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-cta:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.btn-cta svg {
  fill: currentColor;
}

.btn-call {
  background-color: var(--btn-call);
  border: 2px solid var(--btn-call);
}

.btn-wp {
  background-color: var(--btn-whatsapp);
  border: 2px solid var(--btn-whatsapp);
}

.mp-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

/* BOTONES FLOTANTES */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.floating-call {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: var(--btn-call);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.floating-call:hover {
  transform: scale(1.1);
}

/* SECCIONES GENERALES */
#about,
#services,
#contact,
#cobertura {
  padding: 80px 0;
  background: var(--white);
}

#services,
#contact {
  background: #f9f9f9;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  width: 100%;
}

/* Actualizado a H2 para el SEO semántico */
.section-header h2 {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-gray);
  font-style: italic;
  padding: 0 15px;
}

/* ABOUT & CARDS */
.about-col,
.contact-col {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
  flex: 1 1 300px;
  max-width: 380px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.about-col:hover,
.contact-col:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.about-col .img-container {
  width: 100%;
  aspect-ratio: 670 / 393;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}

.about-col .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Actualizado a H3 para el SEO semántico */
.about-col h3 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: var(--text-dark);
  text-align: center;
}

.about-col p {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-dark);
  text-align: center;
  flex-grow: 1;
}

/* COBERTURA (ZONAS) */
.grid-cobertura {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 900px;
}

/* Actualizado a H3 para el SEO semántico */
.cobertura-col h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--brand-green);
  display: inline-block;
}

.zone-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.zone-btn {
  background: var(--white);
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  flex: 1 1 auto;
  text-align: center;
}

.zone-btn:hover,
.zone-btn:focus {
  background: var(--brand-green);
  color: var(--white);
  outline: 2px solid var(--brand-green-hover);
}

/* SERVICIOS */
.service-item .img-container {
  height: 180px;
  background: transparent;
}

.service-icon img {
  width: 128px !important;
  height: 128px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* CONTACTO */
.contact-item {
  padding: 30px;
  text-align: center;
}

.contact-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.contact-item a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.contact-item a:hover {
  text-decoration: underline;
  color: var(--brand-green-hover);
}

/* FOOTER & FEATURES */
#features {
  background: #111;
  color: var(--white);
  padding: 40px 0;
}

.f-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.f-item h3 {
  font-size: 18px;
}

#footer {
  background: #000;
  color: #888;
  text-align: center;
  padding: 20px;
  font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .grid-3,
  .grid-cobertura {
    flex-direction: column;
    align-items: center;
    grid-template-columns: 1fr;
  }

  .about-col,
  .contact-col {
    width: 100%;
    max-width: 100%;
  }

  /* Lógica Menú Móvil */
  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* Ocultamos el botón en móvil, ya está en la intro */

  .nav-links-container {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
  }

  .nav-menu a {
    font-size: 16px;
    padding: 10px;
  }

  /* Animación abrir menú */
  .menu-toggle:checked~.nav-links-container {
    max-height: 400px;
    padding: 20px 0;
    border-bottom: 2px solid var(--brand-green);
  }

  /* Animación del icono de hamburguesa a cruz (X) */
  .menu-toggle:checked~.hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle:checked~.hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked~.hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* SECCIÓN DE RESEÑAS */
#reviews {
  padding: 80px 0;
  background: var(--white);
}

.review-card {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  flex: 1 1 300px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-green);
}

.review-stars {
  color: #ffc107;
  /* Color dorado para las estrellas */
  font-size: 20px;
  margin-bottom: 15px;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.review-author strong {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: var(--brand-green);
}

.review-author span {
  font-size: 12px;
  color: var(--text-gray);
}

/* ESTILOS SECCIÓN ESPECIALIDADES MEJORADA */
#especialidades {
  background-color: #fdfdfd;
  padding: 80px 0;
  border-top: 1px solid #eee;
}

.grid-tags-especiales {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.tag-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--white);
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
}

.tag-btn:hover {
  background: var(--brand-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(11, 107, 55, 0.2);
}

@media (max-width: 768px) {
  .tag-btn {
    font-size: 12px;
    padding: 8px 15px;
    flex: 1 1 40%;
    /* En móviles se ensanchan para ser más fáciles de tocar */
  }
}

/* NUEVA SECCIÓN GOOGLE CTA */
#google-cta {
  background-color: var(--btn-call);
  /* El azul oscuro de tu paleta */
  padding: 60px 0;
  color: var(--white);
  border-top: 4px solid var(--brand-green);
}

#google-cta .cta-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

#google-cta .cta-content-text {
  flex: 2;
  min-width: 300px;
}

#google-cta .cta-content-text h2 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 28px;
}

#google-cta .cta-content-text p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

#google-cta .cta-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 250px;
}

.btn-review {
  display: inline-block;
  padding: 18px 35px;
  background-color: var(--brand-green);
  color: var(--white);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
}

.btn-review:hover {
  background-color: var(--brand-green-hover);
  transform: scale(1.05);
  color: var(--white);
}

#google-cta .cta-action span {
  font-size: 14px;
  font-style: italic;
  opacity: 0.8;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
  #google-cta .cta-wrapper {
    text-align: center;
    flex-direction: column;
  }

  #google-cta .cta-content-text h2 {
    font-size: 24px;
  }
}