@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #4361ff;
    --gradient: linear-gradient(135deg, #4361ff 0%, #00f2ff 100%);
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --card: rgba(255, 255, 255, 0.92);
    --glass: rgba(255, 255, 255, 0.25);
    --text-dark: #1e293b;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Inter', sans-serif; background: #f0f7ff; color: var(--text-dark); line-height: 1.7; }
img { max-width: 100%; }

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(67,97,255,0.15);
    transition: all 0.4s;
}
header.scrolled { background: rgba(255,255,255,0.99); box-shadow: 0 10px 40px rgba(67,97,255,0.18); }

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links a {
    margin-left: 3rem;
    font-weight: 600;
    color: #334155;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px;
    bottom: -10px; left: 0;
    background: var(--gradient);
    transition: width 0.4s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* HERO CORREGIDO – texto 100% legible */
.hero {
    height: 100vh;
    min-height: 760px;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.15); /* capa oscura sutil para mejor contraste */
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}
.hero h1 {
    font-size: 5.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero p {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 auto 3.5rem;
    max-width: 900px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1.4rem 3.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transition: all 0.4s;
}
.btn:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 30px 70px rgba(67,97,255,0.5); 
}

/* Resto igual pero con mejor contraste */
section { padding: 140px 2rem; max-width: 1400px; margin: 0 auto; }
h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 3rem; }
.card {
    background: var(--card);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(67,97,255,0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(67,97,255,0.15);
}
.card:hover {
    transform: translateY(-25px) scale(1.03);
    box-shadow: 0 50px 100px rgba(67,97,255,0.3);
}
.card i { font-size: 5rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1.8rem; }
.card h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--text-dark); }

/* Formulario y resto igual que antes */
.whatsapp { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; box-shadow: 0 10px 30px rgba(37,211,102,0.5); z-index: 999; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); } 70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

footer { background: var(--dark); color: white; text-align: center; padding: 6rem 2rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 3.6rem; }
    .hero p { font-size: 1.3rem; }
    .nav-links { display: none; }
}