/* Banner principal - logo */
.banner-principal {
  background-color: #7e2282;
  width: 100vw;
  margin: 0;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  position: relative;
  left: 0;
  top: 0;
}

/* Logo dentro del banner */
.banner-principal .logo-jdlp {
  height: 55px;
  width: auto;
  object-fit: contain;
}

/* Contenedor del texto “Carrito de compras” */
.encabezado-carrito {
  text-align: center;
  margin-top: 10px; /* espacio adicional desde el header */
}


.encabezado-carrito h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #5c2d91;
  margin-bottom: 10px;
  margin-top: 20px; /* empuja más hacia abajo */
}

.encabezado-carrito img {
  width: 60px;
  height: auto;
}


/* ============================= */
/* 1. ESTILOS GLOBALES          */
/* ============================= */

* {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  padding: 25px;
  background-image: url('assets/img/fondo-pagina.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: #333;
}

/* ─────  OVERRIDE “HEADER FIJO”  ───── */
:root{
  /* altura real del banner (logo + padding)  */
  --alto-header: 160px;     /* cambia a 100‑110 px si tu header es más alto */
}

/* 1️⃣  asegura el header fijo con altura coherente */
header{
  height: var(--alto-header) !important;
  line-height: var(--alto-header);   /* opcional, centra el logo verticalmente */
}

/* 2️⃣  Colchón global para que nada quede tapado */
body{
  /* deja un padding‑top en lugar de margin para no romper centrad­os */
  padding-top: calc(var(--alto-header) + 50px) !important;
}

/* 3️⃣  El bloque del título ya no se “sube” */
.encabezado-carrito{
  margin-top: 0 !important;      /* quita el -40 px anterior */
  margin-bottom: 24px !important;/* separación h1 ↔ tarjeta blanca */
  gap: 6px;                      /* separa h1 e imagen */
}

/* 4️⃣  Reduce aire extra entre h1 → h2 */
.container h2{
  margin-top: 8px !important;    /* antes 25 px */
}

/* 5️⃣  Ajuste en móviles (header algo más chico) */
@media (max-width: 600px){
  :root{ --alto-header: 140px; }   /* si tu banner se comprime en mobile */

  body{
    padding-top: calc(var(--alto-header) + 28px) !important;
  }
}


.container h2{ margin-top:10px; }  /* antes 25px */

/* ============================= */
/* 2. CONTENEDOR PRINCIPAL      */
/* ============================= */

.container {
  max-width: 850px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================= */
/* 3. TÍTULOS                   */
/* ============================= */

h1, h2 {
  color: #5a2a83;
  text-align: center;
  font-weight: 600;
  margin-bottom: 25px;
}

/* ============================= */
/* 4. FIELDSETS Y LEGENDS       */
/* ============================= */

fieldset {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 25px;
  background-color: #f8f2fb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

legend {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5a2a83;
  border-bottom: 2px solid #845ec2;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* ============================= */
/* 5. ETIQUETAS Y FORMULARIOS   */
/* ============================= */

label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 500;
  color: #444;
}

/* Inputs y Selects */
input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  background-color: #fff;
}

input:focus,
select:focus {
  border-color: #5a2a83;
  outline: none;
}

/* ============================= */
/* 6. BOTONES                   */
/* ============================= */

button,
.boton-pago {
  background-color: #5a2a83;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

button:hover,
.boton-pago:hover {
  background-color: #845ec2;
}

/* ============================= */
/* 7. TEXTO DINÁMICO            */
/* ============================= */

strong {
  color: #5a2a83;
  font-weight: 700;
  font-size: 1.05rem;
}

#abonoTexto,
#montoCalculado,
#cuotasMes,
#mensajeFinal {
  margin-top: 10px;
  font-size: 1rem;
}

/* ============================= */
/* 8. MENSAJE DE CONFIRMACIÓN   */
/* ============================= */

#mensajeFinal {
  display: none;
  color: #8d2396;
  font-weight: 500;
  text-align: center;
}

/* ============================= */
/* 9. RESPONSIVE                */
/* ============================= */

@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 20px;
  }

  button {
    width: 100%;
  }
}

/* ============================= */
/* 10. SECCIÓN TARJETA (OPENPAY) */
/* ============================= */

#seccion-tarjeta {
  display: none;
  max-width: 850px;
  margin: 30px auto 0;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#seccion-tarjeta h1 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
  color: #5a2a83;
}

/* Inputs del formulario de pago */
#form-tarjeta input[type="text"],
#form-tarjeta select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

#form-tarjeta input:focus,
#form-tarjeta select:focus {
  border-color: #5a2a83;
  outline: none;
}

/* Botón de pago */
#btn-pagar {
  width: 100%;
  background-color: #5a2a83;
  color: white;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#btn-pagar:hover {
  background-color: #845ec2;
}

/* ============================= */
/* 11. FOOTER                    */
/* ============================= */

.footer-compras {
  margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #6a185a;
  padding-top: 25px;
  font-family: 'Montserrat', sans-serif;
}

.footer-compras .texto-seguridad {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #999;
}

/* ============================= */
/* 12. MENSAJE DE REDIRECCIÓN    */
/* ============================= */

#mensajeRedirigir {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background-color: #e8f5e9;
  border: 1px solid #b2dfdb;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 1rem;
  text-align: center;
}

