/* Variables de Marca */
:root {
    --primary-color: #0d1b2a; 
    --accent-color: #1b263b; 
    --highlight: #00b4d8;    
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f4f7f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.text-center { text-align: center; }

header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-bottom: 1px solid #eaeaea;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.main-logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--highlight);
}

.hero {
    background-color: var(--accent-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--highlight);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* SLIDER DE PARTNERS */
.slider-section {
    background: var(--white);
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.slider {
    height: 120px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    display: flex;
    /* 11 logos originales + 11 duplicados = 22 total */
    width: calc(250px * 24); 
    animation: scroll 40s linear infinite;
}

.slide {
    width: 250px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slide img {
    max-width: 180px; /* Ajustado para mejor visualización */
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    opacity: 0.6;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    /* Se mueve el ancho de los 12 logos iniciales */
    100% { transform: translateX(calc(-250px * 12)); }
}

/* SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--highlight);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.highlight {
    border: 2px solid var(--highlight);
    background-color: #f0faff;
}

.service-icon-img {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    margin-top: 60px;
}

/* WHATSAPP */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
}