/* ======================================================
   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); /* 🔹 efecto de difuminado elegante */
}

.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;
}

/* 🔹 Hover igual */
.nav-links a:hover {
  color: #e50019;
}

/* 🔹 Enlace activo ya no cambia de color */
.nav-links .active {
  color: #fff;
}


/* --- Hamburguesa --- */
.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;
}

/* --- Celular --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.85); /* un poco más sólida para legibilidad en menú desplegable */
    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;
}

/* En escritorio: mostrar teléfono a la derecha */
.nav-phone.desktop {
  display: flex;
  align-items: center;
}

/* En móvil: ocultar versión escritorio y mostrar dentro del menú */
.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;
  }
}




/* ======================================================
   DETALLE DE PRODUCTO
====================================================== */
.detalle-producto {
  background: #fff;
  padding: 90px 40px;
  padding-top: 140px;
}
.detalle-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* --- Galería --- */
.producto-galeria {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.imagen-principal {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #eee;
}
.imagen-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.imagen-principal:hover img {
  transform: scale(1.08);
}

.etiqueta {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e50019;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.miniaturas {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.miniaturas img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.miniaturas img:hover {
  transform: scale(1.05);
}
.miniaturas .active {
  border-color: #e50019;
}

/* --- Info del producto --- */
.producto-info h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #111;
}
.producto-info .descripcion {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 18px;
}
.precio {
  color: #e50019;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.btn-asesor {
  display: inline-block;
  background: #e50019;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn-asesor:hover {
  background: #b90014;
}

@media (max-width: 768px) {
  .detalle-producto {
  padding-top: 120px;
}
}

/* Leyenda de transacción segura */
.seguridad {
  font-size: 0.95rem;
  color: #2b2b2b;
  background: #f5f5f5;
  padding: 10px 15px;
  border-left: 4px solid #e50019;
  border-radius: 6px;
  margin: 10px 0 20px;
  display: inline-block;
  font-weight: 500;
}

.seguridad span {
  color: #e50019;
  font-weight: 600;
}


/* ======================================================
   MODAL DE ZOOM DE IMAGEN
====================================================== */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.zoom-modal img {
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* ======================================================
   SLIDER MÓVIL
====================================================== */
.slider {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.slider .slide {
  min-width: 100%;
  transition: transform 0.4s ease;
  object-fit: cover;
}

/* ======================================================
   PUNTOS INDICADORES DEL SLIDER (SOLO MÓVIL)
====================================================== */
@media (max-width: 768px) {
  .puntos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
  }

  .puntos span {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .puntos span.active {
    background: #e50019;
    transform: scale(1.2);
    border-color: #e50019;
  }

  /* Ajuste para que los puntos queden debajo del slider */
  .imagen-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


/* --- Solo en móvil --- */
@media (max-width: 768px) {
  .miniaturas { display: none; }
  .puntos { display: flex; }
  .imagen-principal {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
}

/* Imagen principal PC */
.principal-pc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.imagen-principal:hover .principal-pc {
  transform: scale(1.04);
}

/* Slider móvil (por defecto oculto en PC) */


/* Mantén tus estilos existentes de .slider .slide, .puntos, .miniaturas, etc. */

/* Solo en móvil: ocultar imagen principal PC y mostrar slider + puntos */
@media (max-width: 768px) {
  .principal-pc { display: none; }
  .slider { 
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  .slider .slide {
    min-width: 100%;
    transition: transform 0.4s ease;
    object-fit: cover;
  }
  .miniaturas { display: none; }
  .puntos { 
    display: flex; 
    justify-content: center; 
    gap: 6px; 
    margin-top: 10px; 
  }
  .puntos span {
    width: 8px; height: 8px; background: #ccc; border-radius: 50%;
    cursor: pointer; transition: background 0.2s ease;
  }
  .puntos span.active { background: #e50019; }

  .imagen-principal { aspect-ratio: 4/3; overflow: hidden; }
}



/* ======================================================
   INFORMACIÓN DEL PRODUCTO / FICHA DETALLE
====================================================== */
.producto-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.producto-info h1 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  color: #111;
  font-weight: 700;
}

.descripcion {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.info-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.info-lista li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.5;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.info-lista li:last-child {
  margin-bottom: 0;
}

.info-lista strong {
  color: #111;
  font-weight: 600;
  min-width: 110px;
  display: inline-block;
}

.precio {
  color: #e50019;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 15px 0 25px 0;
}

.btn-asesor {
  display: inline-block;
  background: #e50019;
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
}
.btn-asesor:hover {
  background: #b90014;
  transform: scale(1.03);
}

/* --- Móvil --- */
@media (max-width: 768px) {
  .info-lista strong {
    min-width: auto;
  }
  .descripcion {
    text-align: justify; /* 🔹 texto justificado */
  }
  .producto-info h1 {
    text-align: center;
  }
}



/* ======================================================
   CTA FINAL
====================================================== */
.cta-llamada {
  background: linear-gradient(135deg, #e50019, #b90014);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-contenido {
  max-width: 800px;
  margin: 0 auto;
}
.cta-contenido h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.cta-contenido p {
  font-size: 1.05rem;
  margin-bottom: 25px;
}
.btn-llamar {
  display: inline-block;
  background: #fff;
  color: #e50019;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-llamar:hover {
  background: #e50019;
  color: #fff;
}

/* ======================================================
   RESPONSIVO
====================================================== */
@media (max-width: 992px) {
  .detalle-container {
    grid-template-columns: 1fr;
  }
  .producto-info h1 {
    text-align: center;
  }
  .producto-info .descripcion,
  .precio,
  .btn-asesor {
    text-align:justify;
    display: block;
    margin: 0 auto 20px;
  }
  .producto-galeria {
    order: 1;
  }
  .producto-info {
    order: 2;
  }
}




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

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

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

/* --- Texto + Formulario derecha --- */
.agenda-form {
  flex: 1;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: center;      /* 🔹 centra horizontalmente */
  justify-content: center;  /* 🔹 centra verticalmente */
  padding: 60px 50px 80px;  /* 🔹 agregué espacio extra abajo */
  text-align: center;       /* 🔹 centra los textos */
}


.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;
}

/* --- Responsivo --- */
@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;
}

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

@media (max-width: 768px) {
  /* Reducimos los márgenes laterales internos en móvil */
  .info-lista {
    padding: 0px 0px; /* 🔹 menos espacio a los lados */
  }

  /* Ajuste visual general en móvil */
  .producto-info {
    padding: 0 0px; /* 🔹 acerca el contenido a los bordes de la pantalla */
  }
}
