:root {
    --bg-yellow: #fbfb6e;
    --primary-blue: #0a4886;
    --text-dark: #1e293b;
    --border-radius-lg: 24px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header superior */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-placeholder span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.hero-section{
    display: flex;
    height: 400px;
    width: 100%;
    background-color: #5D5FEF;

}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    width: 100%;
    height: 100%;
}
.hero-izq {
    display: flex;                /* solo posiciona, ya no es tarjeta */
   
    padding: 50px 0px 0px 50px;
    color: #fff;
}
.hero-der {
    display: flex;                /* solo posiciona, ya no es tarjeta */
    justify-content: center;
    align-items: center;
    padding-right: 50px; 
}
.zona-fieldset {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #0f2d9c;
    width: 90%;                  /* antes 650px */
    height: 300px;                /* antes 350px */
    color: #fff;
    border: none;
    border-radius: 16px;
    margin: 0;
    min-width: 0;
    box-sizing: border-box;
}

.zona-legend {
    float: left;                  /* nuevo: ahora sí se centra */
    padding: 0;
    margin: 0;                    /* antes margin-bottom: 20px */
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}


.zona-selector {
    display: flex;
    width: 300px;                  /* nuevo: la píldora llena la tarjeta */
    background-color: #0b5ed7;
    border-radius: 999px;
    padding: 4px;
}

/* ocultar el circulito, pero que siga funcionando con el teclado */
.zona-selector input {
  position: absolute;
  opacity: 0;
}

.zona-selector label {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* el label que está justo después del radio marcado */

.zona-selector input:checked + label {
  background-color: #fff;
  color: #000;
}

.zona-selector input:focus-visible + label {
  outline: 2px solid white;
}
/* Contenedor principal del catálogo de productos */
.catalog-main-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

.catalog-header-title {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.catalog-header-title p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Cuadrícula adaptable para los productos inyectados por JavaScript */
.catalog-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 350px);
    row-gap: 50px;
    column-gap: 40px;
justify-content: center}

/* Estilos para el logo en el header */
.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px;      /* Controla la altura del logo en la barra */
    object-fit: contain;
}

/* Tarjeta de Producto */
.cartas-producto {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 480px;
    width: 100%;
    max-width: 350px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Efecto al pasar el cursor (Hover) */
.cartas-producto:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
    border-color: #0a4886;
}

/* Contenedor superior de la imagen */
.producto-imagen-wrapper {
    background-color: #f8fafc;
    height: 65%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    border-bottom: 1px solid #f1f5f9;
}

.producto-imagen-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cartas-producto:hover .producto-imagen-wrapper img {
    transform: scale(1.05);
}

/* Contenedor inferior de información */
.producto-info {
    background-color: #ffffff;
    height: 35%;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Categoría (Badge pequeño) */
.producto-categoria {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Nombre del Producto */
.producto-nombre {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 4px 0 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; /* Corta nombres muy largos en 2 líneas limpiamente */
}

/* Sección del Precio */
.producto-precio-box {
    margin-top: auto;
}

.producto-precio {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a4886;
    margin: 0;
}

.btn-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;

    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;

    background-color: #25d366;
    color: #fff;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}
.zona-fieldset { border: none; padding: 0; }
