/* ========================================
   ESTILOS REFACTORIZADOS PARA PÁGINA CLIENTES
   ======================================== */

/* ========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ======================================== */
:root {
    --primary-color: #1e293b;
    --secondary-color: #334155;
    --accent-color: #60a5fa;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: rgba(255, 255, 255, 0.9);
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --border-radius-large: 20px;
    --transition: all 0.3s ease;
    --container-padding: 5rem 0;
    --section-gap: 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.clientes-hero {
    position: relative;
    min-height: 100vh;
    background: var(--bg-gradient-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.9) 50%, rgba(71, 85, 105, 0.85) 100%);
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 250px 250px, 350px 350px;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 600px;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: var(--container-padding);
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--section-gap);
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.clients-section {
    padding: var(--container-padding);
    background: var(--bg-primary);
}

/* Desktop Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--section-gap);
    margin-top: 3rem;
}

.client-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Carousel */
.clients-carousel {
    display: none;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 3rem;
    position: relative;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.clients-carousel::-webkit-scrollbar {
    display: none;
}

.clients-carousel-container {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease;
}

.client-carousel-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    text-align: center;
    margin: 0 1rem;
}

.client-carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Common Client Elements */
.client-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.client-sector {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Carousel Navigation */
.carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ========================================
   SUCCESS STORIES SECTION
   ======================================== */
.success-stories-section {
    padding: var(--container-padding);
    background: var(--bg-gradient-secondary);
    color: white;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--section-gap);
    margin-top: 3rem;
}

.story-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    transition: var(--transition);
}

.story-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.story-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.story-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.story-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--container-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: white;
    color: #002141;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    background: transparent;
    color: white;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-stat-value {
        font-size: 1.8rem;
    }
    
    .hero-stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Activate carousel for clients section */
    .clients-grid {
        display: none;
    }
    
    .clients-carousel {
        display: block;
    }
    
    .carousel-dots {
        display: flex;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Carousel adjustments for smaller screens */
    .client-carousel-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 1.5rem;
        margin: 0 0.75rem;
    }
    
    .client-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 360px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .hero-stat-value {
        font-size: 1.3rem;
    }
    
    .hero-stat-label {
        font-size: 0.65rem;
    }
    
    /* Carousel adjustments for very small screens */
    .client-carousel-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .client-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
} 