:root {
  --color-title: #884d0d;
  --color-hover: #D9B21A; 
  --color-enlacehover:#f4d35e;
  --color-nav-hover: #b47927;
  --color_texts: #341a0c;
  --color-primary: #fff;
}

.bg-azulOscuro{
  background-color: #0d1b2a !important; /*Color fondo top-bar y footer*/
}

.bg-light{
  background-color: rgba(34, 13, 7, 0.1) !important; /*Color de fondo secciones claras*/
}

.text-warning{
  color: rgba(180, 121, 39, 1) !important;  /*Color enlaces*/
}

body {
  font-family: 'Roboto Condensed', sans-serif;
}

/*TIPOGRAFIAS*/

.title_white {
  color: var(--color-primary);
}

p {
  font-size: 1.3em;
  line-height: 1.6;
  font-weight: normal;
  color: var(--color_texts);
}

h2 {
  font-size: 2.2em;
  color: #7B4F24;
  /* tono madera oscuro y elegante */
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 1.2px;
  position: relative;
}

/* Línea decorativa superior */
h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #A97453, #5B3A0A);
  margin: 0 auto 8px;
  border-radius: 1px;
}

/* Línea decorativa inferior */
h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #5B3A0A, var(--color-hover));
  margin: 8px auto 0;
  border-radius: 2px;
}

.text-justify {
  text-align: justify;
}

/*TOPBAR*/

.topbar {
  font-size: 1.2em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.topbar i:hover {
  color: var(--color-hover);
}

.topbar a {
  color: white;
  transition: color 0.2s;
  text-decoration: none;
}

.topbar a:hover i {
  color: var(--color-hover);
}

.titulo-menulateral {
  color: #B47927;
}



/*HERO*/
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: white;
}

.video-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.carousel-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

.carousel-video.active {
  opacity: 1;
}

.hero-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  z-index: 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, /* Gama de café: caramelo, moka, espresso */
      #b56b32,
      #8c4c2c,
      #5c2e1a);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease-in-out;
  z-index: -1;
}

.nav-link:hover {
  color: var(--color-nav-hover);
  transform: translateY(-2px) scale(1.05);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--color-nav-hover) !important;
  border-bottom: 3px solid #8c4c2c;
}

.dropdown-menu {
  background-color: rgba(34, 13, 7, 0.3); /* Fondo semi-transparente madera oscura */
  border-radius: 0px;
  padding: 0.5rem 0;
  min-width: 230px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease both;
  font-family: 'Roboto Condensed', sans-serif;
}

/* Animación suave de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo general de los ítems */
.dropdown-item {
  color: var(--color-primary);
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px;
}

/* Hover estilizado con color dorado suave */
.dropdown-item:hover {
  background: rgba(212, 163, 59, 0.15); /* Dorado suave translúcido */
  color: var(--color-hover);
  padding-left: 1.5rem;
  box-shadow: inset 4px 0 0 var(--color-hover);
}



.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-paragraph {
  font-size: 1.25rem;
}

/* Responsive Text Sizes */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-paragraph {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  #menuLateral .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
}

/* BOTÓN COTIZACION */

.cotizacion {
  display: inline-block;
  color: #291e16;
  border-radius: 8px;
  border: 0 solid transparent;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  background: rgba(230, 141, 24, 0.3);
  transform: scale(1.05);
  color: var(--color-primary);
}

.cotizacion::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #e99504;
  margin: 6px auto 0;
  transition: width 0.4s ease-in-out;
}

.cotizacion:hover::after {
  width: 100%;
}

.cotizacion:hover{
  font-weight: 700;
  background: rgba(230, 141, 24, 0.1);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/*SOBRE NOSOTROS*/

blockquote {
  font-size: 1.3em;
  font-style: italic;
  text-align: justify;
  border-left: 4px solid var(--color-title);
  padding-left: 1rem;
  margin: 0 30px;
}


@media (max-width: 768px) {
  .carousel-video {
    clip-path: none;
  }
}

/* servicios */

.servicios {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; 
  padding: 5% 5%;
  text-align: center;
  background-image: url(../media/imagenes/fondos/fondo-servicios.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
}

.servicios h2 {
  margin-bottom: 3rem;
}

.pasos {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-backdrop-filter: blur(2px); /* Safari */
  backdrop-filter: blur(2px);  
  height: 100%;
}

.pasos:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.icono {
  width: 80px;
  height: 80px;
  background-color: #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -50px auto 1.5rem;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  transform: translateY(-40%);
  position: relative;
  z-index: 2;
}

.icono img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0.95);
}

