/* ================= RESET BÁSICO ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= NAVBAR ================= */
.navbar-brand img {
  max-height: 80px;
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 60px;
  }
}

.navbar-toggler {
  background-color: rgba(0,0,0,0.25);
  border-radius: 6px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero video,
.hero img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.carousel-item {
  transition: opacity 0.6s ease-in-out;
}


/* Capa oscura para legibilidad */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* Caption */
.hero .carousel-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

/* Wrapper del video */
.hero-video-wrapper {
  position: relative;
}

/* ================= HERO ALTURA FIJA ================= */
.hero,
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100vh;
}

/* Mobile: un poco menos de alto */
@media (max-width: 768px) {
  .hero,
  .hero .carousel,
  .hero .carousel-inner,
  .hero .carousel-item {
    height: 75vh;
  }
}

/* VIDEO E IMÁGENES IGUAL */
.hero video,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ================= BOTÓN SONIDO ================= */
.sound-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;

  width: 56px;
  height: 56px;

  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  cursor: pointer;
  color: #fff;

  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s ease, transform 0.2s ease;
}

.sound-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

/* SVGs */
.sound-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  display: none;
}

/* SVG visible */
.sound-btn svg.active {
  display: block;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero video,
  .hero img {
    height: 75vh;
  }

  .sound-btn {
    width: 48px;
    height: 48px;
  }

  .sound-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ================= ICONOS ================= */
.video-btn svg {
  width: 30px;
  height: 30px;

  display: block;

  stroke: currentColor;
  fill: none;

  stroke-width: 2;

  /* 🔥 fuerza mismo encuadre visual */
  overflow: visible;
}

/* ================= CAPTION ================= */
.hero .carousel-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.hero .carousel-caption h1 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero .carousel-caption .btn {
  margin-top: 20px;
  padding: 12px 30px;
  font-weight: 500;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero-video-wrapper {
    height: 75vh;
  }

  .video-btn {
    width: 40px;
    height: 40px;
  }

  .video-btn svg {
    width: 18px;
    height: 18px;
  }

  .hero .carousel-caption h1 {
    font-size: 1.6rem;
  }
}

/* Capa oscura para legibilidad */
.hero::after {
content: '';
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.35);
z-index: 1;
pointer-events: none;
}

/* Texto del hero */
.hero .carousel-caption {
position: absolute;
z-index: 2;
top: 50%;
transform: translateY(-50%);
text-align: center;
}

.hero .carousel-caption h1 {
font-size: 3rem;
font-weight: 600;
letter-spacing: 1px;
}

.hero .carousel-caption p {
font-size: 1.2rem;
margin: 15px 0 25px;
}

.hero .carousel-caption .btn {
padding: 12px 30px;
font-weight: 500;
}

@media (max-width: 768px) {
.hero video,
.hero img {
height: 75vh;
}

.hero .carousel-caption h1 {
font-size: 1.8rem;
}

.hero .carousel-caption p {
font-size: 1rem;
}
}

.hero .carousel-caption h1 {
font-size: 1.6rem;
line-height: 1.3;
}

/* ================= INTRO GALERÍA ================= */

.intro-gallery {
  padding: 60px 0;
  text-align: center;
  background-color: #f3efe9;
}

.intro-logo {
  display: block;
  margin: -20px auto 20px;
  height: 150px;
}

.card-fixed-height {
  height: 250px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.card-fixed-height img {
  transition: transform 0.4s ease;
}

.card-fixed-height:hover img {
  transform: scale(1.05);
}

.row.g-0 {
  --bs-gutter-x: 8px;
}

.card-fixed-height img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-text {
  max-width: 900px;
  margin: 40px auto 0;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-logo {
    height: 110px;
    margin: 0 auto 20px;
  }

  .card-fixed-height {
    height: 350px;
  }

  .card-fixed-height img {
    object-position: center bottom;
  }

  .intro-text {
    font-size: 1rem;
  }
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.sound-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;

  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.2rem;

  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: background 0.3s ease, transform 0.2s ease;
}

.sound-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}


/* ================= NOSOTROS ================= */

.nosotros {
  background-color: #f7f7f7;
  padding: 80px 20px;
}

.contenedor-nosotros {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.contenedor-nosotros::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background-color: #ddd;
}

