/* @import url("https://fonts.googleapis.com/css?family=Sacramento&display=swap"); */
 /* Importar una tipografía futurista y limpia */
 /* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;600&display=swap'); */
/* Configuración General y Colores */
/* Colores por defecto (Tema Oscuro) */
:root {
  --naranja-oxido:#ff6200a5;
  --bg-color: #1a1a1a;
  --bg-color2: #ffffff;
  --text-color: #f1630a;
  --text-color2: #0b0b0b;
  --card-bg: #2d2d2d;
  --border-color:#ffffff17;
  --border-color2: #ffffff;
  --primary-color: #B7410E;
  --bg-colorMenu: linear-gradient(224deg, rgba(230, 103, 7, 1) 0%, rgba(10, 0, 0, 1) 59%);
  --bg-colorMenu2: linear-gradient(224deg, rgba(10, 0, 0, 1 ) 0%, rgba(230, 103, 7, 1) 200%);
  --text-colorMenu: #faf7f7;
  --text-colorMenu2: #000200;
  --neon-cyan: #00f2fe;
  --fondo-seccion: rgba(0, 0, 0, 0.802);
  /* Tu color óxido */
}

/* Colores para el Tema Claro */
[data-theme="light"] {
  --bg-color: #ffffff;
  --bg-color2: #1a1a1a;
  --text-color: #101011;
  --text-color2:#f1630a;
  --card-bg: #bfbfbf;
  --border-color: #7e1e05;
  --border-color2: #ffffff;
  --bg-colorMenu:linear-gradient(224deg, rgba(230, 103, 7, 1) 0%, rgb(255, 255, 255) 59%);
  --bg-colorMenu2: linear-gradient(224deg,rgb(248, 221, 188) 20%, rgba(230, 103, 7, 1) 100%);
  --text-colorMenu: #b93901;
  --text-colorMenu2: #ffffff;
  --neon-cyan: #fbfbfb;
  --neon-purple: #4facfe;
  --fondo-seccion:rgba(255, 255, 255, 0.423);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

/* Aplicar las variables a los elementos */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  scroll-behavior: smooth;
  /* border: 1px solid var(--border-color); */
  /* Suaviza el cambio */
}

html{
  scroll-behavior: smooth;
}

/* Estructura de página: el hero ocupa la primera pantalla, pero el contenido posterior
   permanece dentro del flujo normal y siempre puede desplazarse. */
html, body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

main, .footer-industrial {
  position: relative;
  z-index: 1;
}

/* Header y Navegación */
header {
  background-color: var(--negro-industrial);
  padding: 1rem 0;
  border-bottom: 4px solid var(--naranja-oxido);
}


/*==================================================================*/
/*====================== Menu hamburguesa ==========================*/
/*==================================================================*/
.nav-list {
  list-style-type: none;
  display: flex;
  position: absolute;
  right: 1%;
  top: 10%;
  padding: 10px;
  gap: .5rem;
  background-color: rgba(4, 1, 0, 0.719);
  border-radius: 10px;
  li{
    display: grid;
    justify-content: center;
    align-items: center;
  }
  .imgB {
    display: none;
  }
}

.nav-list li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.964);
  position: relative;
  --width-after: 100%;


  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background-color: #f6e9d6;
    transition: width .5s linear;
  }

  &:hover {
    color: #05aeb1;

    &::after {
      width: var(--width-after);
    }
  }
}

.abrir-menu,
.cerrar-menu {
  display: none;
}

@media screen and (max-width: 1200px) {

  .abrir-menu,
  .cerrar-menu {
    display: block;
    border: 0;
    font-size: 1.25rem;
    background-color: transparent;
    cursor: pointer;
  }

  .abrir-menu {
    position: absolute;
    position: fixed;
    right: 20px;
    top: 20px;
    color: rgb(248, 248, 248);
    z-index: 100;
  }

  .cerrar-menu {
    color: #ececec;
    position: absolute;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 150;
  }

.nav {
  opacity: 0;
  visibility: hidden;
  display: flex;
  position: fixed;
  flex-direction: column;
  align-items: end;
  gap: 1rem;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  padding: 2rem;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.785);
  z-index: 130;
}

.nav.visible {
  opacity: 1;
  visibility: visible;
}
.nav-list {
  flex-direction: column;
  align-items: end;
  position: relative;
  right: 0px;

  .imgB {
    display: block;
    width: 100px;
    height: 100px;
  }
}
}

nav a {
  color: white;
  text-decoration: none;
  margin:5px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--naranja-oxido);
}

/* Estilos del Navegador */
.navbar-moderna {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background:transparent;
  /* Negro con transparencia
  /* backdrop-filter: blur(10px); */
  /* Efecto de desenfoque */
   border-bottom: 2px solid var(--naranja-oxido);
}

