/*TEXTO-IMAGEN*/
.seccion-doble {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  align-items: center;
  gap: 2rem; 
  margin-bottom: 2rem;
}

.seccion-imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px; 
}
.boton-contacto {
    display: inline-block;
    padding: 12px 25px;
    background-color: #b0413e; 
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.boton-contacto:hover {
    background-color: #8c2f2a; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176, 65, 62, 0.3);
}

/*IMG-IMG*/
.grid-dos-imagenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 350px));
  justify-content: center; 
  gap: 50px;
  margin-top: 90px;

}
.imagen-con-titulo {
  text-align: center;
}

.imagen-con-titulo img {
  width: 100%;
  border-radius: 12px; 
  display: block;
}

.animar-desde-abajo {
  opacity: 0;
  transform: translateY(100px);
}
.animar-desde-abajo.visible {
  animation: entrarAbajo 0.8s ease-out forwards;
}

/*TEXTO LLAMATIVO*/
.textLlamativo {
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #5d6d7e, #5d6d7e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transform: translateY(20px);
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}
.textLlamativo.visible {
    opacity: 1;
    transform: translateY(0);
}
/*CARD MISION Y VISION*/
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.card-raya {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 5px;
  background-color: #b0413e;
  transition: width 0.3s ease;
}

.card:hover .card-raya {
  width: 100%;
}
.card-contenido {
  padding: 20px;
}

/* GRID DE VALORES */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* CARD */
.valor-card {
  position: relative;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

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

/* CÍRCULO NUMERADO */
.valor-circulo {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  border: 2px solid #b0413e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: #b0413e;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.valor-card:hover .valor-circulo {
  background-color: #b0413e;
  color: #fff;
}

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

/* UBICANOS FORMULARIO MAPA */
#contacto {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px clamp(20px, 5vw, 40px); 
}

/* FILA PRINCIPAL */
.contacto-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px; 
}

/* COLUMNAS */
.contacto-formulario,
.contacto-mapa {
  flex: 1 1 500px;
  min-width: 0;
}

/* FORMULARIO */
.contacto-formulario form {
  display: flex;
  flex-direction: column;
  gap: 25px; 
}

/* FILAS DE FORMULARIO */
.form-fila {
  display: flex;
  gap: 20px; 
  flex-wrap: wrap;
}

.form-grupo {
  flex: 1 1 calc(50% - 10px); 
  min-width: 200px; 
}

.form-grupo-full {
  flex: 1 1 100%;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 6px; 
  font-size: 1rem;
  line-height: 1.5;
  background-color: #f8f9fa; 
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #b0413e;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(176, 65, 62, 0.25);
  background-color: white;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* MAPA CON CONTENEDOR SEGURO */
.mapa {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  aspect-ratio: 16/9; 
  height: 85%; 
}

.mapa iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* BOTÓN MEJORADO */
.btn-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.btn-mamut {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background-color: #b0413e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-mamut:hover {
  background-color: #7a2b25;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-mamut i {
  margin-right: 10px;
}

/* CONTACTANOS*/
.container-contacto {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  background: #fdfdfc;
  box-sizing: border-box;
}

/* ENCABEZADO */
.contacto-header {
  text-align: center;
  margin-bottom: 40px;
}

.contacto-header h2 {
  color: #8B4513;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-size: 2rem; /* Tamaño base */
}

.contacto-header p {
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* TARJETAS DE CONTACTO */
.contacto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-contacto {
  background-color: #fff;
  border-top: 4px solid #8B4513;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-contacto:hover {
  background-color: #f5e9e5;
  transform: translateY(-5px);
}
.info-contacto a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: color 0.3s ease;
}
.info-contacto-link {
  text-decoration: none; 
  color: inherit; 
  display: block; 
}

.info-contacto a:hover {
  color: #8B4513;
}

@media (max-width: 768px) {
  .seccion-doble {
    grid-template-columns: 1fr; 
    text-align: center; 
  }

  .seccion-imagen {
    margin-top: 1rem;
  }
}

/*NOSOTROS INDEX*/
@media (max-width: 1024px) {
  .grid-dos-imagenes {
    gap: 50px; 
  }
}

@media (max-width: 768px) {
  .grid-dos-imagenes {
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  .imagen-con-titulo img {
    max-width: 90%; 
    margin: 0 auto;
  }
}

/*ANIMACION INDEX*/
@keyframes entrarAbajo {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* BOTON */
@media (max-width: 767px) {
    .boton-contacto {
        padding: 10px 20px; 
        font-size: 0.9rem;  
        display: block;     
        margin: 10px auto 0 auto; 
    }
}

/*CARD MISION Y VISION*/
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .card.activa .card-raya {
    width: 100%;
  }
}

/* RESPONSIVE VALORES*/
@media (max-width: 992px) {
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE MAPA FORMULARIO */
@media (max-width: 992px) {
  .form-grupo {
    flex: 1 1 100%; 
  }
  
  .mapa {
    aspect-ratio: 16/9; 
    height: auto; 
  }
}

@media (max-width: 768px) {
  .contacto-row {
    flex-direction: column;
    gap: 30px;
  }
  
  .contacto-formulario,
  .contacto-mapa {
    flex: 1 1 100%;
  }
  
  .form-fila {
    gap: 15px;
  }
  
  .mapa {
    aspect-ratio: 16/9; 
    min-height: 300px; 
  }
}

@media (max-width: 480px) {
  .mapa {
    aspect-ratio: unset; 
    height: 350px; 
  }
}
/* CONTACTANOS RESPONSIVE */
@media (max-width: 768px) {
  .container-contacto {
    padding: 30px 15px;
  }
  
  .contacto-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .contacto-header p {
    font-size: 0.95rem;
  }
  
  .contacto-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .info-contacto {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .contacto-header h2 {
    font-size: 1.5rem;
  }
  
  .info-contacto i {
    font-size: 1.8rem;
  }
  
  .info-contacto p {
    font-size: 0.9rem;
  }
}

/* EFECTO ADICIONAL PARA DISPOSITIVOS TÁCTILES CONTACTO*/
@media (hover: none) {
  .info-contacto:hover {
    transform: none;
    background-color: #fff;
  }
}

/*TARJETA PRODUCTOS MURO Y TECHO*/
.tarjeta-producto {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 90px
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.overlay-ladrillo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(176, 65, 62, 0.4); 
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.tarjeta-producto:hover .overlay-ladrillo {
    opacity: 1;
}
.imagen-ladrillo {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.info-producto {
    padding: 10px 15px;
    text-align: center;
}
.rating-producto{
  color:#fae904;
  
}
.galeria-4-columnas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}


@media (hover: none) {
    .tarjeta-producto:active .overlay-ladrillo {
        opacity: 1;
    }
}
