/* =========================================================================
   EUROPEAN WHEEL MANUFACTURING - MAIN BRAND THEME (ewm.css)
   ========================================================================= */

/* --- 1. HOME / HERO SECTION (SLIDER READY) --- */
.ewm-home {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    background-color: #ffffff !important;
    color: #111 !important;
}

/* El contenedor principal que da la altura al slider */
.ewm-hero-slider-container {
    position: relative !important;
    width: 100% !important;
    min-height: 85vh !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important; 
}

/* El fondo oscuro para leer el texto */
.ewm-hero-overlay {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important; 
    z-index: 2 !important; 
}

/* --- CONFIGURACIÓN PARA 4 IMÁGENES --- */
/* Duración total: 4 fotos x 5 segundos = 20 segundos */
.ewm-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important; 
    /*background-position: center center !important; */ 
    background-repeat: no-repeat !important;
    z-index: 1 !important; 
    opacity: 0; 
    /* Cambiamos a 20s */
    animation: ewm-fade 20s infinite; 
}

/* Tiempos para que roten solas (cada 5 segundos sale una nueva) */
.ewm-slide:nth-child(1) { animation-delay: 0s; }
.ewm-slide:nth-child(2) { animation-delay: 5s; }
.ewm-slide:nth-child(3) { animation-delay: 10s; }
.ewm-slide:nth-child(4) { animation-delay: 15s; } /* Añadida la cuarta */

/* Animación calculada para 4 imágenes (100% / 4 = 25%) */
@keyframes ewm-fade {
    0% { opacity: 0; }
    5% { opacity: 1; }  /* Aparece rápido */
    25% { opacity: 1; } /* Se queda visible hasta el 25% del tiempo */
    30% { opacity: 0; } /* Se desvanece suavemente */
    100% { opacity: 0; } /* Permanece oculta el resto del ciclo */
}

/* El texto y botones que flotan encima */
.ewm-hero-content {
    position: relative !important;
    z-index: 3 !important; 
    padding: 0 20px !important;
    max-width: 900px !important;
}

.ewm-hero-content h1 {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 4.5rem !important;
    font-weight: normal !important;
    letter-spacing: -1px !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
}

.ewm-hero-content p {
    font-size: 1.5rem !important;
    color: #e0e0e0 !important;
    margin: 0 auto 40px !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
}

/* --- 2. BOTONES PREMIUM --- */
.ewm-btn-solid {
    display: inline-block !important;
    background-color: #ffffff !important;
    color: #111 !important;
    padding: 18px 45px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.ewm-btn-solid:hover {
    background-color: #e0e0e0 !important;
    transform: translateY(-2px) !important;
}

.ewm-btn-outline {
    display: inline-block !important;
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 18px 45px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: 2px solid #ffffff !important;
    margin-left: 15px !important;
    transition: all 0.3s ease !important;
}

.ewm-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- 3. SECCIÓN FEATURES (3 COLUMNAS) --- */
.ewm-features {
    padding: 80px 20px !important;
    background-color: #fbfbfb !important;
}

.ewm-feature-box {
    text-align: center !important;
    padding: 40px 20px !important;
}

.ewm-feature-box i {
    font-size: 32px !important;
    color: #111 !important;
    margin-bottom: 25px !important;
    display: block !important;
}

.ewm-feature-box h3 {
    font-family: 'Georgia', serif !important;
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
    color: #111 !important;
}

.ewm-feature-box p {
    font-size: 1.1rem !important;
    color: #666 !important;
    line-height: 1.7 !important;
}

/* --- 4. ABOUT US TEASER --- */
.ewm-about-teaser {
    padding: 100px 20px !important;
    background-color: #ffffff !important;
}

.ewm-about-teaser-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    object-fit: cover !important;
    aspect-ratio: 1/1 !important;
}

.ewm-about-teaser-content {
    padding-left: 50px !important;
}

.ewm-about-teaser-content h2 {
    font-family: 'Georgia', serif !important;
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
    color: #111 !important;
    font-weight: normal !important;
}

