/* --- CONFIGURACIÓN BASE --- */
.text-red {
    color: var(--red) !important;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* --- HERO --- */
.rancho-hero {
    height: 550px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.rancho-logo-wrap {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: var(--r-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh-hover);
}

.rancho-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- SIDEBAR --- */
.sticky-top-rancho {
    position: sticky;
    top: 120px;
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    padding: 25px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
    font-weight: 700;
    border-radius: var(--r-md);
}

.social-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ch) !important;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.social-circle.fb:hover {
    background: #3b5998;
    color: white !important;
}

.social-circle.ig:hover {
    background: #e1306c;
    color: white !important;
}

/* --- MOSAICO Y ZOOM --- */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.mosaic-item {
    border-radius: var(--r-md);
    overflow: hidden;
    height: 220px;
    position: relative;
    cursor: pointer !important;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: 0.3s;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

/* LIGHTBOX */
.emer-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999 !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#emerImg {
    max-width: 90%;
    max-height: 80%;
    border: 8px solid white;
    border-radius: 10px;
    cursor: zoom-out;
}

#emerCaption {
    margin-top: 20px;
    font-size: 1.8rem;
}

.emer-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 60px;
    cursor: pointer;
}

/* CATÁLOGO */
.premium-cattle-card {
    border-radius: var(--r-xl);
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.4s;
}

.premium-cattle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sh-hover);
    border-color: var(--red);
}

.image-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.premium-cattle-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.btn-progen-primary-sm {
    background: var(--red);
    color: white !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px;
    text-align: center;
    display: block;
}