/* =========================================
   ESTILOS EXCLUSIVOS: LANDING REFERIDOS V3
   ========================================= */
h2 {
    font-family: var(--urb-font-corporate);
}

/* =========================================
   ESTILOS: HERO REFERIDOS
   ========================================= */

/* Logo del Hero */
.ref-logo-img {
    height: 28px; /* Ajusta la altura según el SVG */
    width: auto;
    display: inline-block;
}

/* Ajustes de margen para móvil */
@media (max-width: 991.98px) {
    .ref-hero-logo {
        margin-top: 0.5rem;
        margin-bottom: 2rem !important;
    }
    .ref-logo-img {
    height: 36px; /* Ajusta la altura según el SVG */
    }
}

.ref-hero-title {
    font-size: 3rem;
    line-height: 1.15;
    color: var(--urb-text-main);
}

.ref-hero-text {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
}
.badge-1 {
    background-color: var(--urb-green-200);
    border-radius: 4px;
    padding: 4px 20px;
    display: inline-block;
}

/* Contenedor de la foto y la animación */
.ref-hero-media-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ref-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- SVG Y TRAZOS --- */
.ref-hero-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Trazo Sólido (Lado Izquierdo) */
.ref-solid-line {
    stroke-dasharray: none;
}

/* Trazo Discontinuo Animado (Conexión y Lado Derecho) */
.ref-connecting-line {
    stroke-dasharray: 12, 10;
    animation: flowLine 1.4s linear infinite;
}

@keyframes flowLine {
    from { stroke-dashoffset: 44; }
    to { stroke-dashoffset: 0; }
}

/* --- BADGES +75€ --- */
.ref-hero-badge {
    position: absolute;
    background-color: #E2FBF0;
    color: var(--urb-text-main);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 3;
}

/* Posición +75€ Mujer (Arriba a la derecha de su cabeza) */
.ref-hero-badge.badge-left {
    top: 18%;
    left: 36%;
}

/* Posición +75€ Hombre (Abajo a la derecha junto al portátil) */
.ref-hero-badge.badge-right {
    bottom: 22%;
    right: 13%;
}

/* Borde divisor para la barra inferior en Desktop */
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #E0E0E0;
    }
}

/* Ajustes Responsive (Mobile) */
@media (max-width: 991.98px) {
    .ref-hero-title {
        font-size: 2.25rem;
    }
}


/*-- =========================================
   SECCIÓN: CÓMO FUNCIONA
   ========================================= */

/* Overline / Subtítulo superior */
.ref-eyebrow {
    color: var(--urb-color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border-bottom: 2px solid var(--urb-color-primary);
    padding-bottom: 2px;
}

/* Titulares de Sección */
.ref-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--urb-font-corporate)!important;
}

/* --- Estilos: CÓMO FUNCIONA --- */
.ref-step-item {
    border-bottom: 1px solid #D1D5DB;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.ref-step-title {
    font-family: var(--urb-font-secondary);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--urb-text-main);
    margin-bottom: 0.5rem;
}

.ref-step-text {
    color: var(--urb-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Estilos: RECOMPENSAS --- */
.ref-rewards-box {
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.ref-rewards-subtitle {
    font-size: 1rem;
    line-height: 1.5;
}

/* Tarjetas de Recompensa */
.ref-reward-card {
    background-color: var(--urb-bg-primary);
    border-radius: 12px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid transparent;
}

.ref-reward-card.featured {
    border: 2px solid var(--urb-color-accent);
}

/* Badge 'La más habitual' */
.ref-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--urb-color-accent);
    color: var(--urb-text-main);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.ref-reward-label {
    font-size: 0.85rem;
    color: var(--urb-text-muted);
    margin-bottom: 0.25rem;
}

.ref-reward-range {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--urb-text-main);
    margin-bottom: 1.25rem;
    min-height: 2.6rem; /* Mantiene la alineación visual entre tarjetas */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-reward-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
}

.ref-reward-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--urb-text-main);
    line-height: 1;
}

.ref-reward-suffix {
    font-size: 0.85rem;
    color: var(--urb-text-muted);
}

/* Responsive */
@media (max-width: 767.98px) {
    .ref-section-title {
        font-size: 1.75rem;
    }
    
    .ref-reward-range {
        min-height: auto;
    }
}

/* =========================================
   ESTILOS: PREGUNTAS FRECUENTES (FAQs)
   ========================================= */

/* Imagen / Icono de la columna izquierda */
.ref-faq-image {
    max-width: 280px;
    height: auto;
    display: block;
}

/* Limpieza del acordeón para integrarse con el fondo cálido */
.ref-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-width: 0;
    --bs-accordion-inner-border-radius: 0;
}

.ref-accordion .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #D1D5DB;
}

/* Botón de la pregunta */
.ref-accordion .accordion-button {
    background-color: transparent;
    color: var(--urb-text-main);
    font-weight: 700;
    font-size: 1rem;
    padding: 1.25rem 0;
    box-shadow: none !important;
}

.ref-accordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--urb-text-main);
}

/* Ajuste del icono de flecha del acordeón */
.ref-accordion .accordion-button::after {
    background-size: 0.9rem;
    transition: transform 0.25s ease;
}

/* Cuerpo de la respuesta */
.ref-accordion .accordion-body {
    padding: 0 0 1.25rem 0;
    color: var(--urb-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Texto de cierre */
.ref-faq-footer-text {
    font-size: 0.875rem;
    color: var(--urb-text-main);
    line-height: 1.6;
}

/* =========================================
   ESTILOS: FISCALIDAD Y CTA FINAL
   ========================================= */

/* --- Sección Fiscalidad --- */
.ref-tax-info {
    background-color: var(--urb-bg-primary);
}

.ref-tax-text {
    font-size: 0.8125rem;
    color: var(--urb-text-main);
    line-height: 1.5;
}

.ref-terms-link {
    color: var(--urb-color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.ref-terms-link:hover {
    color: var(--urb-color-dark-green);
}

.ref-tax-date {
    font-size: 0.8125rem;
    color: var(--urb-text-main);
}

/* --- Sección CTA Final --- */
.ref-final-cta {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}