.nav-container {
  width: 95%;
  max-width: 2100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  transition: all 1s ease-in-out;
  span{
    color: #f84600;
    text-shadow:1px 1px black;
    transition: all 1s ease-in-out;
  }
  
}
.nav-logo:hover{
  scale: 1.1;
  filter: drop-shadow(1px 1px 1px rgb(246, 79, 1));
  span {
      text-shadow: 1px 1px rgb(253, 254, 255);
      scale: 1.01;
    }
}

.nav-logo img {
  height: 70px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: var(--naranja-oxido);
} 

.btn-nav-whatsapp {
  background-color: var(--naranja-oxido);
  color: white;
  display:none;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
  transition: all .5s;
  justify-content: center;
  align-content: center;
}
.btn-nav-whatsapp:hover {
  background-color: rgba(103, 103, 102, 0.437);
  /* border:1px solid rgb(255, 255, 255); */

}

/* Definimos el salto */
@keyframes saltito {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  /* Sube */
  60% {
    transform: translateY(-5px);
  }

  /* Sube un poquito menos */
}

.boton-llamativo {
  animation: saltito 2s infinite;
  background:#f84600;
  /* Salta cada 2 segundos infinitamente */
}

#logo_principal{
  width: 10rem;
  height: 10rem;
  margin: 1rem;
}
/* Contenedor de Galería y Servicios */
.galeria-container,
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 10%;
}

/* Tarjetas de Trabajo/Servicio */
.card {
  width: 300px;
  height: 200px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;

  h3{
    color: #ff3c0083;
  }
  p{
    color: #ffffff62;
  }
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}



/* Solo se aplica si existe esta clase */
.card.active-anim::after {
  animation: brilloInfinito 2s ease-in-out;
}

/* El efecto al pasar el mouse */
.card:hover::after {
  left: 120%;
}

@keyframes brilloInfinito {
  0% {
    left: -100%;
  }

  100% {
    left: 120%;
  }
}
 
.grid-servicios .card{
  /* 1. Fondo translúcido con un ligero tinte */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 90%, rgba(10, 0, 0, 0.788) 50%), url(../images/herreria00.webp);
  /* 2. Mayor Desenfoque (para un look más suave) */
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  /* 3. El Borde Interior (Sombra Interna) y Exterior (Sutil) */
  box-shadow:inset 0 0 30px rgba(255, 255, 255, 0.05),/* Sombra interior */0 8px 32px 0 rgba(0, 0, 0, 0.4);/* Sombra exterior */
  /* 4. El borde fino para simular el grosor */
  border: 1px solid rgba(255, 255, 255, 0.1);
}  

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

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  /* Para que todas las fotos midan lo mismo sin deformarse */
}


/* Botones de Acción */
.btn-presupuesto {
  display: inline-block;
  background-color: var(--naranja-oxido);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s;
}

.btn-presupuesto:hover {
  background-color: #d35400;
}

/* Botón de WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-slider {
  position: relative;
  height: 100svh;
  /* border: 4px solid green; */
  overflow: hidden;
}
/* El contenido debe estar por encima de la imagen */
.slider-container {
  width: 100svw;
 height: 100svh;
 /* border: 2px solid red; */
 z-index: 3;
}

.slider {
  position: absolute;
  /* Superpone las fotos una sobre otra */
  top: 0;
  left: 0;
  width: 100svw;
  height: 100svh;
  opacity: 0;
  /* Ocultas por defecto */
  transition: opacity 1s ease-in-out;
  /* El efecto de desvanecido */
  z-index: 1;
}

.slider.active {
  opacity: 1;
  /* Solo la activa se ve */
  z-index: 2;
}
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  /* Oscurece la foto para que el texto resalte */
}
.btn-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.btn-slider:hover {
  background: rgba(0, 0, 0, 0.8);
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
}

