/* main.css - estilos responsivos para Acecon */

body {
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'DM Sans', sans-serif;
  color: #121315;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  color: #D52212;
}
.nav a {
  margin-left: 20px;
  font-weight: 500;
  color: #121315;
  transition: color 0.3s;
}
.nav a:hover {
  color: #D52212;
}

/* Hero */
.hero-slider2 {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-slider2 .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slider2 .slide.active {
  opacity: 1;
  z-index: 2;
}
.slide-overlay {
  background-color: rgba(31, 32, 36, 0.6); /* gris oscuro translúcido */
  color: #fff;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  padding: 30px 40px;
  border-left: 5px solid #D52212;
  max-width: 600px;
  animation: fadeIn 1s ease forwards;
}
.slide-overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #fff;
}
.slide-overlay p {
  font-size: 1.2rem;
  color: #f7f7f7;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/*fin hero*/


/* Sección Servicios */
.servicios {
  padding: 100px 20px;
  background-color: #f7f7f7;
  text-align: center;
}
.titulo-seccion {
  font-size: 36px;
  margin-bottom: 60px;
  font-weight: 700;
  color: #121315;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.servicio {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.servicio i {
  font-size: 40px;
  color: #D52212;
  margin-bottom: 20px;
}
.servicio h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #121315;
}
.servicio p {
  font-size: 15px;
  color: #666;
}
.servicio:hover {
  transform: translateY(-8px);
}

/* Sección Por qué elegirnos */
.elegirnos {
  padding: 100px 20px;
  background-color: #fff;
  text-align: center;
}

.elegirnos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.elegirnos .item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 30px 20px;
  transition: transform 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}
.elegirnos .item:hover {
  transform: translateY(-8px);
}
.elegirnos i {
  font-size: 40px;
  color: #D52212;
  margin-bottom: 20px;
}
.elegirnos h3 {
  font-size: 20px;
  color: #121315;
  margin-bottom: 10px;
}
.elegirnos p {
  font-size: 15px;
  color: #666;
}

