/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

/* TIPOGRAFÍA */
body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

/* ENCABEZADO  anterior */ 
/* .header {
  background-image: url('images/Fondo.png');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: white;
  padding: 0 8vw 12vh;
  text-align: left;
  padding-bottom: 12vh;
} */
.header {
  position: relative;
  min-height: 88vh;
  color: white;

  background-image:
    linear-gradient(
      to right,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.7) 28%,
      rgba(0,0,0,0.35) 48%,
      rgba(0,0,0,0.1) 62%,
      rgba(0,0,0,0) 75%
    ),
    url('images/Fondo.png');

  background-size: cover;
  background-position: 75% center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;   /* 👈 CLAVE */
}


.header h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.header p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.4;
}


/* .header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
} */
.header .container {
  position: relative;
  z-index: 2;

  max-width: 1080px;
  margin-left: 6vw;

  padding-top: 18vh;    /* 👈 baja el texto */
  padding-bottom: 6vh;  /* 👈 lo mantiene separado del borde */

  text-align: left;
}


/* BOTÓN */
#guasap {
  display: inline-flex;            
  align-items: center;
  justify-content: center;
  margin-top: 16px;

  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 500;

  padding: 0.6em 1.4em;            
  margin: 24px 0;

  border-radius: 999px;             
  text-decoration: none;

  color: #ffffff;
  background-color: rgba(0,0,0,0.85);

  transition: background-color 0.3s ease, transform 0.2s ease;
}
#guasap:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #0d1bdc 100%);
  transform: translateY(-1px);
}
/* NAVBAR */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
}
.logo img {
  width: 300px;
  height: auto;
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 20;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1300px;
  padding: 0 25px;
}

/* GRID DE PRODUCTOS */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff; /* fondo blanco solo para la franja */
  padding: 20px;
  border-radius: 12px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
}

.card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: rgba(0,0,0,0.7);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 3;
}

/* LISTADO HOVER */
.hover-list {
  list-style: none;
  margin: 0;
  padding: 15px;
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 1.093rem;
  transition: bottom 0.4s ease;
  padding-bottom: 50px;
  z-index: 1;
}

.card:hover .hover-list {
  bottom: 40px;
}

.hover-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hover-list li:last-child {
  border-bottom: none;
}
/*FORMULARIO DE CONTACTO*/

.contacto-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 60px auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Título del formulario */
.titulo-form {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.titulo-form::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg,  #383a40 0%, #323133 100%);
  border-radius: 2px;
}

/* Contenedor del formulario */
.contacto-container .form {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid #eaeaea;
}

/* Grupo de inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Labels */
.input-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inputs y textareas */
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  color: #2c3e50;
  outline: none;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #667eea;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #6c757d;
  opacity: 0.7;
}

/* Textarea específico */
.input-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Botón de enviar */
.input-group .btn {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #383a40 0%, #323133 100%);
  cursor: pointer;
  padding: 16px 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.input-group .btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #0d1bdc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Sección de información de contacto */
.contacto-container .info {
  flex: 0 0 300px;
  background: linear-gradient(135deg, #383a40 0%, #323133 100%);
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.contacto-container .info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacto-container .info li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: flex-start;
}

.contacto-container .info li:last-child {
  border-bottom: none;
}

.contacto-container .info strong {
  display: inline-block;
  min-width: 160px;
  font-weight: 600;
  opacity: 0.9;
}

/* Responsive mobile */
@media (max-width: 900px) {
  .contacto-container {
    flex-direction: column;
    gap: 30px;
    padding: 30px 25px;
    margin: 40px 20px;
  }
  
  .contacto-container .info {
    flex: none;
    width: 100%;
    margin-right: 0;
    margin-top: 0;
  }
  
  .contacto-container .form {
    padding: 30px 25px;
  }
  
  .titulo-form {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .contacto-container {
    padding: 25px 20px;
    margin: 30px 15px;
  }
  
  .contacto-container .form {
    padding: 25px 20px;
  }
  
  .contacto-container .info {
    padding: 25px 20px;
  }
  
  .contacto-container .info li {
    flex-direction: column;
    gap: 5px;
  }
  
  .contacto-container .info strong {
    min-width: auto;
  }
  
  .titulo-form {
    font-size: 22px;
  }
}

/* PIE DE PÁGINA */
.footer {
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('images/fondo-antesdeFooter.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  font-size: 14px;
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.footer-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  z-index: 2;
}
.footer h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer p,
.footer li {
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.6;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer-col-1,
.footer-col-2,
.footer-col-3 {
  flex: 1;
  min-width: 250px;
}
.footer-col-2 img {
  width: 400px;
  height: auto;
  margin-bottom: 10px;
}

.footer::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.footer-col-3 ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-3 li{
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.footer-col-3:hover{
  color: #ffffff;
  border-bottom-color: #ffffff;
  transform: translateX(5px);
}

.redes-sociales{
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  justify-content: center;
}

.redes-sociales li a{
  color: white;
  font-size: 40px;
  transition: color 0.3s ease, transform 0.3s ease;

}
.redes-sociales li a:hover{
  color: #f5b301;
  transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 100%),
      url('images/Fondo.png');

    background-size: cover;
    background-position: center top;
    padding: 0 6vw 8vh;
  }

  .header .container {
    margin-top: 260px;
    max-width: 100%;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    padding: 10px;
  }
  .footer {
    padding: 30px 15px;
  }
  .footer-col-1, .footer-col-2, .footer-col-3{
    min-width: 100%;
  }
  .footer-col-2 img{
    width: 250px;
  }
}

  @media(max-height: 800px){
    .header{
      padding-bottom: 8vh;
    }
  } 
/* Notebooks 15" – Windows (110%–125% scaling) */
@media (max-width: 1600px) and (min-width: 1280px) and (max-height: 900px) {

  .header {
    min-height: 85vh;

    /* Imagen libre para moverse */
    background-image: url('images/Fondo.png');
    background-size: 110% auto;
    background-position-x: 340px;
    background-position-y: 42%;
    background-repeat: no-repeat;

    position: relative; /* CLAVE para el ::before */
  }

  /* Capa que cubre el vacío y controla el fade */
  .header::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.97) 25%,
    rgba(0,0,0,0.75) 38%,   /* 👈 refuerzo zona crítica */
    rgba(0,0,0,0.75) 48%,  /* 👈 tapa la “costura” */
    rgba(0,0,0,0.45) 62%,
    rgba(0,0,0,0.2) 75%,
    rgba(0,0,0,0) 88%
  );

  z-index: 1;
  pointer-events: none;
}

  /* Contenido por encima del degradado */
  .header .container {
    position: relative;
    z-index: 2;

    max-width: 750px;
    margin-left: 4vw;
    padding-top: 14vh;
    padding-bottom: 4vh;
  }

  .header h1 {
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    line-height: 1.15;
  }

  .header p {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.35;
  }
}
