/* --- Custom Properties for Brand Colors --- */
:root {
    --rotrax-red: #D83133;
    --rotrax-blue: #004AAD;
}

/* Applying Inter font to the body */
body {
    font-family: 'Inter', sans-serif;
}

/* --- Header and Navigation --- */
.logo-blue { color: var(--rotrax-blue); }
.logo-red { color: var(--rotrax-red); }

.nav-link {
    color: #1f2937; /* gray-800 */
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--rotrax-red) !important;
}
/* UPDATED: Added !important to force the red color on hover */
.nav-link:hover { 
    color: var(--rotrax-red) !important; 
}

/* --- Call to Action Button --- */
.cta-button {
    background-color: var(--rotrax-blue) !important;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--rotrax-red) !important; 
    transform: scale(1.05);
}

/* --- Hero Section with Ken Burns Effect --- */
.hero-bg {
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 21, 41, 0.75), rgba(0, 21, 41, 0.75)), url('img/camion-rotrax1.png');
    background-size: cover;
    background-position: center;
    animation: kenburns-effect 20s ease-out forwards;
    z-index: 1;
}

.hero-bg .container {
    position: relative;
    z-index: 2;
}
@keyframes kenburns-effect {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-1%, 1%); }
}


/* --- Service Cards --- */
.service-card {
    background-color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-bottom-color: var(--rotrax-red);
}
.service-card i {
    transition: transform 0.3s ease;
}
.service-card:hover i {
    transform: scale(1.1);
}

/* --- Styling for Testimonials Section --- */
.testimonial-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--rotrax-blue);
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.testimonial-author-block {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.testimonial-author-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eef2ff; /* indigo-50 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--rotrax-blue);
    margin-right: 1rem;
    flex-shrink: 0;
}
.testimonial-author {
    font-weight: 600;
    color: #1f2937; /* gray-800 */
}
.testimonial-author-company {
    font-weight: 400;
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
}
.testimonial-quote {
    font-style: italic;
    color: #374151; /* gray-700 */
    flex-grow: 1;
    border-left: 3px solid #e5e7eb; /* gray-200 */
    padding-left: 1rem;
    font-size: 0.95rem;
}
/* --- Logo Animation --- */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
header a.text-2xl:hover {
    animation: logoPulse 0.6s ease-in-out;
}

/* === TOQUES ROJOS ESTRATÉGICOS === */

/* Títulos importantes */
h2 {
    color: var(--rotrax-red);
}

/* Íconos destacados */
.service-card i,
.testimonial-card i {
    color: var(--rotrax-red);
}

/* Bordes o decoraciones suaves */
.service-card:hover {
    border-bottom-color: var(--rotrax-red);
}

/* Subrayado rojo al hover en footer */
footer a:hover {
    color: var(--rotrax-red);
}