.slide-content h1 {
  font-size: 5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.slide-btns {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-principal,
.btn-secundario {
  padding: 8px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.btn-principal {
  background-color: var(--naranja-oxido);
  color: white;
  transition: all .5s linear;
}

.btn-secundario {
  border: 1px solid white;
  color: white;
  transition: all .5s linear;
}

.btn-principal:hover,
.btn-secundario:hover{
  background-color:rgba(255, 255, 255, 0.557);
  color: black
}


.footer-industrial {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 90%, rgba(10, 0, 0, 0.788) 50%),url(../images/herreria00.webp);
  background-size: cover;
  background-attachment:fixed;
  color: #bdc3c7;
  padding: 60px 0 20px 0;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  width: 95%;
  max-width: 2100px;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-section h4 {
  color: var(--naranja-oxido);
  margin-bottom: 25px;
  text-transform: uppercase;
  font-size: 1.1rem;
  border-left: 3px solid var(--naranja-oxido);
  padding-left: 10px;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--naranja-oxido);
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
  /* filter: brightness(0) invert(1); */
  /* Convierte el logo a blanco si es oscuro */
}

.mini-mapa {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #444;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
}


/* Iconos de contacto */
.footer-section i {
  color: var(--naranja-oxido);
  margin-right: 10px;
  width: 20px;
}

.CompartirRed {
  margin: 15px;
  display: flex;
  /* justify-content: center;
  align-items: center; */
  span{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.red {
  background: none;
  border: 0;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 2px var(--color-secundario);
  color: #f45e61;
  font-size: inherit;
  font-weight: 700;
  margin: 1em;
  padding: 1em 2em;
  text-align: center;
  text-transform: capitalize;
  vertical-align: middle;
  transition: scale 0.5s;

  i {
    color: #fff;
    font-size: 2rem;
  }

}
.red:hover {
background: radial-gradient(circle, rgba(57, 10, 247, 0.68) 28%, rgb(243, 169, 23) 100%);
  scale: 1.1;
}

.red:active {
  box-shadow: inset 0 0 10px 2px red;
  scale: 0.9;

}

.red {
  overflow: hidden;
  position: relative;
}

.red::before,
.red::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  border: 2px solid transparent;
  width: 0;
  height: 0;
}

.red::before {
  top: 0;
  left: 0;
  border-top-color: #827a04;
  border-right-color:#f66302;
  animation: border 2s infinite;
}

.red::after {
  bottom: 0;
  right: 0;
  animation: border 2s 1s infinite, borderColor 2s 1s infinite;
}
@keyframes border {
  0% {
    width: 0;
    height: 0;
  }

  25% {
    width: 100%;
    height: 0;
  }

  50% {
    width: 100%;
    height: 100%;
  }

  100% {
    width: 100%;
    height: 100%;
  }
}

@keyframes borderColor {
  0% {
    border-bottom-color: #fc3503;
    border-left-color: #fe0101;
  }

  50% {
    border-bottom-color:#fc3503;
    border-left-color: #ff0000;
  }

  51% {
    border-bottom-color: transparent;
    border-left-color: transparent;
  }

  100% {
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
}

.red-social {
  a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    color: var(--color-terciario);
    margin-right: 10px;
    background-color: #000000;
    border-radius: 40px;
    border: .5px solid #ff4d00;
    text-align: center;
    transition: all 300ms ease;
    &:hover {
        background: #06000021;
        border: .5px solid #fff;
      }
    i{
      color: #ff4d00;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      &:hover {
        color: #fff;
      }
    }
  }

}
#whatsapp {
  position: fixed;
  z-index: 150;
  bottom: 30px;
  right: 10px;
  width: 3rem;
  height: auto;
  transition: left 0.5s ease;
  cursor: pointer;
  animation: saltar 2s linear 10 5s;

  img {
    box-shadow: inset 2px 2px 10px #3EA249, inset 2px 2px 10px #3EA249, inset 2px 2px 10px rgb(30, 190, 165);
    border-radius: 50%;
    width: 100%;
    transition: .5s linear;
  }

  &:hover {
    scale: 1.3;

    img {
      box-shadow: inset 2px 2px 10px #9c943d, inset 2px 2px 10px #a28e3e, inset 2px 2px 10px rgb(190, 102, 30);
    }

  }
}

#subir {
  position: fixed;
  z-index: 100;
  bottom: 30px;
  left: -100px;
  width: 2.8rem;
  height: 2.8rem;
  transition: left 0.5s ease;
  cursor: pointer;
  box-shadow: inset 2px 2px 10px #15661f, inset 2px 2px 10px #084710, inset 2px 2px 10px rgb(0, 9, 8);
  border-radius: 50%;

  .fa-solid {
    margin: auto 10px;
    color: #e2d6d1;
    font-size: 1.5rem;
    transition: .1s linear;
  }

  &:hover {
    scale: 0.9;

    img {

      box-shadow: inset 2px 2px 10px #9c943d, inset 2px 2px 10px #a28e3e, inset 2px 2px 10px rgb(190, 102, 30);
    }
  }

  &::after {
    content: 'subir';
    font-size: 0.7rem;
    position: relative;
    top: -10px;
    color: #fff;
    margin-left: 10px;

  }

}
/* Estado inicial: oculto y un poco más abajo */
.reveal_subir {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

/* Estado cuando se vuelve visible */
.reveal_subir.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal_izq {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease-out;
}

/* Estado cuando se vuelve visible */
.reveal_izq.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal_bajar {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 1s ease-out;
}

/* Estado cuando se vuelve visible */
.reveal_bajar.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal_der {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease-out;
}

/* Estado cuando se vuelve visible */
.reveal_der.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal_zoom {
  opacity: 0;
  scale: 0;
  transition: all 1s ease-out;
}

/* Estado cuando se vuelve visible */
.reveal_zoom.active {
  opacity: 1;
  scale: 1;
}

.reveal_360 {
  opacity: 0;
  transition: all 1s ease-out;
}

/* Estado cuando se vuelve visible */
.reveal_360.active {
  opacity: 1;
  rotate: 360deg;
}

/*============================================================
===================== SECCIÒN SERVICIOS ======================
=============================================================*/
#bodyColorServicios{
  background-color: var(--bg-color);
    color: var(--text-color);
    /* border-color:var(--border-color); */
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;

    .seccion-card{
      border: 1px solid var(--border-color);
      background-color:var(--bg-color);

      p{
        color: var(--text-color);
      }

    }
    .seccion-card2 {
      /* border: 1px solid var(--border-color2); */
      background-color: var(--bg-color2);
      color: var(--text-color2);

      p,h3{
          color: var(--text-color2);
        } 
    }
        /* Chrome, Firefox, Opera, Safari */
        ::placeholder {
          color:var(--text-color);
          /* Tu color óxido */
          opacity: 0.7;
          /* Firefox requiere opacidad para que se vea el color real */
        }
    
        /* Internet Explorer 10-11 */
        :-ms-input-placeholder {
          color: var(--text-color);
        }
    
        /* Microsoft Edge */
        ::-ms-input-placeholder {
          color: var(--text-color);
        }
        .input-personalizado {
          color: var(--text-color);
          /* Color óxido/hierro */
          font-weight: bold;
          /* Para que resalte más al escribir */
          background-color: var(--bg-color);
          /* Fondo gris muy claro */
        }
        
        /* Opcional: Cambiar el color solo cuando el usuario hace clic (Focus) */
        .input-personalizado:focus {
          color: var(--text-color);
          /* Cambia a negro al escribir */
          border-color:var(--bg-color);
          /* El borde brilla en color óxido */
          box-shadow: 0 0 0 0.25rem rgba(183, 65, 14, 0.25);
          /* Resplandor sutil */
        }
}