.pasos h3 {
  margin: 0.5rem 0;
  font-weight: 600;
  color: var(--color-hover);
}

.pasos p {
  font-size: 1.2em;
  color: var(--color-primary);
}

/*CATALOGO*/

.card-img-top {
  filter: brightness(50%);
  transition: filter 0.4s ease;
}

.card:hover .card-img-top {
  filter: brightness(100%);
}

.card {
  transition: box-shadow 0.3s ease, transform 0.3s ease, border 0.3s ease;
  border: 2px solid transparent; 
}

.link-catalogo {
  color: rgba(128, 128, 128, 0.7); /* Gris opaco */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-catalogo:hover {
  color: var(--color-nav-hover); /* Tu color de hover */
}


/*CONTACTO*/
  #contacto .container {
  max-width: 1050px;  /* Ajusta el ancho general */
  margin: 0 auto;
  }

.seccion-contacto {
  background-image: url(../media/imagenes/fondos/fondo-contacto.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  position: relative;
  background-attachment: scroll; /* Corrige el problema en móviles */
}

/* OPCIONAL: Solo en pantallas grandes el efecto fijo */
@media (min-width: 768px) {
  .seccion-contacto {
    background-attachment: fixed;
  }
}

.contacto-info {
  background-color: rgba(244, 211, 94, 0.4); 
  -webkit-backdrop-filter: blur(3px); /* Safari */
  backdrop-filter: blur(3px);   
  color: white;
}

.contacto-info .info-item {
  font-size: 1.4rem;
  color: var(--color_texts);
  padding-left:5%
}

.contacto-info .icono-blanco {
  font-size: 2rem;
  color: var(--color-primary);
}

.contacto-formulario {
  max-width: 100%;           
  min-height: 600px;         
  height: auto;             
  background-color: rgba(255, 255, 255, 0.4); 
  padding: 60px;
  color: #fff; 
}

input, textarea, select{
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  color: #999;
}

.contacto-formulario .form-control,
.contacto-formulario .form-select,
.contacto-formulario textarea,
.form-check-label{
  font-size: 1.0rem;
  padding: 0.8rem 1rem;
}

.form-check{
  padding-left: 6%;
}

input::placeholder,
textarea::placeholder {
  color: #555;
}

.punteado {    /*enlace politica de privacidad*/
  color: var(--color-title);
  text-decoration: underline dotted;
  transition: color 0.3s;
}

.punteado:hover {
  color:var(--color-hover);
}

.btn-enviar {
  width: 120px;
  background-color: rgba(217, 178 , 26, 0.5);
}

.btn-enviar:hover{
  background: var(--color-hover);
}


/*FOOTER*/

footer {
  color: #fff;
  padding: 2rem 0;
}

.footer-title {
  color: var(--color-title);
  text-decoration: none;
}

.footer-nav a{
  font-size: 1.2rem;
  text-decoration: none;
  color:var(--color-primary);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-hover); /* color al pasar el mouse */
  outline: none;
}

.social-icons a {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--color-nav-hover);
  color: var(--footer-bg);
}

.hover_gray {
  color: #999!important;
}

.hover_gray:hover {
  color: var(--color-primary) !important;
  text-decoration: none;
}

.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  color: #fff; /* Color del ^ */
  border-radius: 50%;
  padding: 10px 0px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
  transition: background-color 0.3s ease, transform 0.3s ease;
}


/*ANIMACIONES*/

.btn-scroll-top:hover {  /*animacion boton inicio*/
  transform: scale(1.1);
  animation: jump 0.3s ease forwards;
}

@keyframes jump {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.slide-down {     /*animacion barra nav y hero*/
  transform: translateY(-100%);
  opacity: 0;
  animation: slideDown 0.6s ease-out forwards;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-in-left,        /* animacion seccion sobre nosotros*/
.slide-in-right {
  opacity: 0;
}

.slide-in-left.active {  
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right.active {  
  animation: slideInRight 0.8s ease-out forwards;
}


@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20vw); 
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20vw);  
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.paso-animado {   /*animacion seccion de servicios*/
  opacity: 0;
  transform: translateY(30px);
}

.paso-animado.active {
  animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-animada {   /*animacion seccion catalogo*/
  opacity: 0;
  transform: scale(0.95);
}

.card-animada.active {
  animation: fadeZoomIn 0.8s ease-out forwards;
}

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-slide-up {
  opacity: 0;
  transform: translateY(0px);
}

.fade-slide-up.active {
  animation: fadeSlideUp 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s); 
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(30px);
  }
}

.slide-up {         /*animacion seccion contacto*/
  transform: translateY(20%);
  opacity: 0;
}

.slide-up.active {
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