.ewm-about-teaser-content p {
    font-size: 1.25rem !important;
    color: #555 !important;
    line-height: 1.8 !important;
    margin-bottom: 40px !important;
    font-weight: 300 !important;
}

.ewm-about-teaser-link {
    color: #111 !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: color 0.3s ease !important;
}

.ewm-about-teaser-link:hover {
    color: #444 !important;
}

/* --- 5. FOOTER --- */
.ewm-footer {
    padding: 60px 0 30px !important;
    background-color: #fafafa !important;
    border-top: 1px solid #eaeaea !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.ewm-footer-block {
    margin-bottom: 30px !important;
}

.ewm-footer-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 10px !important;
}

.ewm-footer-address {
    font-size: 2.15rem !important;
    color: #111 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.ewm-footer-address i {
    margin-right: 8px !important;
    color: #666 !important;
}

.ewm-footer-copyright-wrapper {
    border-top: 1px solid #eee !important;
    padding-top: 25px !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

.ewm-footer-copyright-text {
    font-size: 0.9rem !important;
    color: #999 !important;
    letter-spacing: 0.5px !important;
}

/* --- 6. SOCIAL ICONS (WHATSAPP + LINKEDIN) --- */
.ewm-header-social-right {
    position: absolute !important;
    right: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    /* Flexbox hace que se coloquen uno al lado del otro */
    display: flex !important;
    align-items: center !important;
    gap: 15px !important; /* Separación entre iconos */
}

.ewm-header-social-right a {
    display: inline-block !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    color: #333333 !important; 
}

/* Controlamos el tamaño de ambos SVGs para que sean iguales */
.ewm-linkedin-svg,
.ewm-whatsapp-svg {
    height: 24px !important;
    width: auto !important;
    display: block !important;
}

/* Forzamos el texto blanco de LinkedIn */
.ewm-linkedin-svg .bug-text-color {
    fill: #ffffff !important;
}

/* Efectos Hover por separado (Verde WhatsApp / Azul LinkedIn) */
.ewm-header-social-right a.ewm-wa-link:hover {
    color: #25D366 !important; 
    transform: translateY(-2px) !important;
}

.ewm-header-social-right a.ewm-li-link:hover {
    color: #0a66c2 !important;
    transform: translateY(-2px) !important;
}

/* Ajustes para móviles */
@media (max-width: 991px) {
    .ewm-header-social-right {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 20px auto 0 !important;
        display: flex !important;
        justify-content: center !important;
        gap: 30px !important; /* Más separados en móvil para pulsarlos bien con el dedo */
    }
}

/* --- 7. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    .ewm-header-social-right {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 20px auto 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    /* 1. Reducimos la altura del slider en móviles para no recortar tanto la foto */
    .ewm-hero-slider-container { 
        min-height: 60vh !important; 
    }
    
    /* 2. Hacemos el título más pequeño para que quepa bien */
    .ewm-hero-content h1 { 
        font-size: 2.5rem !important; 
        margin-bottom: 15px !important;
        padding: 0 10px !important;
    }
    
    /* 3. Reducimos el texto descriptivo */
    .ewm-hero-content p { 
        font-size: 1.1rem !important; 
        margin-bottom: 25px !important; 
        padding: 0 15px !important;
    }
    
    /* 4. Ponemos los botones uno encima del otro para que sea fácil pulsarlos */
    .ewm-btn-outline { 
        margin-left: 0 !important; 
        margin-top: 15px !important; 
        display: block !important; 
    }
    .ewm-btn-solid { 
        display: block !important; 
    }
    
    /* 5. Ajustes de la sección "About" en móviles */
    .ewm-about-teaser-content { 
        padding-left: 0 !important; 
        margin-top: 40px !important; 
        text-align: center !important; 
    }
    
    /* 6. AUMENTAR TAMAÑO DEL MENÚ EN MÓVILES */
    ul.main-nav li {
        margin-bottom: 15px !important; 
    }
    
    ul.main-nav li a {
        font-size: 2.1rem !important; 
        padding: 10px 0 !important; 
        display: inline-block !important;
        font-weight: 500 !important;
    }
}