.menu-card {
  background: var(--bg-colorMenu);

  li a {
    color: var(--text-colorMenu);
  }
}
.menu-card2 {
  background: var(--bg-colorMenu2);

  li a {
    color: var(--text-colorMenu2);
  }
}

.text-card {
  color: var(--text-colorMenu);
}

/*============================================================
==== PARA QUE NO PUEDAN  SELECCIONAR LOS TEXTOS ==============
=============================================================*/
.no-seleccionable {
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 y Edge */
  user-select: none;
  /* Estándar (Firefox, Chrome, Opera) */
}

/*============================================================
======== MOSTRAR TEXTO EN CARD DE TESTIMONIOS ================
=============================================================*/
 .cortar-texto {
  white-space: nowrap; /* 1. Evita que el texto salte a la siguiente línea */
  overflow: hidden; /* 2. Recorta lo que sobresalga del contenedor */
  text-overflow: ellipsis; /* 3. Añade los tres puntos al final */
  width: 200px; /* 4. Necesitas definir un ancho (o que el padre lo tenga) */
 } 

.comentario-corto {
  max-width: 150px; /* Ajusta según el ancho de tu columna */
  display: inline-block; /* Necesario si el elemento es un <span> */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.texto-multilinea {
  display: -webkit-box;
  /* =============================================== */
  /* === Número de líneas que quieres mostrar =======*/
  /* =============================================== */
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Creamos una clase para limitar el ancho y ocultar el desborde */
.celda-recortada {
  max-width: 50px !important;
  /* Ajusta este ancho a tu gusto */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/*============================================================
=============================================================*/

.wave-text span {
  display: inline-block;
  font-size: 3rem;
  font-weight: bold;
  animation: wave 2s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
  animation-delay: 0s;
  text-shadow: 0 0 10px rgb(255, 128, 0), 0 0 20px rgb(255, 106, 0), 0 0 30px rgb(255, 77, 0);
}

.wave-text span:nth-child(2) {
  animation-delay: 0.2s;
  text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #fa4242, 0 0 80px #fb0505;
}

.wave-text span:nth-child(3) {
  animation-delay: 0.4s;
  text-shadow: 0 0 10px rgb(255, 128, 0), 0 0 20px rgb(255, 106, 0), 0 0 30px rgb(255, 77, 0);
}

.wave-text span:nth-child(4) {
  animation-delay: 0.6s;
  text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #fa4242, 0 0 80px #fb0505;
}

.wave-text span:nth-child(5) {
  animation-delay: 0.8s;
  text-shadow: 0 0 10px rgb(255, 128, 0), 0 0 20px rgb(255, 106, 0), 0 0 30px rgb(255, 77, 0);
}

.wave-text span:nth-child(6) {
  animation-delay: 1s;
  text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #fa4242, 0 0 80px #fb0505;
}

.wave-text span:nth-child(7) {
  animation-delay: 1.2s;
  text-shadow: 0 0 10px rgb(255, 128, 0), 0 0 20px rgb(255, 106, 0), 0 0 30px rgb(255, 77, 0);
}

.wave-text span:nth-child(8) {
  animation-delay: 1.4s;
  text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #fa4242, 0 0 80px #fb0505;
}

.wave-text span:nth-child(9) {
  animation-delay: 1.6s;
  text-shadow: 0 0 10px rgb(255, 128, 0), 0 0 20px rgb(255, 106, 0), 0 0 30px rgb(255, 77, 0);
}

@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Hero Section */
.heroServicios{
  height: 80svh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/servicios/img_servicios.png');
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  /* Centrado con Grid */
  text-align: center;
  p {
      color: #f66302;
    }
}

.titulo-forjado {
  font-size: 3rem;
  color: #ddd;
  text-shadow: 2px 2px 3px #000;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-family: fantasy;
}

/* Grid de Servicios */
.servicios-container {
  padding: 40px 20px;
  text-align: center;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 40px auto;
}

.card {
  justify-self: center;
  background: #252525;
  padding: 40px;
  border-radius: 10px;
  transition: transform 0.3s, filter 0.3s;
  border-bottom: 4px solid #ff4500;
}

.card i {
  font-size: 3rem;
  color: #ff4500;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0px 10px 20px rgba(255, 69, 0, 0.3));
}

/* Botón Subir mejorado */
.btn-subir {
  position: fixed;
  bottom: 30px;
  left: -100px;
  /* Escondido por defecto */
  background: #ff4500;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.5s;
  font-size: 20px;
  z-index: 1000;
}

/*Qeue valla apareciendo las letras*/
.contenedor-tipeo {
  display: inline-block;
}

.texto-animado {
  font-family: 'Courier New', Courier, monospace;
  text-shadow:
      -1px -1px 0 black,
      1px -1px 0 black,
      -1px 1px 0 black,
      1px 1px 0 black;
  /* Fuente monoespaciada para mejor efecto */
  font-size: 30px;
  color: #ff4500;
  /* Color fuego */
  border-right: 3px solid #f5f5f5;
  /* El cursor que parpadea */
  white-space: nowrap;
  /* Evita que el texto salte de línea */
  overflow: hidden;
  /* Esconde las letras que aún no "aparecen" */
  width: 0;
  /* Empezamos sin ver nada */

  /* Animación: 
     - "tecleo": dura 4s, tiene 25 pasos (uno por cada letra aprox.)
     - "parpadeo": para el cursor 
  */
  animation:
    tecleo 4s steps(25) forwards,
    parpadeo-cursor 0.8s infinite;
}

/* Animación para descubrir las letras */
@keyframes tecleo {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Animación para que el cursor parpadee */
@keyframes parpadeo-cursor {
  50% {
    border-color: transparent;
  }
}

/*===============================================*/
/*=================== GALERIA ===================*/
/*===============================================*/
.heroGaleria{
  height: 80svh;
  background-image:linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../images/galeria/img_galeria.png");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  /* Centrado con Grid */
  text-align: center;
}
h1 {
  text-align: center;
  margin-bottom: 20px;
}
#h1-galeria{
  font-size: 2rem;
  line-height: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(15, 25, 38, 1.0) 90%);
  letter-spacing: 1cap;
  text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
  color: #fff6a9;
  font-family: "Sacramento", cursive;
  text-align: center;
  animation: blink 12s infinite;
  -webkit-animation: blink 12s infinite;
  
}

@-webkit-keyframes blink {

  20%,
  24%,
  55% {
    color: #111;
    text-shadow: none;
  }

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
    color: #fff6a9;
  }
}

@keyframes blink {

  20%,
  24%,
  55% {
    color: #111;
    text-shadow: none;
  }

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
    color: #fff6a9;
  }
}

