/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fafcff;
    color: #0f172a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    position: sticky;
    top: 0;
    background: rgba(250, 252, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span {
    color: #2563eb;
    position: relative;
}
.logo span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    font-size: 0.95rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: #334155;
    transition: 0.3s;
    position: relative;
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: 0.3s;
    border-radius: 2px;
}
.nav-links a:hover::before {
    width: 100%;
}
.nav-links a:hover {
    color: #2563eb;
}

.nav-links .btn-outline {
    border: 1.5px solid #2563eb;
    padding: 8px 24px;
    border-radius: 50px;
    color: #2563eb;
    font-weight: 600;
    transition: 0.3s;
    background: transparent;
}
.nav-links .btn-outline:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.nav-links .btn-outline::before {
    display: none;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 50px;
}
.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    position: relative;
}
.hero-container::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-text {
    flex: 1 1 400px;
    position: relative;
    z-index: 1;
}
.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.12);
}
.hero-text .badge i {
    font-size: 0.7rem;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    color: #0f172a;
    letter-spacing: -1px;
}
.hero-text h1 .highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.stat-number .plus {
    color: #2563eb;
}
.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-image {
    flex: 1 1 260px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(145deg, #f1f5f9, #e8edf5);
    border-radius: 40px;
    padding: 44px 24px;
    min-height: 220px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    transition: 0.5s;
}
.hero-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
}
.hero-image .icon-box {
    background: #fff;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #2563eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero-image .icon-box:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
    color: #7c3aed;
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: 30px 0 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 30px 0 10px;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.section-title .highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-sub {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 620px;
    line-height: 1.7;
}

.page-header .section-title {
    margin-top: 0;
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}
.services-full {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    background: #fff;
    border-radius: 28px;
    padding: 30px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: 0.4s;
}
.service-card:hover::before {
    opacity: 1;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 99, 235, 0.1);
}
.service-icon {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(37, 99, 235, 0.06);
    padding: 12px;
    border-radius: 16px;
    transition: 0.3s;
}
.service-card:hover .service-icon {
    background: #2563eb;
    color: #fff;
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.service-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-top: 16px;
}
.service-features li {
    color: #475569;
    font-size: 0.85rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-features li i {
    color: #2563eb;
}

/* ===== SECTORES ===== */
.sectors-section {
    background: linear-gradient(145deg, #f1f5f9, #e8edf5);
    border-radius: 40px;
    padding: 30px 0 50px;
    margin: 20px 0 30px;
    transition: 0.3s;
}
.sectors-section .section-title {
    margin-top: 20px;
}
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.sector-item {
    background: #fff;
    border-radius: 20px;
    padding: 20px 14px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: 0.35s;
    cursor: default;
}
.sector-item:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}
.sector-item i {
    font-size: 2.2rem;
    color: #2563eb;
    margin-bottom: 10px;
    display: block;
    transition: 0.3s;
}
.sector-item:hover i {
    transform: scale(1.1);
}
.sector-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* SECTORES FULL PAGE */
.sectors-full {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.sector-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.35s;
}
.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
}
.sector-card i {
    font-size: 2.8rem;
    color: #2563eb;
    margin-bottom: 14px;
    display: block;
}
.sector-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.sector-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}
.sector-link {
    display: inline-block;
    margin-top: 12px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}
.sector-link:hover {
    transform: translateX(4px);
}
.sector-link i {
    display: inline;
    font-size: 0.8rem;
    margin-bottom: 0;
    color: #2563eb;
}

/* ===== METODOLOGÍA ===== */
.method-section {
    background: #0f172a;
    border-radius: 40px;
    padding: 30px 0 50px;
    margin: 20px 0 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.method-section .container {
    position: relative;
    z-index: 1;
}
.method-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.method-section .section-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
    position: relative;
    z-index: 1;
}
.method-section .section-sub {
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}
.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}
.step {
    text-align: center;
    padding: 22px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.3s;
    backdrop-filter: blur(4px);
}
.step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}
.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: 0.3s;
}
.step:hover .step-number {
    background: #2563eb;
    color: #fff;
}
.step h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 600;
}
.step p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===== PROYECTOS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 20px 0 40px;
}

.project-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: 0.4s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.12);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background-color: #e8edf5;
}

.project-content {
    padding: 22px 26px 28px;
}
.project-content .tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.project-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.project-content p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

.project-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}
.result-badge i {
    font-size: 0.6rem;
}

/* ===== CONTACTO ===== */
.contact-section {
    background: linear-gradient(135deg, #0f172a, #1a2744);
    color: #fff;
    border-radius: 40px;
    padding: 30px 0 50px;
    margin: 20px 0 40px;
    position: relative;
    overflow: hidden;
}
.contact-section .container {
    position: relative;
    z-index: 1;
}
.contact-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}
.contact-left {
    position: relative;
    z-index: 1;
}
.contact-left h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.contact-left h2 span {
    color: #60a5fa;
}
.contact-left p {
    opacity: 0.7;
    max-width: 380px;
    line-height: 1.7;
}
.contact-info {
    display: flex;
    gap: 28px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.contact-info span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: 0.3s;
}
.contact-info span:hover {
    color: #fff;
}
.contact-info i {
    color: #60a5fa;
    width: 18px;
    font-size: 1.1rem;
}

.contact-right {
    position: relative;
    z-index: 1;
}

/* Botones */
.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #2563eb;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}
.btn-full {
    width: 100%;
    text-align: center;
}
.btn-primary i {
    margin-left: 8px;
}

/* ===== CONTACT FORM PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin: 30px 0 20px;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 28px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #0f172a;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    background: #f8fafc;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}
.contact-form textarea {
    resize: vertical;
}

.form-note {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-note i {
    color: #2563eb;
}

/* Contact Info Side */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: #fff;
    border-radius: 28px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}
.contact-info-card h3 span {
    color: #2563eb;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.contact-item i {
    font-size: 1.2rem;
    color: #2563eb;
    width: 24px;
    margin-top: 2px;
}
.contact-item strong {
    display: block;
    font-size: 0.85rem;
}
.contact-item p {
    color: #64748b;
    font-size: 0.9rem;
}

.contact-social-card {
    background: #fff;
    border-radius: 28px;
    padding: 24px 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}
.contact-social-card h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
}
.social-links a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 32px 0 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.85rem;
    gap: 16px;
}
.footer-links {
    display: flex;
    gap: 28px;
}
.footer-links a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
.footer-links a:hover {
    color: #2563eb;
}
.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a {
    color: #94a3b8;
    transition: 0.3s;
    font-size: 1.1rem;
    text-decoration: none;
}
.footer-social a:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .sectors-section,
    .method-section,
    .contact-section {
        padding: 20px 0 40px;
        border-radius: 24px;
    }
    .contact-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-container::before {
        display: none;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .project-image {
        height: 170px;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .contact-info-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 24px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .hero-image {
        padding: 28px 16px;
    }
    .hero-image .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    .project-image {
        height: 150px;
    }
    .services-full {
        grid-template-columns: 1fr;
    }
    .sectors-full {
        grid-template-columns: 1fr 1fr;
    }
    .contact-left h2 {
        font-size: 1.5rem;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}