* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Dosis", sans-serif;
  font-size: 1em;
  color: #707070;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  margin: 0;
}

a {
  transition: all 0.3s ease;
  color: #38B;
}

a:hover,
a:focus {
  text-decoration: none;
  color: rgb(30, 57, 84);
}

a:focus {
  outline: none;
}


blockquote {
  font-size: 0.86em;
  line-height: 1.8em;
}

.tm-section-pad-top {
  padding-top: 80px;
  padding-bottom: 100px;
}

.tm-content-box {
  padding-top: 20px;
  padding-bottom: 40px;
}

.tm-text-primary {
  color: #37A;
}

.tm-font-big {
  font-size: 1.25rem;
}

.tm-btn-primary {
  color: white;
  background-color: #369;
  padding: 14px 30px;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  color: white;
  background-color: #38B;
}

/* ============================= Navbar ============================= */

.header-navbar {
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
}

.header-navbar.scroll {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
  width: 40px;
}

.nav-item {
  list-style: none;
}

.tm-nav-link {
  color: #fff;
  font-weight: bol;
  font-size: 1.1rem;
}

.header-navbar.scroll .tm-nav-link {
  color: #565454 !important;
}

.header-navbar.scroll .tm-nav-link:hover,
.header-navbar.scroll .tm-nav-link.current,
.tm-nav-link:hover {
  color: #286A9D !important;
  font-weight: 500;
}

.header-navbar.scroll .tm-nav-link {
  position: relative; 
  color: #286A9D;
  font-weight: 500;
  text-decoration: none;
}

.header-navbar.scroll .tm-nav-link::after {
  content: ''; 
  position: absolute;
  bottom: 0; 
  left: 50%; 
  width: 0%;
  height: 5px; 
  background-color: #286A9D; 
  transition: all 0.3s ease; 
  transform: translateX(-50%); 
}

.header-navbar.scroll .tm-nav-link:hover::after,
.header-navbar.scroll .tm-nav-link.current::after {
  width: 60%;
}

.navbar-toggler {
  border: 1px solid white;
  padding-left: 10px;
  padding-right: 10px;
}

.navbar-toggler-icon {
  color: white;
  padding-top: 6px;
}

.header-navbar.scroll .navbar-toggler {
  border: 1px solid #707070;
}

.header-navbar.scroll .navbar-toggler-icon {
  color: #707070;
}

@media (min-width: 768px) {
  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 30px;
    padding-left: 30px;
  }
}

/* ====================== HEADER ====================== */

#inicio {
  background-color: #222;
  background-image: url(../img/banner.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
}

@media (max-width: 1500px) {
  #inicio {
    background-position: center;
  }
}

/* ====================== NOSOTROS ====================== */

#nosotros {
  background-color: #f9f9f9;
}

.tm-section-title {
  font-size: 3.4rem;
  font-weight: 600;
  text-align: center;
}

.linea-izq,
.linea-der {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background-color: #37A;
}

.nosotros-text h3 {
  color: #2E86C1;
  font-weight: 700;
  text-align: center;
}

.nosotros-text p,
.nosotros-text ul {
  color: #000;
  font-weight: 400;
  font-size: 1rem;
  text-align: justify;
}

h4 {
  color: #37A;
}

.linea-izq {
  left: -80px;
}

.linea-der {
  right: -80px;
}

.list-unstyled li i {
  font-size: 1.2rem;
  color: #369;
}

.img-fluid {
  width: 100%;
}

.hidden {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 2s ease-out, transform 3s ease-out;
}