.hero-content h5{
 color: #fff;
 padding: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.96);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 60px;
}

.controls{
  margin-top: 15px;
  display: flex;
  gap: 20px;
  border-radius: 10px;
  .btn{
      color: #ffffff;
  }
  span:hover{
    border: 1px solid #f25303;;
  }
  .btn:hover{
    color: #f25303;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

.matrix-container {
  position: relative;
  display: grid;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
  z-index: 2;
  /* Ensure it stays above the rain effect */
}

.matrix-text {
  color: rgb(255, 132, 0);
  font-size: 80px;
  font-family: monospace;
  position: relative;
  text-shadow: 0 0 10px rgb(255, 128, 0), 0 0 20px rgb(255, 106, 0), 0 0 30px rgb(255, 77, 0);
  z-index: 2;
  /* Ensure it stays above the rain effect */
}

.matrix-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, -2px);
  color: rgb(255, 255, 255);
  text-shadow: 0 0 5px rgb(255, 98, 0), 0 0 15px rgb(255, 81, 0);
}

.rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      rgba(245, 237, 222, 0.922) 0,
      rgba(240, 216, 106, 0.2) 2px,
      transparent 4px);
  animation: rain 10s linear infinite;
  z-index: 1;
  /* Place it behind the text */
}

/* Animation for the rain effect */
@keyframes rain {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

/* Glitch effect for the text */
@keyframes glitch {

  0%,
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(0);
  }

  33% {
    clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
    transform: translate(-5px, -5px);
  }

  66% {
    clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%);
    transform: translate(5px, 5px);
  }
}