.texto-nosotros {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.texto-nosotros h2::after {
  margin: 15px auto;
}

.logo-nosotros {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.texto-nosotros h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.texto-nosotros p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #333;
}

.texto-nosotros h2::after {
  content: '';
  display: block;
  width: auto;
  height: 3px;
  background-color: #000;
  margin: 15px 0;
}


.btn-conocenos {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: auto;
  min-width: 180px; 
}

.btn-equipo {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: auto;
  min-width: 180px; 
}

.logo-nosotros {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.logo-nosotros img {
  max-width: 220px;
  margin-bottom: 20px;
  padding: 28px;
  background-color: var(--blanco);
  object-fit: contain;

  border-radius: 4px;

  /* Sombra */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-nosotros img:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.btn-equipo:hover {
  background-color: #000;
  color: #fff;
}

.btn-conocenos:hover {
  background-color: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .contenedor-nosotros {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contenedor-nosotros::after {
    display: none;
  }

  .texto-nosotros h2 {
    font-size: 2rem;
  }

  .texto-nosotros p {
    font-size: 1rem;
  }

  .logo-nosotros img {
    max-width: 170px;
    padding: 22px;
  }
}

/* ================= VALORES ================= */

.valores {
  background-color: #f3efe9; /* #f3efe9 */
  padding: 40px 20px;
}

.valores h2 {
  text-align: center;
  margin-bottom: 5%;
}

/* Contenedor de iconos */
.valores .imagenes-column {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  text-align: center;
}

/* Item individual */
.valores .item-img {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Iconos */
.valores .equipo-img {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.valores .item-img:hover .equipo-img {
  transform: translateY(-6px);
}

/* Texto debajo del icono */
.valores .texto-individual {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--carbon);
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .valores .imagenes-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .valores .imagenes-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .valores .equipo-img {
    width: 75px;
  }
}

/* ================= EXPERIENCIA ================= */

.experiencia {
  background-color: var(--blanco);
  padding: 80px 20px;
}

.contenedor-experiencia {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

/* Botones */
.slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  padding: 6px 14px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;

  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.slider:hover .nav {
  opacity: 1;
}

.slider .nav:hover {
  background: rgba(0,0,0,0.55);
}

.slider .prev { left: 12px; }
.slider .next { right: 12px; }

/* Mobile: siempre visibles */
@media (max-width: 768px) {
  .slider .nav {
    opacity: 1;
  }
}

.texto-experiencia h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.texto-experiencia p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--piedra);
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .contenedor-experiencia {
    grid-template-columns: 1fr;
  }

}

/* ================= MARCAS ================= */
.marcas {
  padding: 80px 20px;
  background-color: var(--beige);
  text-align: center;
}

.marcas h2 {
  margin-bottom: 50px;
}

/* CONTENEDOR */
.grid-marcas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* MARCA */
.marca {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  min-height: 140px;
  justify-content: flex-start;  
}

/* LOGO */
.marca img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;

  display: block;
  height: 70px;
  width: auto;
}

.marca:hover img {
  transform: scale(1.05);
}

/* TEXTO */
.marca .nombre {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.marca .ubicacion {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--dorado);
  line-height: 1.2;
}

/* MOBILE */
@media (max-width: 576px) {
  .grid-marcas {
    gap: 25px;
  }

  .marca img {
    max-height: 60px;
  }
}


/* ================= SEPARADOR MAPA ================= */
.separador-mapa {
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  background-color: #f3efe9;
}

.separador-mapa h2 {
  font-size: 2rem;
  letter-spacing: 2px;
  margin: 0;
}

/* ================= MAPA ================= */
.mapa {
  background-color: #f3efe9;
  padding: 60px 0;
}

.map-area {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 10px;
}

.map-area iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
  .map-area iframe {
    height: 300px;
    border-radius: 8px;
  }
}


/* ================= CONTACTO ================= */
/* ================= CONTACTO ================= */
.contact-area {
  background-color: var(--blanco);
  padding: 80px 20px;
}

.contact-area h2 {
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 2px;
}

/* Contenedor principal */
.contact-container {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* Información de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--carbon);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.contact-info i {
  color: var(--dorado);
  font-size: 1.1rem;
}

/* Formulario */
.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-contacto input,
.form-contacto textarea {
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
  outline: none;
  border-color: var(--dorado);
}

/* Botón */
.form-contacto button {
  margin-top: 10px;
  background-color: #cca158;
  color: black;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-contacto button:hover {
  background-color: #a7864f;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    text-align: center;
    align-items: center;
  }

  .contact-info p {
    justify-content: center;
  }
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #f3efe9;
}

.footer img {
  max-width: 140px;
  margin: 0 auto 10px;
}
