/* ==========================================
   MÓDULO DE CABALLOS - SANGRE CUADRERA
   ========================================== */

.sc-caballo-ficha {
    margin: 2rem 0;
}

/* FICHA TÉCNICA */
.sc-caballo-datos {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #556B2F;
    margin-bottom: 1.5rem;
}

.sc-caballo-datos h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #4A3B32;
    margin-bottom: 1rem;
}

.sc-caballo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.sc-caballo-grid div {
    font-size: 0.9rem;
    color: #212529;
}

.sc-caballo-grid span {
    color: #6C757D;
}

.sc-caballo-grid strong {
    color: #4A3B32;
}

/* ESTADÍSTICAS */
.sc-caballo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sc-stat {
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.sc-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.sc-stat-win {
    background: #e2f0d9;
    border-color: #556B2F;
}

.sc-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #4A3B32;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.sc-stat-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6C757D;
    font-weight: 700;
}

/* CARTEL EN VENTA */
.sc-venta-box {
    background: linear-gradient(135deg, #FFF8E5 0%, #FFE9B0 100%);
    border: 2px solid #F0AD4E;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(240, 173, 78, 0.15);
}

.sc-venta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(240, 173, 78, 0.5);
}

.sc-venta-badge {
    background: #F0AD4E;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.sc-venta-precio {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #4A3B32;
}

.sc-venta-obs {
    font-style: italic;
    color: #6C757D;
    margin-bottom: 0.5rem;
}

.sc-venta-ubicacion {
    color: #556B2F;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sc-venta-contacto h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #4A3B32;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sc-venta-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

.sc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: white;
}

.sc-btn-whatsapp { background: #25D366; }
.sc-btn-tel      { background: #4A3B32; }
.sc-btn-mail     { background: #556B2F; }

/* HISTORIAL */
.sc-caballo-historial {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
}

.sc-caballo-historial h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #4A3B32;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #556B2F;
}

.sc-hist-public {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sc-hist-public th {
    background: #4A3B32;
    color: white;
    padding: 0.6rem 0.5rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-hist-public td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #E9ECEF;
}

.sc-hist-win {
    background: #F0F9E8;
}

.sc-pos-win {
    color: #556B2F;
    font-weight: 700;
}

.sc-sin-datos {
    padding: 1rem;
    text-align: center;
    color: #6C757D;
    font-style: italic;
    background: #F8F9FA;
    border-radius: 6px;
}

/* GRILLA DE CABALLOS EN VENTA */
.sc-caballos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.sc-caballo-card {
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sc-caballo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sc-caballo-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sc-caballo-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #F8F9FA;
    overflow: hidden;
}

.sc-caballo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.sc-caballo-card:hover .sc-caballo-card-img img {
    transform: scale(1.08);
}

.sc-sin-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: #DEE2E6;
}

.sc-venta-badge-mini {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F0AD4E;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    letter-spacing: 1px;
}

.sc-caballo-card-body {
    padding: 1rem;
}

.sc-caballo-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #4A3B32;
    margin-bottom: 0.6rem;
}

.sc-caballo-card-info {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: #6C757D;
}

.sc-caballo-card-info li {
    padding: 0.15rem 0;
}

.sc-caballo-card-ubic {
    font-size: 0.75rem;
    color: #556B2F;
    margin-bottom: 0.6rem;
}

.sc-caballo-card-precio {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #4A3B32;
    padding-top: 0.6rem;
    border-top: 1px solid #E9ECEF;
}

/* LISTA GENERAL */
.sc-caballos-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sc-caballo-lista-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.sc-caballo-lista-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.sc-caballo-lista-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #4A3B32;
    margin-bottom: 0.25rem;
}

.sc-caballo-lista-info h4 a {
    color: inherit;
    text-decoration: none;
}

.sc-caballo-lista-info p {
    font-size: 0.8rem;
    color: #6C757D;
}

.sc-badge-venta {
    display: inline-block;
    background: #F0AD4E;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    letter-spacing: 1px;
    vertical-align: middle;
}

.sc-lista-btn {
    background: #556B2F;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s;
}

.sc-lista-btn:hover {
    background: #3e5022;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sc-venta-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sc-venta-precio {
        font-size: 1.5rem;
    }

    .sc-venta-botones {
        flex-direction: column;
    }

    .sc-btn {
        justify-content: center;
        width: 100%;
    }

    .sc-hist-public {
        font-size: 0.75rem;
    }

    .sc-hist-public th,
    .sc-hist-public td {
        padding: 0.4rem 0.3rem;
    }

    .sc-caballo-lista-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}