/* Consorcio Rebi - Colores de Marca */
:root {
    --color-primary: #2F6FED;      /* Azul principal */
    --color-secondary: #1F56C8;    /* Hover / profundidad */
    --color-dark-blue: #163B72;    /* Títulos y navegación */
    --color-darker-blue: #0F2A52;  /* Footer / fondos oscuros */
    --color-black: #0B1220;        /* Texto */
    --color-white: #FFFFFF;
    --color-light-gray: #F8F9FA;

    /* Útiles para sombras/estados */
    --primary-rgb: 47, 111, 237;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-black);
    line-height: 1.6;
}

/* Navegación */
.navbar {
    background-color: var(--color-white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 60px;
    transition: transform 0.3s ease;
	height: auto;
    width: auto;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--color-dark-blue) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary-custom {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: none;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom:hover {
    background-color: var(--color-light-gray);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-secondary-custom:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Secciones generales */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas de producto */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.18);
}

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

.product-card-body {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.btn-product {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-product:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.05);
}

/* Formularios */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.20);
}

.form-label {
    color: var(--color-dark-blue);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer h5 {
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

/* Tarjetas de características */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--color-white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.14);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-secondary-custom {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilidades */
.bg-light-custom {
    background-color: var(--color-light-gray);
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

/* === Ajustes para el header genérico (páginas WooCommerce, single product, etc.) === */

/* Contenedor del logo + menú */
.site-header,
header.site-header,
header#masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
}

/* Logo: hacerlo más pequeño */
.site-header img,
header#masthead img,
.site-branding img,
.custom-logo {
    max-height: 60px;
    height: auto;
    width: auto;
}

/* Navegación principal */
.main-navigation,
#site-navigation,
.site-header nav {
    margin-left: auto;
}

/* Lista de enlaces del menú */
.main-navigation ul,
#site-navigation ul,
.site-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

/* Enlaces del menú */
.main-navigation ul li a,
#site-navigation ul li a,
.site-header nav ul li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
}

/* Estado activo (subrayado) */
.main-navigation ul li.current-menu-item a,
#site-navigation ul li.current-menu-item a {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 4px;
}

/* === Forzar estilo de los botones SOLO en el hero de la home === */

.hero-section .btn-primary-custom,
.hero-section .btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 35px;
    line-height: 1.1;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

/* "Ver Productos" – relleno blanco */
.hero-section .btn-primary-custom {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-primary-custom:hover {
    background-color: var(--color-light-gray);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* "Contáctanos" – solo borde blanco */
.hero-section .btn-secondary-custom {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.hero-section .btn-secondary-custom:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.boton-whatsapp.button {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
.boton-whatsapp.button:hover {
  background-color: #1ebe57 !important;
  border-color: #1ebe57 !important;
  color: #fff !important;
}

/* === Sticky footer global (incluye páginas WooCommerce) === */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cualquier contenedor principal ocupa el espacio disponible */
main.section,
.site-content,
#content,
.content-area {
  flex: 1 0 auto;
}

/* El footer baja al fondo cuando el contenido es corto */
.footer {
  margin-top: auto !important;   /* sustituye al margin-top grande si lo hubiese */
}

/* Ajustes suaves para páginas WooCommerce con poco contenido */
.woocommerce-cart main.section,
.woocommerce-checkout main.section,
.woocommerce-account main.section {
  padding-bottom: 40px;           /* evita que se vea “aplastado” contra el footer */
}

/* Evita márgenes extra de WooCommerce al fondo */
.woocommerce {
  margin-bottom: 0;
}

.cr-login-to-see-price,
.cr-login-btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:30px;
  text-decoration:none;
  background:#015DFF;
  color:#fff;
  font-weight:600;
}
.cr-login-btn:hover{ opacity:.9; }

/* ===== Mi Cuenta – layout y estilo completo ===== */

/* Grid principal */
.myacc-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}

/* Navegación */
.myacc-nav {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 1rem;
  position: sticky;
  top: 90px; /* bajo navbar sticky */
}
.myacc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.myacc-nav li a {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem .9rem; border-radius: 10px; text-decoration: none;
  color: var(--color-dark-blue); font-weight: 600; transition: .2s ease;
}
.myacc-nav li a i { font-size: 1.1rem; }
.myacc-nav li a:hover { background: var(--color-light-gray); color: var(--color-primary); }
.myacc-nav li.is-active a, .myacc-nav .is-active a {
  background: rgba(1,93,255,.12); color: var(--color-primary);
}

/* Contenido */
.myacc-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 2rem;
}

/* Cards genéricas */
.card { background:#fff; border-radius:14px; box-shadow:0 8px 24px rgba(0,0,0,.08); }
.card-body { padding: 1.25rem 1.25rem; }
.card-header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 1rem 1.25rem; border-bottom:1px solid #f0f2f5;
}
.card-header h3 { margin:0; color:var(--color-dark-blue); }

/* Bienvenida */
.myacc-welcome .myacc-user { display:flex; align-items:center; gap:1rem; }
.myacc-avatar img { border-radius:50%; }

/* KPIs */
.myacc-kpis {
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:1rem; margin:1rem 0 1.5rem;
}
.kpi { display:flex; align-items:center; gap:.75rem; background:#fff; border-radius:14px; padding:1rem; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.kpi i { font-size:1.4rem; color:var(--color-primary); }
.kpi strong { display:block; font-size:1.25rem; color:var(--color-dark-blue); line-height:1; }
.kpi span { font-size:.9rem; color:#6b7280; }

/* Acciones rápidas */
.myacc-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1rem; }
.myacc-actions .button { display:inline-flex; align-items:center; gap:.5rem; }

/* Tablas Woo */
.woocommerce table.shop_table {
  width: 100%; border: none; border-collapse: collapse;
  box-shadow: 0 6px 18px rgba(0,0,0,.06); border-radius: 12px; overflow: hidden;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 12px 16px; border-bottom: 1px solid #f0f2f5; }
.woocommerce table.shop_table thead th { background: #f8f9fb; color: var(--color-dark-blue); font-weight: 700; }
.woocommerce table.shop_table tr:last-child td { border-bottom: 0; }

/* Botones en marca */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--color-primary); color: #fff; border: none;
  border-radius: 10px; padding: .6rem 1rem; font-weight: 600; transition: .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--color-secondary); color: #fff;
}

/* Notificaciones */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  border-radius: 10px; border: none; box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Responsive */
@media (max-width: 992px) {
  .myacc-grid { grid-template-columns: 1fr; }
  .myacc-nav { position: static; }
  .myacc-kpis { grid-template-columns: 1fr; }
}

/* Hero (ya lo usabas) */
.hero-account {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; text-align: center; padding: 60px 0 48px; margin-bottom: 28px;
}
.hero-account h1 { font-size: 2.2rem; margin: 0; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.hero-account p { opacity: .95; margin-top: .5rem; }

.rebi-product-cat-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rebi-product-cat-select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    max-width: 260px;
}