.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.btn-coleccion {
  display: inline-block;
  padding: 6px 15px;
  font-size: 1rem; 
  font-weight: 600; 
  color: #fff; 
  background-color: #369; 
  border: 2px solid #369; 
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-coleccion:hover {
  background-color: #2E86C1;
  border-color: #2E86C1;
  transform: translateY(-3px); 
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-coleccion:active {
  transform: translateY(0);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); 
}

@media (max-width: 768px) {

  .img-fluid {
    height: 150px;
  }

}

/* =========================== DESCRIPCIÓN =========================== */

#descripcion {
  color: white;
  background-image: url(../img/Agaves1.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  height: 300px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#descripcion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

#descripcion .content-msg {
  position: relative;
  z-index: 2;
}

.content-msg {
  width: 75%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 2s ease-out;
}

.content-msg.show {
  opacity: 1;
  transform: translateY(5px);
}

.content-msg P {
  font-size: 2rem;
  margin: 0;
}

@media (max-width: 768px) {
  #descripcion {
    height: 350px;
    padding: 50px 0 50px 0;
  }

  #descripcion .content-msg {
    width: 90%;
  }

  .content-msg p {
    font-size: 1.4rem;
    line-height: 1.5;
  }
}

@media (min-width: 768px) and (max-width: 1110px) {
  #descripcion {
    height: 400px;
    padding: 30px 0;
  }

  #descripcion .content-msg {
    width: 80%;
  }

  .content-msg p {
    font-size: 1.7rem; 
    line-height: 1.6;
  }
}


/* ============================= PRODUCTOS ============================= */

#productos {
  padding: 100px 0;
  background-image: url('../img/dust_scratches.png');
}

.item-servicio {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  padding: 30px 0 30px 0;

}

.texto-servicio {
  max-width: 40%;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title {
  font-size: 3.4rem;
  font-weight: 600;
  margin: 0;
}

.line {
  flex: 0 0 50px;
  height: 2px;
}

.texto-servicio p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #262626;
  margin-bottom: 20px;
  text-align: justify;
  width: 85%;
  margin: 0 auto;
}

/* Imagen con fondo */
.image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 450px;
}

.color-box {
  position: absolute;
  top: -40px;
  left: 40px;
  width: 100%;
  height: 100%;
  background-color: #ebe5df;
  z-index: 1;
}

.color-box-izquierda {
  position: absolute;
  top: 40px;
  left: -40px;
  width: 100%;
  height: 100%;
  background-color: #ebe5df;
  z-index: 1;
}

.service-image {
  position: relative;
  z-index: 2;
  width: 100%;
}

.item-servicio {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.item-servicio.visible {
  opacity: 1;
  transform: translateY(0);
}

.margin {
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .item-servicio {
    flex-direction: column;
    text-align: center;
  }

  .texto-servicio {
    max-width: 100%;
    padding: 10px;
  }

  .texto-servicio h2 {
    font-size: 2rem;
  }

  .texto-servicio p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .image-wrapper {
    max-width: 80%;
    margin: 0 auto;
  }

  .responsive {
    order: 2;
  }

  .color-box {
    position: absolute;
    top: -10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-color: #f8ece6;
    /* background-color: #d3d5d6; */
    z-index: 1;
  }

  .color-box-izquierda {
    position: absolute;
    top: 10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background-color: #f8ece6;
    /* background-color: #d3d5d6; */
    z-index: 1;
  }

  .margin {
    margin-bottom: 0;
  }
}

/* =========================== AGAVERA MAGAÑA =========================== */

.contenedor-agavera {
  margin-top: 50px;
  margin-bottom: 50px;
}

.about-img {
  position: relative;
  height: 100%;
  min-height: 600px;
}

.about-img img {
  position: absolute;
  width: 60%;
  height: 80%;
  object-fit: cover;
}

.about-img img:last-child {
  margin: 20% 0 0 40%;
}

.agavera h2 {
  text-align: center;
  font-size: 40px;
}

.agavera p {
  font-size: 1rem;
  color: #000;
  text-align: justify;
}

.agavera h3,
.agavera h1 {
  color: #000;
}

.bordeyear {
  border-right: 4px solid rgb(51, 102, 153);
  margin-right: 20px;
}

@media (min-width: 500px) and (max-width: 991px) {
  .agavera {
    margin-top: 70px;
  }
}

@media (max-width: 499px) {

  .about-img {
    position: relative;
    height: 100%;
    min-height: 400px;
  }

}
/* =========================== CONTACTO =========================== */

#contact {
  color: #000;
  background-color: #f9f9f9;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 880px;
  position: relative;
  padding-bottom: 50px;
  padding-top: 100px;
}

.tm-container-contact {
  max-width: 1000px;
  margin: 0 auto;
}

