/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #2c2c2c;
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.5rem;
  margin: auto;
  flex-wrap: wrap;
  width: 100%;
}


header h1 {
  font-size: 2.2rem;
  margin-left: 10rem;
  color: #1a1a1a;
  flex: 1;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 10rem;
  gap: 0.5rem;
}

nav a, p {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #000;
}

nav a.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

nav a.whatsapp img {
  width: 24px;
  height: 24px;
}

/* Efecto hover para que el icono se agrande un poco */
nav a.whatsapp:hover {
  transform: scale(1.1);
}

/* Hero */
.paralax {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: url('assets/carretera.png') center/cover no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.paralax2 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: url('assets/bambino2.png') center/cover no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.paralax3 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: url('assets/carretera2.png') center/cover no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.paralax4 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: url('assets/carretera3.png') center/cover no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.hero {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  text-align: center;
  border-radius: 6px;
}

.hero h2 {
  font-size: 2rem;
  color: #333;
}

.hero p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #666;
}

/* Ventajas */
h2 {
  text-align: center;
}

section.ventajas h2 {
  text-align: center !important;
}

.ventajas {
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  background-color: #f9f9f9;
  /* padding-top: 10px; */
  h2 {
    text-align: center;
    margin-bottom: 2rem;
}
}


.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem; 
}

.benefit {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.benefit h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.llamada {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  grid-column: span 2;
  text-align: center;
}

.llamada h3 {
  color: #333;
  margin-bottom: 0.25rem;
  padding-bottom: 0;
}

.llamada p {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 0;
}


/* Responsive: 1 tarjeta por fila en móviles */
@media (max-width: 768px) {
  .ventajas{
     padding-top: 1%;
  }
  .benefits {
    grid-template-columns: 1fr;
  }

  .llamada {
    grid-column: span 1 !important;
  }
}


/* Calculadora */
#calculo {
  background-color: #ffffff;
}

#calculo h2 {
  text-align: center;
  margin-bottom: 2rem;
}

#formulario-calculo {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}

#formulario-calculo label {
  font-weight: 600;
  color: #444;
}

#formulario-calculo input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#calculo p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-left: 4px solid #797a7b;
  border-radius: 4px;
  font-style: italic;
  color: #333;
  line-height: 1.5;
}


/* Opiniones */
#opiniones {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

#opiniones h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Contenedor de opiniones */
.opiniones-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Tarjeta de opinión */
.opinion-card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  font-style: italic;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opinion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.opinion-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.opinion-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive: 1 tarjeta por fila en móviles */
@media (max-width: 768px) {
  .opiniones-container {
    grid-template-columns: 1fr;
  }
}

/* Contacto */
#contacto {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

#contacto h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-grid label {
  font-weight: 600;
}

.form-grid input,
.form-grid textarea {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

button[type="submit"] {
  background-color: #343a40;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #23272b;
}

/* Horarios y redes */
#horarios {
  background-color: #f9f9f9;
  border-top: 1px solid #dee2e6;
  padding: 3rem 1rem;
  text-align: center;
}

#horarios h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Lista de horarios */
.lista-horarios {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem auto;
  max-width: 400px;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

/* Redes sociales */
#horarios {
  background-color: #f9f9f9;
  border-top: 1px solid #dee2e6;
  padding: 3rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap; /* para adaptarse en móviles */
}

#horarios h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Horarios y redes */
#horarios {
  background-color: #f9f9f9;
  border-top: 1px solid #dee2e6;
  padding: 3rem 3rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.horarios-contenedor {
  text-align: left;
}

.horarios-contenedor h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.lista-horarios {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

/* Redes sociales verticales */
.redes-sociales {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.redes-sociales img {
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.redes-sociales img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  #horarios {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .redes-sociales {
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
    align-self: center;
  }
}

/* Footer */
footer {
  width: 100%;
  background-color: #f9f9f9; /* Un fondo claro y discreto */
  border-top: 1px solid #dee2e6;
  padding: 1rem 3rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  box-sizing: border-box;
  position: relative;
  bottom: 0;
  left: 0;
}


/* ----------------------------- */
/* MEDIA QUERIES */
/* ----------------------------- */

@media (max-width: 992px) {
  header h1 {
    font-size: 2rem;
  }

  .hero {
  background-color: rgba(255, 255, 255, 0.40);
}

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    color: black;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
  }
}

@media (max-width: 768px) {
  .paralax {
    height: 220px;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  section,
  header,
  footer {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}

/* --------------------------- */
/* MEDIA QUERIES MÓVILES      */
/* --------------------------- */

@media (max-width: 576px) {
  header {
    padding: 0;
    justify-content: center;
  }

  header h1 {
    margin-left: 0;
    font-size: 1.5rem;
    text-align: center;
  }

  nav {
    align-items: center;
    margin-right: 0;
    gap: 0.25rem;
  }

  nav a,
  nav p {
    font-size: 0.85rem;
    text-align: center;
  }

  /* Paralax fijo visible */
  .paralax,
  .paralax2,
  .paralax3,
  .paralax4 {
    height: auto;
    min-height: 200px;
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
  }

  .hero {
    padding: 1rem;
    border-radius: 0;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 1rem;
  }
}


@media (max-width: 360px) {
  header h1 {
    font-size: 1.2rem;
  }

  nav a,
  nav p {
    font-size: 0.8rem;
  }

  .paralax,
  .paralax2,
  .paralax3,
  .paralax4 {
    min-height: 180px;
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

}
