/* ======================== */
/* ROOT VARIABLES */
/* ======================== */
:root {
    --primary-dark: #0a2d4d; 
    --primary: #1a5688;
    --primary-light: #3a86ba;
    --accent: #3a86ba;
    --text-light: #ffffff;
    --text-gray: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ======================== */
/* GLOBAL STYLES */
/* ======================== */
* {
    scroll-behavior: smooth;
}

body {
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ======================== */
/* MAIN NAVIGATION - IMPROVED */
/* ======================== */
.nav-principal-Cliente {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    border-bottom: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand .logo {
    height: 70px;
    width: auto;
    transition: var(--transition) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-brand:hover .logo {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.8px;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    border-radius: 50px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.nav-link:hover::before {
    transform: translateX(100%);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--accent); 
    font-weight: 700;
    animation: subtlePulse 2s infinite;
    box-shadow: 0 0 10px rgba(58, 134, 186, 0.5);
}

@keyframes subtlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.nav-slogan .slogan {
    height: 60px;
    width: auto;
    opacity: 0.95;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ======================== */
/* HERO BANNER - IMPROVED */
/* ======================== */
.hero-banner {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.banner-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(10, 45, 77, 0.85) 0%, 
                rgba(26, 86, 136, 0.75) 50%, 
                rgba(58, 134, 186, 0.6) 100%);
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1200px;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    animation: fadeInDown 1s ease;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text; /* Versión estándar */
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.banner-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0 auto 25px;
    max-width: 700px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    animation: fadeIn 1.5s ease;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.pulse-button {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(58, 134, 186, 0.7);
    animation: pulse-blue 1.5s infinite;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-decoration: none;
}

.pulse-button:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(26, 86, 136, 0.4);
    color: white;
    text-decoration: none;
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 134, 186, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(58, 134, 186, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 134, 186, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ======================== */
/* ABOUT SECTIONS - IMPROVED */
/* ======================== */
.about-recruitment-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    position: relative;
    overflow: hidden;
}

.about-recruitment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 3-column grid */
.servicios-medicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* 4-column grid */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Service box styles */
.servicio-box {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(10, 45, 77, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    border-left: none;
}

.servicio-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}

.servicio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(10, 45, 77, 0.15);
}

.servicio-box i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    text-align: center;
}

.servicio-box h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

.servicio-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
}

.servicio-box p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

.beneficios-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.beneficios-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.beneficios-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* Specific border colors for different boxes */
.con-restriccion { border-left-color: #0a2d4d; }
.sin-restriccion { border-left-color: #1a5688; }
.vrim { border-left-color: #3a86ba; }
.amplia-mas { border-left-color: #0a2d4d; }
.amplia { border-left-color: #1a5688; }
.reducida { border-left-color: #3a86ba; }
.rc { border-left-color: #4da8da; }

/* Decorative elements */
.servicio-box::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(58, 134, 186, 0.05);
    z-index: -1;
    transition: all 0.5s ease;
}

.servicio-box:hover::before {
    transform: scale(2.5);
    background: rgba(58, 134, 186, 0.08);
}

/* Section divider */
.section-divider {
    width: 100%;
    height: 100px;
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    left: -5%;
    top: 0;
    width: 110%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    z-index: 1;
}

/* ======================== */
/* RESPONSIVE DESIGN */
/* ======================== */
@media (max-width: 1200px) {
    .nav-principal-Cliente {
        height: 80px;
    }
    
    .nav-brand .logo {
        height: 60px;
    }
    
    .banner-image-container {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 2.8rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .servicios-medicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-principal-Cliente {
        flex-direction: column;
        height: auto;
        padding: 15px 5%;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .banner-image-container {
        height: 300px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .servicios-medicos-grid, .servicios-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }
    
    .about-recruitment-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .pulse-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .servicio-box {
        padding: 25px;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
}

/* Floating elements animation */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(58, 134, 186, 0.05);
    filter: blur(30px);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* ======================== */
/* FOOTER SIMPLIFICADO */
/* ======================== */
footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 30px 5%;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-social img {
    height: 20px;
    width: 20px;
}

.footer-center {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.footer-center h5 {
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.5;
}

/* ======================== */
/* RESPONSIVE DESIGN */
/* ======================== */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-center {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-logo img {
        height: 40px;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
    
    .footer-social img {
        height: 18px;
        width: 18px;
    }
    
    .footer-center h5 {
        font-size: 11px;
    }
}