.neon-text {
  font-size: 4rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #fa4242, 0 0 80px #fb0505;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #ff3c83, 0 0 80px #fc7aaa;
  }

  100% {
    text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 80px #69e3fc, 0 0 160px #e4f6fa;
  }
}

/* Ajustes para móviles */
@media (max-width: 1200px) {
  .nav-menu {
    display: none;
  }

  /* Ocultar menú en móvil (puedes añadir un menú hamburguesa luego) */
  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-btns {
    flex-direction: column;
  }
}


/*==================================================*/
/*==========  Los ultimos proyectos ================*/
/*==================================================*/
/* Contenedor principal de la tarjeta */

.card-metal {
  /* Degradado que simula reflejo metálico */
  background: linear-gradient(180deg, rgba(0, 0, 1, 0.912) 90%, rgba(10, 0, 0, 0.788) 50%), url(../images/herreria02.webp);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

/* Efecto de "brillo" al pasar el mouse */
.card-metal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.143) 0%, rgba(255, 255, 255, 0.587) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-30deg);
  transition: 0.7s;
}

.card-metal:hover::after {
  left: 150%;
}

/* Imagen con filtro industrial */
.img-metal {
  filter: sepia(20%) contrast(1.1) brightness(0.9);
  transition: all 0.4s ease;
}

.card-metal:hover .img-metal{
  filter: none;
  transform: scale(1.02);
}

.p-servicio {
  color: #e66707 !important;
}

/* Título con sombra para legibilidad */
.card-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}


#textoPaginaPrincipal {
  font-size: 1.5rem;
  line-height: 2;
  background: transparent;
  letter-spacing: 1cap;
  text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
  color: #fff6a9;
  font-family: "Sacramento", cursive;
  text-align: center;
  animation: blink 12s infinite;
  -webkit-animation: blink 12s infinite;
}

.bg {
  background-color:transparent !important;
  color: #e67e22;
  

  hr{
  color: #fff;
  }
}

/* si es de hierro y es para siem,pre se hace aqui */
.enlace:hover {
  i, span{
    color: #e67422;
  }
}

.estrellita {
  font-size: 1.5rem !important;
  color: #e67422 !important ;
  margin-right: 2px;
}
.form-control{
  color:#fff;
}

/* seccion-imagen-fija */
.seccion-imagen-fija{
 background-image:linear-gradient(var(--fondo-seccion), var(--fondo-seccion)), url(../images/galeria/img-fija3.jpg);
 background-size: cover;
background-position: center;
 background-attachment: fixed;
 background-repeat: no-repeat;
 height: 80vh;
}

@media (max-width: 1000px) {
  #contenedorTestimonios .px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 5%;
    /* Flechas más delgadas en móvil */
  }

  .seccion-imagen-fija {
    background-image: linear-gradient(rgba(0, 0, 0, 0.802), rgba(0, 0, 0, 0.802)), url(../images/galeria/img-fija1.jpg);
    background-size: 100% 100%;
  }
}