/* Testimonios */
.testimonios {
  padding: 100px 20px;
  background-color: #1F2024;
  text-align: center;
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.testimonio {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.titulo-seccion1{
    color: whitesmoke;
}

.testimonio p {
  font-size: 16px;
  color: #444;
  font-style: italic;
  margin-bottom: 15px;
}
.testimonio h4 {
  font-size: 14px;
  font-weight: 600;
  color: #D52212;
}

/* Galería de Proyectos */
.galeria-proyectos {
  padding: 100px 20px;
  background-color: #ffffff;
  text-align: center;
}
.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.item-galeria img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.item-galeria img:hover {
  transform: scale(1.03);
}
.descripcion {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
}

.lightbox-contenido {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.cerrar, .prev, .next {
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}

.cerrar {
  top: 40px;
  right: 40px;
  font-size: 50px;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}
.galeria-slider {
  background-color: #f5f5f5;
  padding: 40px 0;
  text-align: center;
}
.galeria-slider .swiper-slide {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding-bottom: 10px;
}
.galeria-slider img {
  width: 100%;
  height: auto;
  display: block;
}
.descripcion-slider {
  padding: 10px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}
.swiper-button-next, .swiper-button-prev {
  color: #D52212;
}
.swiper-pagination-bullet-active {
  background: #D52212;
}
.galeria-slider .swiper-slide img {
  width: 100%;
  height: 350px; /* Puedes ajustar a 300px o lo que prefieras */
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid #eee;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

.modal-contenido {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/*porque elegirnos*/

.porque-elegirnos {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.porque-elegirnos .contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.porque-elegirnos .titulo-seccion {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.porque-elegirnos .subtitulo {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 40px;
}
.porque-elegirnos {
  position: relative;
  background: none;
  overflow: hidden;
}

.porque-elegirnos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assetts/fondo6.jpg') center/cover no-repeat;
  opacity: 0.4; /* solo hace transparente la imagen de fondo */
  z-index: 0;
}

/* Este asegura que el contenido esté por encima del fondo */
.porque-elegirnos .contenedor {
  position: relative;
  z-index: 2;
}



.ventajas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.ventaja{
    background-color: gainsboro;
    padding: 10px;
    border-radius: 10px;
}

.ventaja:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ventaja i {
  font-size: 2.5rem;
  color: #D52212;
  margin-bottom: 15px;
}

.ventaja h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #222;
}

.ventaja p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.experiencia {
  position: relative;
  background: url('assetts/techo.jpg') center/cover no-repeat;
  padding: 100px 20px;
  color: #fff;
  text-align: center;
}

.experiencia .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.experiencia .contenido {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}

.experiencia h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.experiencia ul {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
}

.experiencia li {
  margin-bottom: 15px;
}
.seccion-casa {
  background-color: #f5f5f5;
  padding: 100px 20px;
  position: relative;
  text-align: center;
}

.contenido-casa {
  position: relative;
  max-width: 800px;
  margin: auto;
}

.imagen-casa {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: auto;
  z-index: 1;
}

.frases {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none; /* No interfiere con clics */
}

.frase {
  color: #D52212;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.frase.superior {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}
.frase.inferior {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}
.frase.izquierda {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
}
.frase.derecha {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}
.seccion-casa {
  background-color: #f5f5f5;
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.contenido-casa {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.imagen-casa {
  width: 100%;
  max-width: 650px; /* aumentamos el tamaño */
  height: auto;
  display: block;
  margin: auto;
  z-index: 1;
  position: relative;
}

.frases {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.frase {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 15px;
  border-radius: 10px;
  color: #D52212;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
  cursor: pointer;
  pointer-events: auto;
}

.frase.visible {
  opacity: 1;
  transform: scale(1);
}

.info-hover {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 15px 20px;
  border-radius: 10px;
  max-width: 300px;
  color: #333;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: none;
  z-index: 999;
}

/* Fondo del formulario */
.fondo-contacto {
  background-color: #1f1f1f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 100px 20px;
}
.formulario-contacto {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Contenedor principal centrado con sombra */
.formulario-contacto .container {
  max-width: 800px;
  margin: auto;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2;
}

/* Título */
.formulario-contacto .titulo-seccion {
  font-size: 2rem;
  color: #D52212;
  margin-bottom: 40px;
}

/* Grupos de inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #D52212;
  outline: none;
}

/* Botón de enviar */
.btn {
  background-color: #D52212 !important;
  color: #fff !important;
  padding: 14px 30px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #a9140e !important;
}

/*footer */ 
.footer {
  background-color: #1F2024;
  color: #fff;
  padding: 60px 20px 30px;
  font-family: 'DM Sans', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #444;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer p,
.footer li {
  color: #ccc;
  font-size: 15px;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #D52212;
}

.footer-links ul,
.footer-contacto ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-contacto p i {
  margin-right: 8px;
  color: #D52212;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: #888;
}

/* Redes sociales cuadradas */
.redes-sociales {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.redes-sociales .red {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: #D52212;
  color: #fff;
  font-size: 18px;
  transition: background-color 0.3s;
}

.redes-sociales .red:hover {
  background-color: #fff;
  color: #D52212;
}

/*boton whasapp flotante*/

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5b;
}

/* estatica de razon y casas*/
.fondo-razones {
  background-image: url('../assetts/fond5.jpg');

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

.contenido-razones {
  max-width: 600px;
  margin: auto;
  background-color: rgba(255,255,255,0.85);
  padding: 40px;
  border-radius: 12px;
  color: #222;
  z-index: 2;
  position: relative;
}
.estadisticas-casas {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  padding: 60px 20px;
  background-color: #f5f5f5;
  flex-wrap: wrap;
}

.casa-contador {
  position: relative;
  width: 180px;
  height: 200px;
  background-color: #1f1f1f;
  clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}
.casa-contador:hover {
  transform: scale(1.05);
}

.casa-contador.roja {
  background-color: #D52212;
}

.casa-contador .contador {
  font-size: 40px;
  font-weight: bold;
}

.casa-contador p {
  margin-top: 10px;
  font-size: 16px;
  text-align: center;
}
.contenedor-razones-estadisticas {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}
@media (max-width: 768px) {
  .contenedor-razones-estadisticas {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .casa-contador {
    width: 90%; /* o puedes mantener 180px si prefieres */
    max-width: 280px;
  }
}

.contenido-razones {
  flex: 1 1 55%;
  background-color: rgba(255,255,255,0.85);
  padding: 40px;
  border-radius: 12px;
}

.estadisticas-casas {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background: none;
  padding: 0;
}

/*formulario*/
.formulario-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

#contactForm {
  width: 100%;
  max-width: 600px;
}


.formulario-imagen {
  flex: 1;
  text-align: center;
}

.formulario-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#contactForm {
  flex: 1;
  min-width: 300px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .formulario-contenido {
    flex-direction: column;
    text-align: center;
  }
}

/*nueva seccion creada con card de frases de calidad*/

.seccion-pilares {
  background: linear-gradient(to right, #1f2024, #2c2f36);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contenedor-pilares {
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-pilares {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.subtitulo-pilares {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: #cccccc;
}

.cards-pilares {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card-pilar {
  background-color: #ffffff10;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  width: 300px;
  border-radius: 16px;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-pilar:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
  background-color: #D52212;
}

.card-pilar:hover i {
  color: #1f2024;
}

.card-pilar:hover h3,
.card-pilar:hover p {
  color: #1f2024;
}


.card-pilar i {
  font-size: 40px;
  color: #D52212;
  margin-bottom: 20px;
}

.card-pilar h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.card-pilar p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.5;
}

/*logos de empresas*/
.logo-carrusel {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.logo-carrusel .titulo-seccion {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1f2024;
}

.logoSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.logoSwiper img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.logoSwiper img:hover {
  filter: grayscale(0%);
}

/*slider final*/
.slider-proyectos-custom {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.slider-container-custom {
  position: relative;
  height: 100%;
}

.slide-custom {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide-custom.active {
  opacity: 1;
  z-index: 1;
}

.slide-content-custom {
  position: absolute;
  bottom: 30px;
  left: 50px;
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 20px;
  border-radius: 8px;
}

.slider-controls-custom {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.slider-controls-custom span {
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 15px;
  cursor: pointer;
  pointer-events: all;
  user-select: none;
}
/*seccion llam,ada de imagenes con botones*/

.menu-categorias {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.categoria-btn {
  background-color: #1F2024;
  color: white;
  padding: 12px 20px;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.categoria-btn:hover,
.categoria-btn.active {
  background-color: #D52212;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.item-galeria img {
  width: 100%;
  height: 350px; /* o ajusta a tu gusto */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.descripcion {
  margin-top: 10px;
  font-size: 16px;
  text-align: center;
}


/* Doble línea decorativa debajo del menú */
.custom-navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(to bottom, #d52212 4px, #1f2024 4px);
}


.logo img {
  max-height: 60px;
}

.nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  color: #d52212;
}

/* Hero Slider */
.hero-slider2 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
  color: white;
  padding: 20px;
  max-width: 600px;
}

/* Textos */
.slide-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
}

.slide-overlay p {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Responsivo para tablets y móviles */
@media (max-width: 768px) {
  .slide-overlay {
    left: 0%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .slide-overlay h1 {
    font-size: 2rem;
  }

  .slide-overlay p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .slide-overlay h1 {
    font-size: 1.0rem;
  }

  .slide-overlay p {
    font-size: 0.85rem;
  }

}@media (max-width: 768px) {
  .slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .hero-slider2 {
    height: 60vh; /* Reducimos la altura también */
  }
}

@media (max-width: 480px) {
  .hero-slider2 {
    height: 50vh; /* Aún más baja en móviles */
  }
}

 
/* Servicios */
.servicios {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.servicio {
  flex: 1 1 300px;
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.servicio i {
  font-size: 40px;
  color: #d52212;
  margin-bottom: 10px;
}

/* Galería por categoría */
.menu-categorias {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.categoria-btn {
  background-color: #1f2024;
  color: white;
  padding: 12px 20px;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.categoria-btn:hover,
.categoria-btn.active {
  background-color: #d52212;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.item-galeria img {
  width: 100%;
  border-radius: 12px;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.descripcion {
  margin-top: 10px;
  font-size: 16px;
  text-align: center;
}

/* Testimonios */
.testimonios {
  background: #f1f1f1;
  padding: 60px 0;
  text-align: center;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.testimonio {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.testimonios-slider {
  background: #f9f9f9;
}

.testimonios-slider .testimonio {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.testimonios-slider .testimonio p {
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
}

.testimonios-slider .testimonio h4 {
  margin-top: 15px;
  font-weight: 600;
  color: #d52212;
}
/*hr separadpres*/
.separador-3d-full {
  border: none;
  height: 5px;
  width: 95vw; /* casi el 100% del viewport */
  margin: 40px auto;
  background: linear-gradient(to bottom, #d52212, #8f0f0f);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 4px 6px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.lightbox .cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}




@media (max-width: 480px) {
  .slide-overlay h1 {
    font-size: 1.5rem;
  }
  .nav {
    flex-direction: column;
    align-items: center;
  }
}
/* Layout base con card*/
.ventajas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.ventaja {
  flex: 1 1 45%; /* Esto permitirá 2 por fila en pantallas medianas */
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Íconos */
.ventaja i {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 10px;
}

/* Responsivo en pantallas pequeñas */
@media (max-width: 768px) {
  .ventaja {
    flex: 1 1 100%; /* Uno debajo del otro */
    text-align: center;
  }

  .ventajas {
    justify-content: center;
  }
}

/* Ajuste para que las columnas se apilen en pantallas pequeñas */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .col-6 {
    width: 100%;
  }
}
.seccion-casa {
  background-color: #f5f5f5;
  padding: 80px 20px;
  position: relative;
}

.contenido-casa {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.imagen-casa {
  width: 100%;
  display: block;
  z-index: 1;
  position: relative;
}

.punto {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #D52212;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform 0.3s;
}

.punto:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  border: none;
}

.card h6 {
  color: #D52212;
  font-weight: 600;
}

.card p {
  font-size: 15px;
  color: #333;
}

.card.resaltado {
  border: 2px solid #D52212;
  box-shadow: 0 0 15px rgba(213, 34, 18, 0.5);
}

/* Oculta la imagen en pantallas pequeñas */
@media (max-width: 768px) {
  .contenido-casa {
    display: none;
  }
}
.redes-sociales {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  
}
.redes-sociales i{
  color: black;
  
}

.redes-sociales {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.redes-sociales a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 18px;
  color: #1f2024;
  background-color: #ffffff;
  border: 2px solid #d52212;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 50px;
}

.redes-sociales a:hover {
  background-color: #d52212;
  color: #ffffff;
  transform: translateY(-2px);
}
/* Preloader - fondo */
/* Fondo del preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

/* Ocultar al cargar */
body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}

/* Contenedor del spinner + pájaro */
.preloader-circulo {
  position: relative;
  width: 120px;
  height: 120px;
}

/* Círculo giratorio */
.circulo-spinner {
  width: 100%;
  height: 100%;
  border: 8px solid #ddd;
  border-top: 8px solid #D52212;
  border-radius: 50%;
  animation: girar 1s linear infinite;
}

/* Imagen del pájaro en el centro */
.pajaro-preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: auto;
  transform: translate(-50%, -50%);
}

/* Animación de giro */
@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

