/* --------VARIABLES------- */

:root {
  /* ------COLORES------ */
  --fondo-color: #126aa9;
  --button-color: #126aa9;
  --h3-color-secundario: #0d4a73;
  --titulo-color: #ffffff;
  --parrafo-color: #e6e6e6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

h1,
h2 {
  color: var(--titulo-color);
}

/* --------------------------HEADER------- */

header {
  width: 100%;
  background-color: #111111e8;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 90px;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-toggle {
  font-size: 1.8rem;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

.nav-links i:hover {
  color: var(--fondo-color);
}

.cart-icon {
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a:hover {
  color: var(--fondo-color);
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ------------------------- */
.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
}

.img-carrito {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.item-carrito i {
  cursor: pointer;
  color: red;
}

/* --------- */

.nav-icons {
  position: relative;
}

#contador-carrito {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 0px 4px;
  font-size: 12px;
  display: none;
}

/* ------ESTO ESTA DENTRO DEL CARRITO */
.contenedor-total-pago {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 5px;
}

.cart-item-info h4 {
  font-size: 14px;
  margin: 0 0 5px;
  color: #fff;
}

.cart-item-info p {
  font-size: 13px;
  margin: 0;
  color: #ccc;
}

/* === DISEÑO DEL PANEL DEL CARRITO === */
.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #222222;
  color: white;
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 1100;
} /* AQUI TERMINA EL DISEÑO DEL PANEL DEL CARRITO*/

/* ----------ESTILO DEL DISEÑO DEL BOTON PAGAN */

.btn-pagar {
  margin-top: 30px;
  padding: 12px 25px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background-color: red;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.btn-pagar:hover {
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.47),
    0 0 20px rgba(255, 255, 255, 0.395);
  transform: scale(1.05);
}
/* ---------------------AQUI TERMINA EL DISEÑO DE PAGAR */

.nav-icons i:hover {
  color: var(--fondo-color);
}

.cart-panel.show {
  right: 0;
}

.cart-panel h2 {
  margin-bottom: 20px;
}

.cart-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-panel i:hover {
  color: var(--fondo-color);
}

.nav-links i {
  display: none;
}

/* -------------BANNER CONTACTENOS ------ */
.seccion-contactenos {
  height: 50vh;
  background-image: url(../img/imagenes-contactenos/radiant-customer-service-representative-with-headphones-sundrenched-office-epitomizing-friendly-assistance_1160871-15390.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ------------SECCION CONTACTO --------- */
.contactos {
  height: 80vh;
}

.contactos-titulo {
  text-align: center;
  padding: 10px;
}

.contactos-titulo h3 {
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  color: var(--h3-color-secundario);
  font-weight: 800;
  padding: 20px;
}

.contactos-titulo p {
  padding: 0 25px;
  text-align: center;
  color: #828282;
  margin-bottom: 70px;
}

.contacto-cards {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
  gap: 10px;
  padding: 0 15px;
}

.contacto-item {
  text-align: center;
  width: 130px;
  height: auto;
}

.contacto-item i {
  font-size: 45px;
  color: #f1cc12;
  margin-bottom: 20px;
}

.contacto-item i:hover {
  color: var(--fondo-color);
}

.in {
  color: var(--fondo-color) !important;
  font-size: 30px !important;
}

.contacto-item h3 {
  color: var(--h3-color-secundario);
  padding-bottom: 20px;
  font-size: clamp(16px, 2.5vw, 20px);
}

.contacto-item p {
  color: #828282;
  font-size: clamp(14px, 2.5vw, 17px);
}

/* -----------SECCION FORMULARIO-------- */
.seccion-formulario {
  background:
    linear-gradient(#00000079, #00000093),
    url(../img/imagenes-contactenos/formulario-fondo.jpg);
  background-size: cover;
  background-position: center;
  padding: 50px 30px;
}

.contenido-formulario {
  max-width: 1100px;
  margin: auto;
  padding: 0 15px;
}

.seccion-formulario h2 {
  padding: 10px 0 20px 0;
  font-size: 40px;
  text-align: center;
  color: #fff;
}

.seccion-formulario p {
  color: var(--parrafo-color);
  text-align: center;
  padding: 0 150px;
  margin-bottom: 40px;
}

textarea {
  margin-top: 10px;
}

label {
  color: #fff;
}

.fila {
  max-width: 700px;
  margin: auto;
}

.formulario input {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  margin-bottom: 45px;
  background-color: #fff;
  color: #000000;
  font-size: 18px;
  margin-top: 10px;
}

.formulario textarea {
  width: 100%;
  height: 100px;
}

.botones-formulaio {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.botones-formulaio button {
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #fff;
  display: block;
  margin-top: 15px;
  padding: 10px 22px;
  font-size: 16px;
  color: #fff;
}

.botones-formulaio button:hover {
  background-color: var(--fondo-color);
}

.mensaje-alerta {
  position: fixed;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);
  background-color: #ff4d4d;
  color: white;
  padding: 45px 35px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mensaje-alerta.mostrar {
  opacity: 1;
}

.oculto {
  display: none;
}

.cerrar-alerta:hover {
  color: #ddd;
}

/* -----------SECCION  MAPA--- */
.seccion-mapa {
  border-bottom: 25px solid var(--fondo-color);
}

.mapa-texto {
  text-align: center;
  padding: 10px;
}

.mapa-texto h3 {
  color: var(--h3-color-secundario);
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  margin-bottom: 20px;
  margin-top: 30px;
}

.mapa-texto p {
  color: #828282;
  margin-bottom: 35px;
}

/* ---------------FOOTER----------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 170px;
  background-color: var(--h3-color-secundario);
  border-top: 25px solid #075c94;
}

.derechos-logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  gap: 140px;
}

.footer-logo img {
  max-width: 120px;
}

.footer-logo img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.ul-redes {
  display: flex;
  gap: 10px;
}

.ul-redes i {
  color: #fff;
  font-size: 25px;
  border: 2px solid #fff;
  padding: 8px;
}

.ul-redes i:hover {
  background-color: #fff;
  color: #044774;
}

@media screen and (max-width: 1024px) {
  .seccion-contactenos {
    height: 40vh;
  }
}

@media screen and (max-width: 768px) {
  .seccion-contactenos {
    height: 30vh;
  }

  header {
    background-color: #111111be;
  }

  .logo {
    width: 70px;
  }

  .nav-toggle {
    display: block;
  }

  /* ---DISEÑO DEL MENU DESPEGABLE EN CELULARES--- */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 50vh;
    width: 50%;
    background-color: #111;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
  }

  /* ----ESTE .SHOW ES SOLO PARA JAVASCRIP SI EN NAV-LINKS TENEMOS RIGTH:-100% CON EL NUEVO VALOR DE .SHOW HACEMOS QUE SE DESLICE*/
  .nav-links.show {
    right: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
  }

  .nav-links i {
    display: block;
  }

  #menu-toggle {
    display: block;
  }

  .nav-links li:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
  }

  /* ----------SECCION FORMULARIO ----- */
  .contenido-formulario {
    padding: 0 30px;
  }

  .contenido-formulario p {
    padding: 0 10px;
  }

  /* ---------SECCION CONTACTO---- */
  .contactos {
    height: 70vh;
  }

  /* -----SECCION FOOTER */
  .footer {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
    gap: 20px;
  }

  .derechos-logo {
    flex-direction: column;
    gap: 20px;
    font-size: 10px;
    text-align: center;
  }

  .ul-redes {
    justify-content: center;
  }

  .ul-redes i {
    font-size: 18px;
  }
}