.seccion-imagen-fija{
  display: flex;
  justify-content: center;
  align-items: center;
}
 /* Contenedor del Formulario (Efecto Cristal) */
 .form-container {
   position: relative;
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   padding: 40px 50px;
   border-radius: 16px;
   width: 50%;
   box-shadow: 0 0 40px rgba(0, 242, 254, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
   transition: all 0.5s ease;
 }

 /* Esquinas decorativas estilo HUD militar/sci-fi */
 .form-container::before,
 .form-container::after {
   content: '';
   position: absolute;
   width: 20px;
   height: 20px;
   border: 2px solid var(--neon-cyan);
 }

 .form-container::before {
   top: -1px;
   left: -1px;
   border-right: none;
   border-bottom: none;
   border-top-left-radius: 16px;
 }

 .form-container::after {
   bottom: -1px;
   right: -1px;
   border-left: none;
   border-top: none;
   border-bottom-right-radius: 16px;
 }

 /* Título */
 h2 {
   font-family: 'Orbitron', sans-serif;
   text-align: center;
   font-size: 1.8rem;
   letter-spacing: 3px;
   margin-bottom: 30px;
   text-transform: uppercase;
   color: #fff;
   text-shadow: 0 0 10px var(--neon-cyan);
 }

 /* Grupos de Input */
 .input-group {
   position: relative;
   margin-bottom: 25px;
 }

 .input-group input,
 .input-group select {
   width: 100%;
   padding: 12px 15px;
   background: rgba(0, 0, 0, 0.4);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 6px;
   outline: none;
   color: #fff;
   font-family: 'Rajdhani', sans-serif;
   font-size: 1.1rem;
   letter-spacing: 1px;
   transition: all 0.3s ease;
 }

 /* Animación del borde al enfocar */
 .input-group input:focus,
 .input-group select:focus {
   border-color: var(--neon-cyan);
   box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
   background: rgba(0, 242, 254, 0.02);
 }

 /* Etiquetas flotantes animadas */
 .input-group label {
   position: absolute;
   left: 15px;
   top: 50%;
   transform: translateY(-50%);
   color: rgba(255, 255, 255, 0.5);
   pointer-events: none;
   transition: all 0.3s ease;
   text-transform: uppercase;
   font-size: 0.9rem;
   letter-spacing: 1px;
 }



 /* Botón de envío Neo-Cyber */
 .submit-btn {
   width: 100%;
   padding: 15px;
   background: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan));
   border: none;
   border-radius: 6px;
   color:var(--text-colorMenu);
   font-family: 'Orbitron', sans-serif;
   font-size: 1rem;
   font-weight: bold;
   letter-spacing: 2px;
   cursor: pointer;
   text-transform: uppercase;
   position: relative;
   overflow: hidden;
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
 }

 .submit-btn:hover {
   box-shadow: 0 0 25px rgba(0, 254, 250, 0.8);
   transform: translateY(-2px);
 }

 .submit-btn:active {
   transform: translateY(1px);
 }

 /* Efecto de brillo pasando por el botón */
 .submit-btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 50%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
   transition: all 0.6s ease;
 }

 .submit-btn:hover::before {
   left: 100%;
 }

 /* Enlaces o textos secundarios */
 .footer-text {
   margin-top: 20px;
   text-align: center;
   font-size: 0.85rem;
   color: rgba(255, 255, 255, 0.4);
   letter-spacing: 1px;
 }

 .footer-text a {
   color: var(--neon-cyan);
   text-decoration: none;
   transition: all 0.3s;
 }

 .footer-text a:hover {
   text-shadow: 0 0 5px var(--neon-cyan);
 }

 .gallery img.Active {
   aspect-ratio: 2/2;
   border-radius: 20px;
  /* 1. Tu borde sólido original */
    border: 1px solid #fefefe;
  
    /* 2. El truco del brillo: Sombra externa (neón) */
    box-shadow: 0 0 10px #fdfcfc,
      0 0 20px #fbfafa;
  
    /* Opcional: Una pequeña transición por si quieres que el brillo reaccione suavemente */
    transition: box-shadow 0.3s ease, transform 0.3s ease;

  }
  
  /* Opcional: Que brille MÁS fuerte cuando pasas el mouse por arriba (Hover) */
  .gallery img.Active:hover {
    transform: scale(1.02);
    /* Se agranda un poquito */
    box-shadow: 0 0 15px #ff5e00,
      0 0 35px #ff4800;
    /* Aumentamos el radio del brillo */
  }

/* ==========================================================
   TEMA: selector claro/oscuro moderno
   ========================================================== */
.theme-switch-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.theme-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.48);
  color: #fff;
  min-width: 132px;
  height: 42px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font: 600 .82rem/1 'Roboto', sans-serif;
  letter-spacing: .4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255,98,0,.65);
  box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 0 0 3px rgba(255,98,0,.08);
}

.theme-toggle:active {
  transform: scale(.97);
}

.theme-toggle i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff7a1a, #b7410e);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(183,65,14,.35);
  transition: transform .35s ease;
}

.theme-toggle:hover i {
  transform: rotate(18deg);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,.86);
  color: #242424;
  border-color: rgba(126,30,5,.22);
  box-shadow: 0 6px 18px rgba(67,42,24,.14), inset 0 0 0 1px rgba(255,255,255,.65);
}

[data-theme="light"] .theme-toggle i {
  background: linear-gradient(145deg, #ffd36a, #f08a24);
  color: #5c2b08;
}

@media (min-width: 1201px) {
  .theme-switch-item {
    margin-left: 3px;
  }
}

/* ==========================================================
   AJUSTE CONTACTO: BLOQUES UNO DEBAJO DEL OTRO
   ========================================================== */
.contacto-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.contacto-stack-item {
  width: 100%;
}

.contacto-stack .contacto-info,
.contacto-stack .contacto-form-card {
  width: 100%;
  box-sizing: border-box;
}

/* El formulario ocupa todo el ancho disponible y queda debajo de la información. */
.contacto-stack .contacto-form-card {
  min-height: auto;
}

/* ==========================================================
   PÁGINA DE CONTACTO
   ========================================================== */
.contacto-page {
  min-height: 70vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(183,65,14,.13), transparent 32%),
    radial-gradient(circle at 90% 70%, rgba(0,242,254,.05), transparent 28%),
    var(--bg-color);
  color: var(--text-color);
}

.contacto-hero {
  min-height: 390px;
  margin-top: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.80), rgba(0,0,0,.42)),
    url("../images/herreriaartigas.png") center/cover;
  display: flex;
  align-items: end;
}

.contacto-hero-overlay {
  width: 100%;
  padding: 130px 0 55px;
}

