/* ============================================================================
   ALIANZAS - Premium Partners Section
   Valencia Propiedades
   ============================================================================ */

.valencia-alianzas-section {
    padding: 80px 0 100px;
 
    position: relative;
}

/* Header Premium */
.alianzas-header {
    margin-bottom: 50px;
}

/* Kicker con línea */
.alianzas-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1A1A1A;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alianzas-kicker .line-before {
    width: 40px;
    height: 1px;
    background: #1A1A1A;
    display: block;
}

/* Título Principal */
.alianzas-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    line-height: 1.1;
    color: #C7B593;
    margin-bottom: 20px;
}

.alianzas-title .fw-light {
    font-weight: 300;
    color: #C7B593;
}

.alianzas-title .fw-bold {
    font-weight: 700;
}

.alianzas-title .highlight-font {
    font-style: italic;
    color: #C7B593;
}

/* Subtítulo */
.alianzas-subtitle {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
}

/* Grid de Alianzas */
.alianzas-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Card Individual */
.alianza-card {
    background: #fff;
    border: 2px dashed #d0d0d0;
    border-radius: 16px;
    padding: 30px 35px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.alianza-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #C7B593, #a59469);
    transition: height 0.4s ease;
    border-radius: 4px 0 0 4px;
}

.alianza-card:hover {
    border-color: #C7B593;
    box-shadow: 0 15px 40px rgba(199, 181, 147, 0.15);
    transform: translateY(-3px);
}

.alianza-card:hover::before {
    height: 100%;
}

/* Header de Card (Logo + Nombre) */
.alianza-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.alianza-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.alianza-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.alianza-logo.no-image {
    background: linear-gradient(135deg, #C7B593, #a59469);
}

.alianza-logo.no-image i {
    font-size: 24px;
    color: #fff;
}

.alianza-name {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Descripción */
.alianza-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Oferta/Beneficio */
.alianza-benefit {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f5ef 100%);
    border: 1px solid #e8e0d0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.benefit-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #C7B593, #a59469);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(199, 181, 147, 0.3);
}

.benefit-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 8px 0 8px;
}

.benefit-text {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* Imagen de Oferta (opcional) */
.benefit-image {
    width: 100%;
    max-width: 300px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contacto (Teléfono, WhatsApp, Instagram) */
.alianza-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.alianza-contact .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f8f8;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.alianza-contact .contact-item i {
    font-size: 1rem;
    color: #888;
    transition: color 0.3s ease;
}

.alianza-contact .contact-item:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

.alianza-contact .contact-item:hover i {
    color: #fff;
}

/* WhatsApp específico */
.alianza-contact .contact-item.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

/* Instagram específico */
.alianza-contact .contact-item.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

/* Link/CTA */
.alianza-cta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alianza-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #C7B593;
    text-decoration: none;
    transition: all 0.3s ease;
}

.alianza-cta a:hover {
    color: #1a1a1a;
    gap: 12px;
}

.alianza-cta a i {
    transition: transform 0.3s ease;
}

.alianza-cta a:hover i {
    transform: translateX(3px);
}

/* Card con Imagen Destacada (variante) */
.alianza-card.has-featured-image .alianza-card-inner {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 25px;
    align-items: center;
}

.alianza-card.has-featured-image .alianza-featured-image {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
}

.alianza-card.has-featured-image .alianza-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.alianza-card.has-featured-image:hover .alianza-featured-image img {
    transform: scale(1.05);
}

/* Sin Alianzas */
.no-alianzas {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #e5e5e5;
}

.no-alianzas i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-alianzas p {
    color: #999;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .valencia-alianzas-section {
        padding: 60px 0 80px;
    }

    .alianzas-header h2 {
        font-size: 1.6rem;
    }

    .alianza-card {
        padding: 25px 20px;
    }

    .alianza-card.has-featured-image .alianza-card-inner {
        grid-template-columns: 1fr;
    }

    .alianza-card.has-featured-image .alianza-featured-image {
        height: 160px;
        order: -1;
    }

    .alianza-logo {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .alianza-name {
        font-size: 1.1rem;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alianza-card {
    animation: fadeInUp 0.6s ease forwards;
}

.alianza-card:nth-child(1) { animation-delay: 0.1s; }
.alianza-card:nth-child(2) { animation-delay: 0.2s; }
.alianza-card:nth-child(3) { animation-delay: 0.3s; }
.alianza-card:nth-child(4) { animation-delay: 0.4s; }
.alianza-card:nth-child(5) { animation-delay: 0.5s; }