/* Formulario */
.contact-form {
  width: 90%;
  margin: 0 auto;
  background-color: #f4f3f2;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #369;
}

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  color: rgb(31, 91, 152);
  margin-bottom: 8px;
}

.input,
.textarea-form {
  width: 100%;
  padding: 5px;
  border: 1px solid #369;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #5a5a5a;
  box-sizing: border-box;
  background-color: #F7F7F7;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.input:focus,
.textarea-form:focus {
  border: 1px solid #369;
  box-shadow: 0 0 5px rgba(135, 128, 230, 0.5);
}

.textarea-form {
  min-height: 100px;
}

.btn {
  background-color: transparent;
  border: solid 3px #369;
  padding: 5px 20px;
  margin-top: 20px;
  color: rgb(27, 87, 147);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
  transition: .2s;
  text-align: center;
  width: 30%;
  margin: 0 auto;
}

.btn:hover {
  cursor: pointer;
  color: #fff;
  background-color: #369;
  transform: scale(1.05);
}

.contact-form::before {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background-color: #369;
  margin: 0 auto 20px auto;
  border-radius: 10px;
}


/* Información de contacto */
.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.contact-item {
  margin-bottom: 20px;
}

.item-link {
  display: flex;
  align-items: center;
  color: #444;
  text-decoration: none;
  font-size: 1rem;
}

.item-link .icono {
  color: #369;
  margin-right: 10px;
}

@media (max-width: 768px) {

  .contact-form {
    width: 90%;
    padding: 15px 20px;
  }

  textarea {
    min-height: 80px;
  }

  .btn {
    padding: 5px 20px;
    font-size: 15px;
    font-weight: 900;
  }

  .tel {
    margin-top: 50px;
  }

  .info {
    width: 80%;
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1110px) {
  .contact-form {
    width: 90%;
    padding: 15px 20px;
  }
}

/* =========================== FOOTER =========================== */

.footer {
  background-color: #25648e;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  padding: 10px;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.footer-section h4 {
  font-size: 25px;
  font-weight: 700;
  color: #e4e9ec;
  margin-bottom: 15px;
}

.footer-section h4::after {
  content: ''; 
  position: absolute;
  bottom: 0; 
  left: 50%; 
  width: 0%;
  height: 5px; 
  background-color: #ffffff; 
  transition: all 0.3s ease; 
  transform: translateX(-50%); 
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: #fff;
  margin: 5px 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section li {
  list-style: none;
}

.footer-section a:hover {
  color: #76c7f0;
}

/* Redes sociales */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 2px solid #fff;
  padding-top: 20px;
  width: 90%;
  margin: 0 auto;
}

.social-icons a {
  color: #ddd;
  font-size: 20px;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #76c7f0;
  transform: scale(1.2);
}

.footer-bottom p {
  font-size: 12px;
  color: #bbb;
  margin: 10px 0;
}

.footer-bottom a {
  color: #76c7f0;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .footer-section {
      margin-bottom: 20px;
  }
}

/* ====================== Pantalla de verificación ====================== */

.verificacion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0e27, #369);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.verificacion-contenedor {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.verificacion img {
  width: 150px;
  margin-bottom: 20px;
}

.verificacion h1 {
  color: #0a0e27;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.verificacion .msg-texto {
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}

.input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.input-mes,
.input-año {
  padding: 12px;
  width: 80px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s;
}

.input-mes:focus,
.input-año:focus {
  border-color: #369;
}

.button-confirmar {
  padding: 12px 30px;
  font-size: 1rem;
  background-color: #0a0e27;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button-confirmar:hover {
  background-color: #2c54a0;
}

/* Mensaje de error */
#error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
}

@media (max-width: 768px) {
  .verificacion-contenedor {
      padding: 20px;
      border-radius: 15px;
  }

  .verificacion img {
      width: 100px;
  }

  .verificacion h1 {
      font-size: 1.8rem;
  }

  .input-mes,
  .input-año {
      width: 70px;
      padding: 10px;
      font-size: 0.9rem;
  }

  .button-confirmar {
      padding: 10px 20px;
      font-size: 0.9rem;
  }
}