/* ======================================================
   CONFIGURACIÓN GENERAL
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  color: #111;
}

.section-subtitle {
  color: #555;
  margin-bottom: 2em;
  font-weight: 300;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 100;
  padding: 0.8em 0;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px); 
}

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

.nav-logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 2em;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #e50019;
}

.nav-links .active {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    width: 100%;
    display: none;
    text-align: center;
    padding: 1.5em 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* =========================================
   TELÉFONO EN NAVBAR
========================================= */
.nav-phone a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  padding-left: 230px;
}

.nav-phone a:hover {
  color: #e50019;
}

.nav-phone i {
  font-size: 1rem;
}

.nav-phone.desktop {
  display: flex;
  align-items: center;
}

.nav-phone.mobile {
  display: none;
}

@media (max-width: 992px) {
  .nav-phone.desktop {
    display: none;
  }

  .nav-phone.mobile {
    display: block;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
  }
}



/* ======================================================
   HERO (VIDEO LOCAL + CONTROLES AJUSTADO FINAL)
====================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;       
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  border: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.hc-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.hc-btn:hover { opacity: 0.7; }

.hc-progress {
  position: relative;
  width: 280px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
#progressBarFill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #e50019;
  transition: width 0.1s linear;
}


@media (max-width: 768px) {
  body, html {
    margin: 0;
    padding: 0;
    background: #000; 
  }

  .hero {
    height: auto;
    margin: 60px 0 0 0;
    padding: 0;
    background: #000;
    }


  .hero-video {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .hero-controls {
    position: relative;
    bottom: 0;
    transform: none;
    left: 0;
    margin: 0 auto;
    margin-top: 0;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    border-radius: 0;
    padding: 10px 0;
  }

  .hc-progress {
    width: 70%;
  }
}

@media (min-width: 769px) {
  .hero-controls {
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  .hero-controls.hidden {
    opacity: 0;
    pointer-events: none;
  }
}



/* ======================================================
   PRODUCTOS
====================================================== */
.productos {
  background: #f7f7f7;
  padding: 5em 0;
  text-align: center;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

.producto-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.producto-card:hover {
  transform: translateY(-6px);
}

.producto-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.producto-info {
  padding: 1.2em;
  text-align: left;
}
.producto-info h3 {
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 0.3em;
}
.etiqueta {
  display: inline-block;
  background: #e50019;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 0.6em;
}
.precio {
  color: #e50019;
  font-weight: 600;
  margin-top: 0.4em;
}
.btn {
  display: inline-block;
  margin-top: 0.8em;
  padding: 8px 18px;
  border: 1px solid #e50019;
  border-radius: 4px;
  color: #e50019;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #e50019;
  color: #fff;
}

@media (max-width: 992px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   BOTÓN - EXPLORAR TODOS LOS PRODUCTOS
====================================================== */
.productos-vermas {
  margin-top: 40px;
  text-align: center;
}

.btn-explorar {
  display: inline-block;
  background: #e50019;
  color: #fff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(229, 0, 25, 0.25);
}

.btn-explorar:hover {
  background: #b90014;
  box-shadow: 0 6px 16px rgba(229, 0, 25, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .btn-explorar {
    width: 90%;
    max-width: 300px;
  }
}


/* ======================================================
   SECCIÓN DE CONTACTO / AGENDA TU LLAMADA (FINAL LIMPIO)
====================================================== */
.agenda {
  background: #fff;
  padding: 0;
  margin-bottom: 60px;
}

.agenda-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 480px;
}

.agenda-imagen {
  flex: 1;
  background: url('media/fondo_formulario.jpg') center/cover no-repeat;
  min-height: 400px;
}

.agenda-form {
  flex: 1;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: center;      
  justify-content: center; 
  padding: 60px 50px 80px;  
  text-align: center; 
}


.agenda-texto {
  margin-bottom: 25px;
}

.agenda-texto h2 {
  font-size: 1.9rem;
  color: #111;
  margin-bottom: 10px;
  font-weight: 600;
}

.agenda-texto p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

.agenda-form form {
  width: 100%;
  max-width: 420px;
}

.form-group {
  margin-bottom: 18px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

textarea {
  height: 120px;
  resize: none;
}

.btn-enviar {
  background: #e50019;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.btn-enviar:hover {
  background: #b90014;
}

@media (max-width: 992px) {
  .agenda-container {
    flex-direction: column;
  }

  .agenda-imagen {
    min-height: 260px;
  }

  .agenda-form {
    padding: 40px 25px;
    align-items: center;
    text-align: center;
  }

  .agenda-texto {
    margin-bottom: 20px;
  }

  .agenda-form form {
    max-width: 100%;
  }
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #111;
  color: #fff;
  padding: 3em 0 1.5em;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  width: 90%;
  flex-wrap: wrap;
}

.footer-left img {
  height: 60px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin: 3px 0;
  color: #ddd;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2em;
  padding-top: 1em;
  color: #aaa;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
  }
  .footer-right {
    text-align: center;
  }
}

