/* Definición de variables globales */
:root {
    --color-principal: #005da4;
    --color-principal-hover: #004c88;
    --color-principal-dark: #003d66;
    --color-whatsapp: #9aeeb9;
    --color-whatsapp-hover: #1ebe57;
    --color-acento: #f47a0d;
    --color-acento-hover: #ff9c00;
    --color-texto: #212529;
    --color-fondo: #fff;
    --color-lista-alterna: rgba(0, 93, 164, 0.1);
}

/* Aplicación en el body */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--color-texto);
    background-color: var(--color-fondo);
}

.contacto {
    background: var(--color-texto);
    width: 100%;
    display: block;
    margin-bottom: -15px;
}

.contacto p {
    padding: 5px;
}

h1 {
    font-weight: bolder;
}

h2,
h3 {
    font-weight: bold;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #25D366;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-cta i {
    font-size: 1.3rem;
}

.btn-cta:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    background-color: #1ebe5b;
    color: black;
}

.compacto .list-group-item {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.95rem; /* opcional: más compacto aún */
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #005da4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #003d66;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}


.card-logo-weg {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px; /* o el tamaño que prefieras */
    height: auto;
    z-index: 1;
}
.card-banda-descuento {
    position: absolute;
    top: 2.2rem;       /* más abajo */
    left: -2.5rem;     /* un poco más hacia adentro */
    background-color: var(--color-acento);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.2rem 2.2rem;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    white-space: nowrap;
}


/* Botones primarios */
.btn-primary,
.bg-primary {
    background-color: var(--color-principal) !important;
    border-color: var(--color-principal) !important;
    color: #fff !important;
    transition: 0.5s;
}

.btn-primary:hover,
.bg-primary:hover {
    background-color: var(--color-principal-hover) !important;
    border-color: var(--color-principal-hover) !important;
}

/* Botones WhatsApp */
.btn-whatsapp,
.bg-whatsapp {
    background-color: var(--color-whatsapp) !important;
    border-color: var(--color-whatsapp) !important;
    color: #000000 !important;
    transition: 0.5s;
}

.btn-whatsapp:hover,
.bg-whatsapp:hover {
    background-color: var(--color-whatsapp-hover) !important;
    border-color: var(--color-whatsapp-hover) !important;
}

/* Texto primario */
.text-primary {
    color: var(--color-principal) !important;
}

/* Botones acento */
.btn-acento,
.bg-acento {
    background-color: var(--color-acento);
    color: #fff;
    border: none;
}

.btn-acento:hover{
    background-color: var(--color-acento-hover);
    color: #fff;
}

/* Texto acento */
.text-acento {
    color: var(--color-acento) !important;
}

/* Enlaces */
a {
    color: var(--color-principal);
    text-decoration: none;
}

a:hover {
    color: var(--color-principal-dark);
    text-decoration: none;
}

footer a:hover {
    color: var(--color-acento) !important;
    text-decoration: none;
}

/*Carrusel*/

.carousel-inner {
  width: 100%;      /* ancho total de la ventana */
  max-height: 500px; /* altura máxima */
  overflow: hidden;  /* para que no se salga contenido que exceda */
}

.carousel-inner img {
  width: 100%;
  height: auto;     /* para mantener proporción y no deformar */
  max-height: 500px;
  object-fit: cover; /* recorta si es necesario para cubrir bien */
}


/* Para móviles y pantallas pequeñas */
.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
}

/* Para pantallas md en adelante */
@media (min-width: 768px) {
    .carousel-caption {
        bottom: 20%;
        transform: translateY(50%);
    }
}

/* Tablas */
.table thead,
.table thead th {
    background-color: var(--color-principal) !important;
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--color-lista-alterna);
}

.table-hover tbody tr:hover {
    background-color: var(--color-acento);
    color: white;
    cursor: pointer;
}

/* Espaciado de secciones */
section {
    margin-top: 2rem;
}

/* Listas con íconos personalizados */
.ul-check,
.ul-circle,
.ul-square {
    list-style: none;
    padding-left: 0;
}

.ul-check li,
.ul-circle li,
.ul-square li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.ul-check li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    color: var(--color-principal);
}

.ul-circle li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--color-acento);
    font-size: 0.9rem;
}

.ul-square li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--color-texto);
    font-size: 0.8rem;
}

/* Íconos personalizados en list-group */
.list-check .list-group-item::before,
.list-circle .list-group-item::before,
.list-square .list-group-item::before {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.list-check .list-group-item,
.list-circle .list-group-item,
.list-square .list-group-item {
    padding-left: 2.5rem;
    position: relative;
}

.list-check .list-group-item::before {
    content: "✔️";
    color: var(--color-principal);
}

.list-circle .list-group-item::before {
    content: "●";
    color: var(--color-acento);
}

.list-square .list-group-item::before {
    content: "■";
    color: var(--color-texto);
}

/* card destacada producto */
.card-destacada img {
    object-fit: cover;
    height: 160px;
}

/* CARD CAMBIA IMAGEN A VER MAS */
.tarjeta-producto {
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.2s ease;
    position: relative;
}

.tarjeta-producto:hover {
    transform: scale(1.02);
}

.overlay-vermas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-principal);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}

.tarjeta-producto:hover .overlay-vermas {
    opacity: 1;
}



/* DIV CON IMAGEN DE FONDO - PARA TÍTULOS */

.bg-primary-overlay {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* ancho total */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    /* centrado vertical */
    justify-content: center;
    /* centrado horizontal */
}

.bg-primary-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-principal);
    opacity: 0.7;
    /* 70% opacidad */
    z-index: 0;
}

.bg-primary-overlay > .container {
    position: relative;
    z-index: 1;
    /* contenido arriba del overlay */
    text-align: center;
}

.bg-footer {
    background-color: rgb(233 235 237);
}


/* GALERÍA */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lupa */
.gallery-item::after {
    content: "\f002";
    /* ícono lupa de FontAwesome Unicode */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.gallery-item:hover::after {
    opacity: 1;
}
