/* ==========================================
   DYNAMIC HERO TEXT ANIMATION STYLES
   Simple Fade Cross Effect - Reliable & Smooth
   ========================================== */

.hero-title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dynamic-text-container {
    display: inline-block;
    position: relative;
    width: auto;
    min-height: 1.2em;
}

/* Calcular el ancho basado en el texto más largo */
.dynamic-text-container::before {
    content: 'Fresh Perspective';
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: inherit;
    font-size: inherit;
}

.dynamic-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dynamic-text.active {
    opacity: 1;
}

/* ==========================================
   HERO FEATURE BADGES - DARKER TEXT
   ========================================== */

.hero-feature {
    color: #2f4157 !important; /* Color oscuro para mejor contraste */
    background: rgba(255, 255, 255, 0.95) !important; /* Fondo más opaco */
    font-weight: 600; /* Texto más bold para mejor legibilidad */
}

.hero-feature svg {
    stroke: #567f90; /* Color del check más visible */
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #2f4157 !important;
    box-shadow: 0 12px 35px rgba(47, 65, 87, 0.2);
}

.hero-feature:hover svg {
    stroke: #2f4157;
}

/* ==========================================
   SERVICE TYPE FEATURED CARD - WHITE TEXT FIX
   ========================================== */

.service-type-featured {
    color: #ffffff !important;
}

.service-type-featured h3 {
    color: #ffffff !important;
}

.service-type-featured p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.service-type-featured .service-type-features li {
    color: rgba(255, 255, 255, 0.95) !important;
}

.service-type-featured .service-type-features li svg {
    stroke: #ffffff !important;
}

.service-type-featured .service-type-icon svg {
    stroke: #ffffff !important;
}

.service-type-badge {
    color: #2f4157 !important; /* Texto oscuro en badge naranja */
    font-weight: 700 !important;
}

/* Ensure hero title line has proper spacing for animation */
.hero-title .hero-title-line {
    display: block;
    overflow: visible;
}

/* ==========================================
   TRUSTPILOT WIDGET STYLING
   ========================================== */

.trustpilot-widget-container {
    margin-top: 3rem;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trustpilot-widget {
    max-width: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Responsive adjustments for Trustpilot widget */
@media (max-width: 768px) {
    .trustpilot-widget-container {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .trustpilot-widget {
        max-width: 100%;
    }
}

/* ==========================================
   ENHANCED HERO TITLE RESPONSIVENESS
   ========================================== */

@media (max-width: 768px) {
    .dynamic-text-container {
        height: auto;
        min-height: 1.2em;
    }
    
    .dynamic-text {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .dynamic-text-container {
        display: block;
        text-align: center;
    }
    
    .dynamic-text {
        position: relative;
        display: block;
        font-size: 0.9em;
    }
}