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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a2a3a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    border-radius: 100px;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0,102,204,0.06);
    border: 1px solid rgba(127,184,224,0.15);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0066cc;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #4a6a7a;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.25s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s;
}

nav a:hover {
    color: #0066cc;
}

nav a:hover::after {
    width: 100%;
}

/* ─── HERO NEURAL ─── */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#neuralCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1a2a 0%, #0f2a3f 50%, #0a1a2a 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,102,204,0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-shadow: 0 2px 40px rgba(0,102,204,0.3);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-content .btn-primary {
    padding: 0.9rem 2.5rem;
    background: #ffffff;
    color: #0066cc;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.25s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: inline-block;
}

.hero-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ─── SECTIONS ─── */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section.alt {
    max-width: 100%;
    padding-left: calc((100% - 1200px) / 2 + 2rem);
    padding-right: calc((100% - 1200px) / 2 + 2rem);
}

#servicios {
    background: #ffffff;
}

#nosotros {
    background: #eef7ff;
}

#testimonios {
    background: #f4faff;
}

#contacto {
    background: #dcedff;
}

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

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: rgba(0,102,204,0.08);
    color: #0066cc;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2a3a;
}

.section-header p {
    color: #4a6a7a;
    margin-top: 0.5rem;
}

/* ─── CARDS ─── */
.cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    box-shadow: 0 2px 20px rgba(0,102,204,0.06);
    border: 1px solid rgba(127,184,224,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,102,204,0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.card p {
    color: #4a6a7a;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.card-link {
    text-decoration: none;
    color: #0066cc;
    font-weight: 600;
    font-size: 0.85rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* ─── ABOUT ─── */
.about-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-img-wrapper {
    flex: 1;
    min-width: 280px;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,102,204,0.1);
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text p {
    color: #4a6a7a;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0066cc;
}

.stat-label {
    font-size: 0.8rem;
    color: #4a6a7a;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    border: 1px solid rgba(127,184,224,0.1);
    box-shadow: 0 2px 12px rgba(0,102,204,0.04);
}

.stars {
    color: #f0b429;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.testimonial-card p {
    color: #4a6a7a;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 0.85rem;
    color: #1a2a3a;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: #4a6a7a;
}

/* ─── CONTACT ─── */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

form {
    flex: 1;
    min-width: 280px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

input, select, textarea {
    padding: 0.85rem 1rem;
    border: 1px solid #b8d8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    background: #ffffff;
}

input:focus, select:focus, textarea:focus {
    border-color: #7fb8e0;
    box-shadow: 0 0 0 3px rgba(127,184,224,0.15);
}

button {
    padding: 0.9rem;
    background: linear-gradient(135deg, #0066cc, #3a8fd4);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,102,204,0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,102,204,0.3);
}

.contact-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a6a7a;
    font-size: 0.95rem;
}

.info-icon {
    font-size: 1.4rem;
}

/* ─── FOOTER ─── */
footer {
    background: #1a2a3a;
    color: #b0c8d8;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand .logo {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #b0c8d8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #7fb8e0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.8rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 20px;
        top: 0.5rem;
        padding: 0.75rem 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .stats {
        justify-content: center;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}