/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f2ed;
  color: #333;
  min-height: 100vh;
  padding-top: 70px;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== NUEVO: Uniformidad de separación entre secciones ========== */

/* Header y menú */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #f0ece2;
  border-bottom: 1px solid #e6e2d9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.menu {
  list-style: none;
  display: none;
}

.menu-item a {
  text-decoration: none;
  color: #FF3500;
  font-weight: 600;
  font-size: 16px;
  padding: 20px 10px;
  display: inline-block;
}

.menu-item.active a,
.menu-item a:hover {
  background-color: #FF3500;
  color: #fff;
  border-radius: 4px;
}

/* Logo */
.logo-container img {
  height: 70px;
  object-fit: contain;
}

/* Responsive menú hamburguesa */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
  border: none;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background-color: #FF3500;
  border-radius: 2px;
}

/* Responsive menu */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: fixed;
    top: 70px;
    left: 0;
    width: 220px;
    height: calc(100vh - 70px);
    padding-top: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow-y: auto;
  }

  .menu.open {
    display: flex;
  }

  .menu-item a {
    padding: 15px 20px;
    font-size: 18px;
    color: #FF3500;
    border-bottom: 1px solid #eee;
  }

  .menu-item.active a,
  .menu-item a:hover {
    background-color: #FF3500;
    color: #fff;
    border-radius: 0;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  @media (max-width: 768px) {
  .menu-toggle {
    top: 15px;
    right: 15px;
    left: auto;
  }
}

  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 30px;
    box-shadow: none;
    background: none;
    height: auto;
    padding: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('img/banner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  color: white;
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 50px;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem; /* o ajusta según necesidad */
    line-height: 1.3;
    text-align: center;
    padding: 0 15px; /* margen interno para que no pegue al borde */
    word-wrap: break-word;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
    padding: 0 15px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 15px 50px 15px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .hero-texto {
  min-width: 100px;
  width: 350px;
  }
}

.hero-texto h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 80px;
  color: #FF3500;
}

.hero-texto p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
  text-align: center;
}

.hero-texto p {
  font-size: 1rem;
  margin-bottom: 30px;
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: 30px;
  }

  .hero-texto p {
    font-size: 0.95rem;
  }
}

section {
  margin-bottom: 80px;
}

/* Header y menú */
.header {
  background-color: #f4f2ed;
  border-bottom: 1px solid #e6e2d9;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.menu-item a {
  text-decoration: none;
  color: #FF3500;
  font-weight: 600;
  font-size: 16px;
  padding: 20px 10px;
  display: inline-block;
}

.menu-item.active a,
.menu-item a:hover {
  background-color: #FF3500;
  color: #fff;
  border-radius: 4px;
}

/* Logo */
.logo-container img {
  height: 70px;
  object-fit: contain;
}



.destacado {
  color: #FF3500;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Botón */
.btn-contacto {
  display: inline-block;
  background-color: #FF3500;
  color: #fff;
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.6s ease;
}

.btn-contacto:hover {
  background-color: #a53e00;
}

/* Sección blanca */
.section-blanca {
  background-color: #fff;
  padding: 60px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Sección Nosotros */
#nosotros {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

#nosotros .texto-nosotros {
  flex: 1 1 400px;
  color: #333;
}

#nosotros .texto-nosotros h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #FF3500;
  font-weight: 900;
}

#nosotros .texto-nosotros h3 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #FF3500;
  font-weight: 700;
  text-transform: uppercase;
}

#nosotros .texto-nosotros p {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

#nosotros .imagen-nosotros {
  flex: 1 1 400px;
}

#nosotros .imagen-nosotros img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.titulo-seccion {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.titulo-seccion h2 {
  font-size: 2.1rem;
  text-align: center;
  color: #FF3500;
  font-weight: 900;
  margin-bottom: 20px;
}

.descripcion-seccion {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.grid-imagenes-causa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.grid-imagenes-causa img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-imagenes-causa img:hover {
  transform: scale(1.03);
}

/* Servicios */
#servicios {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#servicios h2 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 20px;
  color: #FF3500;
  font-weight: 900;
}

.servicios-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  user-select: none;
  position: relative;
}

.servicio-imagenes {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}



.servicio-imagenes img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  border-radius: 8px;
}

.servicio-imagenes img.activo {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  display: block;
}

.servicio-info h3.titulo-servicio {
  font-size: 1.8rem;
  color: #FF3500;
  font-weight: 900;
  margin-bottom: 10px;
}

.servicio-info p.descripcion-servicio {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.controles-servicios {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 10;
}

#prevServicio, #nextServicio {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 53, 0, 0.7);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}


#prevServicio { left: 8px; }
#nextServicio { right: 8px; }

#prevServicio:hover, #nextServicio:hover {
  background-color: rgba(165, 62, 0, 0.9);
}

.indicadores {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  z-index: 20;
}

.indicador {
  width: 15px;
  height: 15px;
  background-color: #e6e2d9;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicador.activo {
  background-color: #FF3500;
}

/* FAQ */
#faq {
  margin-bottom: 0px;
}

.faq {
  padding: 60px 0;
}

.faq .titulo-seccion {
  font-size: 36px;
  color: #FF3500;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid #ccc;
  margin-bottom: 15px;
}

.faq-pregunta {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #FF3500;
  cursor: pointer;
  position: relative;
}

.faq-pregunta::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-pregunta::after {
  content: '-';
}

.faq-respuesta {
  display: none;
  padding: 0 15px 15px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.faq-item.active .faq-respuesta {
  display: block;
}

/* Contacto */

#faq {
  margin-bottom: 0px;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  justify-content: space-between;
}

.formulario-contacto {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}

.formulario-contacto button {
  padding: 12px;
  background-color: #FF3500;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario-contacto button:hover {
  background-color: #aa3e00;
}

.info-contacto {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
}

.info-contacto .datos p {
  margin: 0;
  line-height: 1.6;
}

.info-contacto .mapa iframe {
  width: 100%;
  border-radius: 6px;
}

/* Footer */
footer {
  background-color: #f4f2ed;
  padding: 30px 0;
  border-top: 1px solid #e6e2d9;
  text-align: center;
}

footer img {
  width: 120px;
  margin-bottom: 10px;
}

footer p {
  color: #333;
}

footer p:last-child {
  font-size: 14px;
}

/* Logo flotante */
.logo-flotante {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  z-index: 1000;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-flotante img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Redes sociales flotantes */
.redes-flotantes {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
}

.redes-flotantes a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: block;
  background-size: 28px 28px;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.icon-whatsapp {
  background-color: #25d366;
  background-image: url('img/whatsapp.svg');
}

.icon-facebook {
  background-color: #3b5998;
  background-image: url('img/facebook.svg');
}

.icon-instagram {
  background-color: #d6249f;
  background-image: url('img/instagram.svg');
}

.redes-flotantes a:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .servicio-imagenes {
    height: 250px;
  }

  .servicio-info h3.titulo-servicio {
    font-size: 1.4rem;
  }

  .servicio-info p.descripcion-servicio {
    font-size: 0.9rem;
  }
}

.titulo-seccion {
  font-size: 36px;
  color: #FF3500;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}