:root {
    --primary: #29235c;
    --primary-dark: #1e1a47;
    --primary-light: #e8e7f0;
    --accent: #009fe3;
    --accent-hover: #0088c4;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --gray-border: #e9ecef;
    --white: #ffffff;
    --font: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: color 0.2s;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

.navbar {
    background: rgba(41,35,92,0.95);
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar.scrolled .nav-link { color: var(--dark); }
.navbar.scrolled .nav-link.active { color: var(--primary); }

.navbar-brand img {
    height: 32px;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.btn-nav {
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-nav:hover {
    background: var(--accent);
    color: var(--white);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath d='M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath d='M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,159,227,0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

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

.hero-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.badge-item i {
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

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

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.servicios {
    background: var(--gray-light);
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
    border: 1px solid var(--gray-border);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(41,35,92,0.08);
    border-color: var(--primary-light);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

.proceso {
    background: var(--white);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

.process-step {
    text-align: center;
    flex: 1;
    max-width: 240px;
    padding: 0 1rem;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step-icon {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s;
}

.process-step:hover .step-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(41,35,92,0.2);
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.step-text {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4.5rem;
    color: var(--gray-border);
    font-size: 1.25rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .process-step {
        max-width: 300px;
        padding: 1.5rem 0;
    }

    .process-arrow {
        padding-top: 0;
        padding-bottom: 0;
        transform: rotate(90deg);
    }
}

.beneficios {
    background: var(--gray-light);
}

.benefit-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    height: 100%;
}

.benefit-item:hover {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(41,35,92,0.06);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.35rem;
    color: var(--primary);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(41,35,92,0.06);
}

.benefit-item:hover .benefit-icon {
    background: var(--primary);
    color: var(--white);
}

.benefit-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.benefit-text {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

.indicadores {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.section-badge-light {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.section-title-light {
    color: var(--white);
}

.section-desc-light {
    color: rgba(255,255,255,0.7);
}

.indicator-item {
    text-align: center;
    padding: 2rem 1rem;
}

.indicator-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    display: inline;
}

.indicator-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: 2px;
}

.indicator-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .indicator-number {
        font-size: 2.25rem;
    }
    .indicator-suffix {
        font-size: 1.5rem;
    }
}

.sectores {
    background: var(--white);
}

.sector-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gray-border);
    transition: all 0.3s;
    height: 100%;
}

.sector-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(41,35,92,0.08);
    transform: translateY(-3px);
}

.sector-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s;
}

.sector-item:hover .sector-icon {
    background: var(--primary);
    color: var(--white);
}

.sector-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.contacto {
    background: var(--gray-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-border);
}

.contact-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.contact-form .form-control {
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41,35,92,0.08);
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.footer-text {
    font-size: 0.85rem;
    margin: 0.75rem 0 0;
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.35);
    transition: all 0.2s;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
    }

    .btn-nav {
        display: none;
    }
}