/* ============================= */
/* 13. RESPONSIVE TARJETA        */
/* ============================= */

@media (max-width: 600px) {
  #seccion-tarjeta {
    padding: 20px;
  }

  #btn-pagar {
    font-size: 1rem;
  }

  #form-tarjeta input,
  #form-tarjeta select {
    font-size: 1rem;
  }
}



/* ---------- Diseño del bloque de pago exitoso ---------- */
.mensaje-exito {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.contenedor-pago-exitoso {
  background-color: #f0fff4;
  border: 2px solid #38a169;
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: #2d3748;
  text-align: center;
}

.contenedor-pago-exitoso h2 {
  color: #38a169;
  font-size: 24px;
  margin-bottom: 15px;
}

.contenedor-pago-exitoso p {
  margin: 8px 0;
  font-size: 16px;
}

.btn-subir-datos {
  margin-top: 25px;
  padding: 12px 20px;
  background-color: #6b46c1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-subir-datos:hover {
  background-color: #553c9a;
}

.pago-exitoso-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.exito-titulo {
  font-size: 28px;
  color: green;
  margin-bottom: 20px;
}
.pago-exitoso-container p {
  font-size: 18px;
  margin: 10px 0;
}


.encabezado-carrito {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -40px;
  margin-bottom: 50px;
  gap: 8px; /* controla la separación entre h1 y la imagen */
}


.encabezado-carrito h1 {
  color: #6a1b9a;
  font-weight: bold;
  font-size: 2rem;
  margin: 0;
}

.encabezado-carrito img {
  width: 60px;
  height: auto;
  margin-top: 10px;
}


/*OPENPAY APARTADO*/
/* ============ FOOTER COMPRAS ============ */
.footer-compras {
  width: 100vw;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #4a237a; /* Asegura color morado */
  background-color: transparent; /* o usa uno sólido si prefieres */
  margin-top: 50px;
  box-shadow: none; /* Quitar sombra */
}

.footer-compras-contenido {
  max-width: 960px;
  margin: 0 auto;
}

.footer-compras p,
.footer-compras a,
.footer-openpay p {
  margin: 8px 0;
  color: #4a237a !important; /* fuerza color morado incluso si hereda otro */
  text-decoration: none;
}

.footer-openpay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.footer-openpay img {
  width: 100px;
  height: auto;
  filter: grayscale(0.4);
  transition: filter 0.3s ease;
}

.footer-openpay img:hover {
  filter: grayscale(0);
}

/* Responsive */
@media (max-width: 600px) {
  .footer-openpay img {
    width: 80px;
  }

  .footer-compras {
    padding: 25px 16px;
    font-size: 0.85rem;
  }
}



/* ———— PIE DE PÁGINA ———— */
.footer {
  width: 100vw;
  margin: 40px 0 0 0; /* ← AQUI SE AGREGA SEPARACIÓN ARRIBA */
  padding: 40px 20px 50px;
  background-color: #7e2282;
  color: white;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
}


.footer-info p {
  font-size: 0.95rem;
  margin: 6px 0;
  line-height: 1.5;
}

.footer-info a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  margin-top: 25px;
}

.footer-copy p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.footer-social img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1); /* asegura íconos blancos si no lo son */
}

.footer-social img:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 15px;
  }

  .footer-info p,
  .footer-copy p {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 18px;
    padding: 10px 0;
  }

  .footer-social img {
    width: 24px;
    height: 24px;
  }
}


/*BOTON CLIENTE REGISTRADO LINK A JARDIN DE LOS PINOS*/
/* ——— BOTÓN CLIENTE REGISTRADO ——— */
.boton-login-registrado {
  text-align: center;
  margin: 40px auto 20px;
  font-family: 'Montserrat', sans-serif;
}


/* RESET Y FUENTES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

/* HEADER */
header {
  width: 100%;
  background-color: #7e2282;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px; /* Aumenta el valor vertical */
}



.logo {
  width: clamp(170px, 20vw, 250px); /*aqui se ajusta el tamaño del logo del encabezado*/
  height: auto;
  margin-top: 15px;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
}
.menu a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 16px);
  padding: 5px 10px;
  transition: color 0.3s;
}
.menu a.active,
.menu a:hover {
  color: #671B6B;
}
.acciones {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.acciones a {
  text-decoration: none;
  color: #671B6B;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 16px);
}
.acciones a:hover {
  color: white;
}
.acciones img {
  width: clamp(20px, 2vw, 32px);
  height: clamp(20px, 2vw, 32px);
}
.inicio-sesion {
  display: flex;
  align-items: center;
  gap: 15px;
}


.boton-login-registrado a {
  display: inline-block;
  background-color: #97139b; /* morado sólido */
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 1.5rem;
  font-weight: 580;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.boton-login-registrado a:hover {
  background-color: #a754b3; /* morado más oscuro */
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
  .boton-login-registrado a {
    padding: 10px 20px;
    font-size: 1.3rem;
  }
}

/* FOOTER */
.footer {
  background-color: #7e2282;
  color: white;
  text-align: center;
  padding: 40px 20px 50px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
}

.footer-info p {
  font-size: 0.95rem;
  margin: 5px 0;
}

.footer-info a {
  color: white;
  text-decoration: underline;
}

.footer-copy {
  margin-top: 20px;
}

.footer-copy p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 10px;
}

.footer-social img {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.2);
}

