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

html,
body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --primary: #531f81;
    --secondary: #0095CF;
    --accent: #00B4C8;
    --success: #28a745;
    --warning: #f1c40f;
    --danger: #ff4757;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
}


.white{
    color: white;
    fill: white;
}

/* NAVBAR */
.navbar {
    background: transparent;
    font-weight: 600;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar.scrolled {
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s;
    margin-left: 0.5rem;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, rgba(83, 31, 129, 0.85) 0%, rgba(0, 149, 207, 0.85) 100%),
        url('assets/img/healtech.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-section .subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    opacity: 0.85;
    margin-bottom: 3rem;
}

.btn-hero {
    background: var(--accent);
    color: white;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--accent);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
}

.btn-hero:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 200, 0.4);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary);
}

/* STATS */
.stats-section {
    background: white;
    padding: 60px 20px;
}

.stat-box {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--dark-text);
    font-weight: 500;
    margin-top: 10px;
    font-size: 1rem;
}

/* SERVICES */
.services-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 25px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.service-icon.blue {
    background: var(--secondary);
}

.service-icon.green {
    background: var(--success);
}

.service-icon.accent {
    background: var(--accent);
}

.service-icon.warning {
    background: var(--warning);
    color: #333;
}

.service-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    color: #666;
}

.service-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.service-features li:before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
}

/* PROYECTOS */
.projects-section {
    padding: 80px 20px;
    background: white;
}

.project-item {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 5px solid var(--secondary);
    transition: all 0.3s;
}

.project-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.project-item h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.project-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.project-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.icon-color {
    color: var(--secondary);
    margin-right: 10px;
}

/* CLIENTES */
.clients-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(83, 31, 129, 0.95) 0%, rgba(0, 149, 207, 0.95) 100%),
        url('assets/img//medicos.jpg') no-repeat center center;
    color: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-type {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.client-type:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.client-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.client-type h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.client-type p {
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* TESTIMONIOS */
.testimonials-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    color: var(--warning);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.testimonial-role {
    color: #999;
    font-size: 0.9rem;
}

/* MISION/VISION */
.essence-section {
    padding: 80px 20px;
    background: white;
}

.essence-item {
    margin-bottom: 40px;
}

.essence-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.essence-item.mission .essence-icon {
    background: var(--danger);
}

.essence-item.vision .essence-icon {
    background: var(--warning);
    color: #333;
}

.essence-item.objectives .essence-icon {
    background: var(--secondary);
}

.essence-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.essence-item p {
    color: #666;
    line-height: 1.7;
}

.objectives-list {
    list-style: none;
    color: #666;
}

.objectives-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.objectives-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* CONTACT */
.contact-section {
    background: linear-gradient(135deg, rgba(83, 31, 129, 0.95) 0%, rgba(0, 149, 207, 0.95) 100%);
    color: white;
    padding: 80px 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info-block {
    margin-bottom: 30px;
}

.contact-info-block h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-info-block p {
    opacity: 0.9;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.modern-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.modern-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 180, 200, 0.3);
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #008f9c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 200, 0.3);
}

/* FOOTER */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    opacity: 0.8;
}

/* SCROLL TO TOP */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 900;
    font-size: 1.2rem;
}

.scroll-to-top.show {
    opacity: 1;
}

.scroll-to-top:hover {
    background: #008f9c;
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-section {
        min-height: 85vh;
        padding-top: 70px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .services-section,
    .projects-section,
    .testimonials-section,
    .essence-section {
        padding: 60px 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .stat-box {
        padding: 20px 15px;
    }

    .project-tags {
        gap: 5px;
    }

    .tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 0;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .subtitle {
        font-size: 0.9rem;
    }

    .btn-hero {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .project-item {
        padding: 20px;
    }

    .project-item h5 {
        font-size: 1rem;
    }

    .essence-item h4 {
        font-size: 1.2rem;
    }
}