:root {
            --color-primary: #8B1A2B;
            --color-primary-dark: #6d1522;
            --color-dark-blue: #1a2a4a;
            --color-text: #333333;
            --color-gray: #f5f5f5;
        }

        body {
            font-family: 'Open Sans', sans-serif;
            color: var(--color-text);
            padding-top: 0;
        }

        /* ===== HERO SECTION ===== */
        .hero-section {
            position: relative;
            background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%),
                        url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
            color: #fff;
            padding: 80px 0;
            min-height: 480px;
            display: flex;
            align-items: flex-end; /* Alinear contenido al fondo */
        }

        /* Grid de 5 columnas: 40% + 15% x 4 */
        .hero-row {
            display: flex;
            align-items: flex-end; /* Todo alineado abajo */
            flex-wrap: wrap;
        }
        .col-hero-main {
            width: 40%;
            padding-right: 30px;
        }
        .col-hero-card {
            width: 15%;
            padding: 0 8px;
        }
        .col-hero-spacer {
            width: 15%;
        }

        .hero-label {
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 15px;
            display: block;
        }
        .hero-label span {
            color: var(--color-primary);
        }
        .hero-title {
            font-size: 36px;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 15px;
        }
        .hero-subtitle {
            font-size: 15px;
            font-weight: 300;
            line-height: 1.5;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        /* Botones más chicos, uno al lado del otro */
        .hero-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .btn-juris-primary {
            background-color: var(--color-primary);
            color: #fff;
            border: 2px solid var(--color-primary);
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 4px;
            transition: all 0.3s;
        }
        .btn-juris-primary:hover {
            background-color: var(--color-primary-dark);
            border-color: var(--color-primary-dark);
            color: #fff;
        }
        .btn-juris-outline {
            background-color: transparent;
            color: #fff;
            border: 2px solid rgba(255,255,255,0.8);
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 4px;
            transition: all 0.3s;
        }
        .btn-juris-outline:hover {
            background-color: rgba(255,255,255,0.1);
            color: #fff;
            border-color: #fff;
        }
        .btn-juris-outline i {
            margin-right: 6px;
        }

        /* Hero Cards */
        .hero-card {
            background-color: #fff;
            color: #333;
            border-radius: 8px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            margin-bottom: 0;
        }
        .hero-card-icon {
            width: 45px;
            height: 45px;
            background-color: var(--color-primary);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .hero-card-content h4 {
            font-size: 12px;
            font-weight: 700;
            margin: 0 0 3px 0;
            color: #222;
            line-height: 1.3;
        }
        .hero-card-content p {
            font-size: 11px;
            color: #666;
            margin: 0;
        }
        /* Texto de las tarjetas: menos relleno lateral que las columnas de Bootstrap (15px) */
        .hero-card .hero-card-texto {
            position: relative;
            min-height: 1px;
            padding-right: 3px;
            padding-left: 2px;
        }

        /* ===== FEATURES / PLANS BAR ===== */
        .features-bar {
            background-color: #fff;
            padding: 30px 0;
            border-bottom: 1px solid #eee;
        }
        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
        }
        .feature-icon {
            width: 45px;
            height: 45px;
            border: 2px solid #ddd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--color-primary);
            flex-shrink: 0;
        }
        .feature-text h5 {
            font-size: 14px;
            font-weight: 700;
            margin: 0 0 2px 0;
        }
        /* Los ítems son enlaces a novedad.php */
        a.feature-item,
        a.feature-item:hover,
        a.feature-item:focus { color: inherit; text-decoration: none; }
        a.feature-item:hover h5 { color: var(--color-primary); }
        .feature-text p {
            font-size: 12px;
            color: #777;
            margin: 0;
        }
        .feature-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .btn-register {
            background-color: var(--color-primary);
            color: #fff;
            border: none;
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 4px;
            transition: background 0.3s;
        }
        .btn-register:hover {
            background-color: var(--color-primary-dark);
            color: #fff;
        }
        .btn-login {
            background-color: #fff;
            color: #333;
            border: 1px solid #ccc;
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 4px;
            transition: all 0.3s;
        }
        .btn-login:hover {
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        /* ===== NOVEDADES ===== */
        /* Grilla de tapas en flex: con float, una tapa más alta "enganchaba" a la siguiente y corría la fila */
        .novedades-grid{
        display:flex;
        flex-wrap:wrap;
        }
        .novedades-grid:before,
        .novedades-grid:after{ display:none; } /* clearfix de Bootstrap: en flex ocupa lugar */
        .novedades-grid > [class*="col-"]{ float:none; }
        .novedades-section{
        padding:50px 0 40px 0;
        background:#fff;
        }
        .novedades-section h2{
        font-size:26px;
        font-weight:700;
        color:#222;
        margin:0;
        display:inline-block;
        }
        .ver-todas{
        float:right;
        color:var(--ej-maroon);
        font-weight:600;
        font-size:14px;
        margin-top:8px;
        }
        .ver-todas:hover{
        color:var(--ej-maroon-dark);
        text-decoration:none;
        }

        .product-card{
        background:#fff;
        border:1px solid #eee;
        border-radius:4px;
        margin-bottom:26px;
        overflow:hidden;
        transition:box-shadow .2s ease, transform .2s ease;
        }
        .product-card:hover{
        box-shadow:0 8px 20px rgba(0,0,0,0.1);
        transform:translateY(-2px);
        }
        .product-cover{
        position:relative;
        padding:6px 6px;
        min-height:210px;
        color:#fff;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
        }
        .product-cover .cover-tag{
        font-size:10px;
        font-weight:700;
        letter-spacing:1px;
        background:rgba(0,0,0,0.15);
        display:inline-block;
        padding:4px 8px;
        border-radius:2px;
        margin-bottom:14px;
        align-self:flex-start;
        }
        .product-cover .cover-title{
        font-size:16px;
        font-weight:700;
        line-height:1.3;
        }
        .product-cover .cover-sub{
        font-size:11px;
        font-weight:400;
        opacity:0.9;
        margin-top:8px;
        }
        .product-cover .cover-footer{
        font-size:11px;
        opacity:0.85;
        border-top:1px solid rgba(255,255,255,0.25);
        padding-top:8px;
        margin-top:10px;
        }

        .cover-red{ background:linear-gradient(160deg,#8a1a2b,#6d1420); }
        .cover-navy{ background:linear-gradient(160deg,#1c3a5e,#152c48); }
        .cover-orange{ background:linear-gradient(160deg,#d97757,#c85c3d); }
        .cover-white{ background:#fff; color:#333; }
        .cover-white .cover-tag{ background:#e9e9e9; color:#333; }
        .cover-white .cover-footer{ border-top-color:#eee; opacity:0.7; }

        .product-price{
        padding:14px 16px;
        font-size:18px;
        font-weight:700;
        color:#222;
        }

        /* Responsive adjustments */
        @media (max-width: 991px) {
            .hero-title { font-size: 28px; }
            .feature-actions { margin-top: 20px; height: auto; }
            .col-hero-main { width: 50%; }
            .col-hero-card { width: 25%; }
            .col-hero-spacer { display: none; }
            .hero-card { margin-bottom: 15px; }
        }
        @media (max-width: 767px) {
            .hero-title { font-size: 24px; }
            .col-hero-main,
            .col-hero-card,
            .col-hero-spacer { width: 100%; padding: 0; }
            .col-hero-main { margin-bottom: 25px; } /* separa los botones de las tarjetas apiladas */
            .hero-row { flex-direction: column; align-items: flex-start; }
            .hero-card { flex-direction: row; text-align: left; align-items: flex-start; margin-bottom: 10px; }
            .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
        }