.contacto-kicker {
  display: inline-block;
  color: #ff7a1a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.contacto-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.contacto-hero p {
  color: rgba(255,255,255,.84);
  font-size: 1.08rem;
  max-width: 620px;
}

.contacto-section {
  margin-top: -34px;
  position: relative;
  z-index: 2;
  padding-bottom: 80px !important;
}

.contacto-info,
.contacto-form-card {
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.contacto-info {
  padding: 34px;
  color: var(--text-colorMenu);
  overflow: hidden;
}

.contacto-info h2,
.contacto-form-header h2 {
  color: var(--text-color);
  margin: 0 0 12px;
  font-family: 'Roboto', sans-serif;
  text-align: left;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

.contacto-info p,
.contacto-form-header p {
  line-height: 1.7;
  opacity: .85;
}

.contacto-dato {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.contacto-dato:last-of-type {
  border-bottom: 0;
}

.contacto-dato > i {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #d65a18, #8e2f08);
}

.contacto-dato strong,
.contacto-dato span,
.contacto-dato a {
  display: block;
}

.contacto-dato strong {
  color: var(--text-color);
  margin-bottom: 3px;
}

.contacto-dato a,
.contacto-dato span {
  color: var(--text-color);
  opacity: .82;
  text-decoration: none;
}

.contacto-dato a:hover {
  color: #B7410E;
  opacity: 1;
}

.contacto-whatsapp {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  color: #fff !important;
  background: #198754;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease;
}

.contacto-whatsapp:hover {
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.contacto-form-card {
  padding: 34px;
  background: color-mix(in srgb, var(--bg-color) 92%, #888 8%);
}

.contacto-form-header {
  margin-bottom: 24px;
}

.contacto-form-card label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-color);
  font-size: .88rem;
  font-weight: 700;
}

.contacto-form-card input,
.contacto-form-card textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  color: var(--text-color);
  background: rgba(127,127,127,.08);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contacto-form-card textarea {
  resize: vertical;
  min-height: 145px;
}

.contacto-form-card input:focus,
.contacto-form-card textarea:focus {
  border-color: #B7410E;
  box-shadow: 0 0 0 4px rgba(183,65,14,.12);
  background: rgba(127,127,127,.13);
}

.contacto-form-card input::placeholder,
.contacto-form-card textarea::placeholder {
  color: var(--text-color);
  opacity: .45;
}

.contacto-contador {
  text-align: right;
  margin-top: 5px;
  color: var(--text-color);
  opacity: .55;
  font-size: .76rem;
}

.contacto-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 50px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #d65a18, #8e2f08);
  box-shadow: 0 8px 20px rgba(183,65,14,.25);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.contacto-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(183,65,14,.32);
  filter: brightness(1.05);
}

.contacto-submit:disabled {
  opacity: .7;
  cursor: wait;
}

[data-theme="light"] .contacto-form-card {
  background: rgba(255,255,255,.94);
}

[data-theme="light"] .contacto-info {
  box-shadow: 0 18px 45px rgba(88,54,20,.12);
}

@media (max-width: 767px) {
  .contacto-hero {
    min-height: 330px;
  }

  .contacto-hero-overlay {
    padding: 115px 0 40px;
  }

  .contacto-section {
    margin-top: -20px;
  }

  .contacto-info,
  .contacto-form-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .theme-toggle {
    min-width: 125px;
  }
}


/* ==========================================================
   BOTÓN CLARO / OSCURO - PRIORIDAD SOBRE EL MENÚ
   ========================================================== */
.navbar-moderna .nav-list .theme-switch-item .theme-toggle {
  width: 150px !important;
  min-width: 150px !important;
  height: 46px !important;
  padding: 6px 12px !important;
  border: 2px solid #b7410e !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #24140e 0%, #3a1b0e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12) !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

.navbar-moderna .nav-list .theme-switch-item .theme-toggle i {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #ff9b3d, #b7410e) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 10px rgba(183,65,14,.45) !important;
}

.navbar-moderna .nav-list .theme-switch-item .theme-toggle:hover {
  background: linear-gradient(135deg, #3a1b0e 0%, #592510 100%) !important;
  border-color: #ff7a1a !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

[data-theme="light"] .navbar-moderna .nav-list .theme-switch-item .theme-toggle {
  background: linear-gradient(135deg, #fff8ef 0%, #ffe7cf 100%) !important;
  color: #4a2412 !important;
  border-color: #d65a18 !important;
  box-shadow: 0 5px 18px rgba(126,63,20,.18), inset 0 1px 0 #fff !important;
}

[data-theme="light"] .navbar-moderna .nav-list .theme-switch-item .theme-toggle i {
  background: linear-gradient(145deg, #ffd76b, #f08a24) !important;
  color: #5c2b08 !important;
}

[data-theme="light"] .navbar-moderna .nav-list .theme-switch-item .theme-toggle:hover {
  background: linear-gradient(135deg, #fffaf5 0%, #ffdcb9 100%) !important;
  color: #4a2412 !important;
}
