/* CSS Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-light: #a5b4fc;
    --primary-dark: #4f46e5;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --secondary-color: #f8f7ff;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #14b8a6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 40px rgba(99, 102, 241, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 4rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.15rem;
}

/* Navegación Flotante */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 60px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    width: 95%;
    max-width: 850px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
}

.nav-brand h1 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 150px 20px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(30px) rotate(5deg); }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h2 {
    color: var(--white);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 100%;
    line-height: 1.7;
}

.hero-decoration {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.8s ease 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Servicios - Layout Asimétrico */
.servicios {
    padding: 120px 20px;
    background-color: var(--secondary-color);
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -200px;
}

.servicios h2 {
    text-align: left;
    margin-bottom: 4rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.servicio-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.servicio-card:nth-child(2) {
    grid-template-columns: 1fr 1fr;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.servicio-card:hover::before {
    left: 100%;
}

.servicio-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
    transform: translateY(-8px);
}

.servicio-content {
    position: relative;
    z-index: 1;
}

.servicio-header {
    margin-bottom: 2rem;
}

.servicio-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.servicio-lista {
    list-style: none;
    margin-bottom: 2rem;
}

.servicio-lista li {
    padding: 0.7rem 0;
    color: var(--text-dark);
    padding-left: 2rem;
    position: relative;
    font-weight: 500;
}

.servicio-lista li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.servicio-contacto {
    margin: 2rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.servicio-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    min-height: 250px;
}

.servicio-icon {
    font-size: 80px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.servicio-card.proximamente {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(99, 102, 241, 0.05));
    border: 2px dashed var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    grid-template-columns: 1fr;
    min-height: 300px;
}

.emoji {
    font-size: 4rem;
    margin: 1rem 0;
    animation: bounce 2.5s ease-in-out infinite;
}

/* Cómo Funciona - Layout Creativo */
.como-funciona {
    padding: 120px 20px;
    background: linear-gradient(to bottom, var(--white) 0%, var(--secondary-color) 100%);
    position: relative;
}

.como-funciona h2 {
    text-align: left;
    margin-bottom: 4rem;
}

.funciona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
}

.funciona-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 0;
}

.funciona-item {
    text-align: center;
    padding: 2.5rem;
    border-radius: 15px;
    background-color: var(--white);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.funciona-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
    transform: translateY(-10px);
}

.funciona-item:hover h3,
.funciona-item:hover p {
    color: var(--white);
}

.funciona-numero {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.funciona-numero::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.2;
}

.funciona-item:hover .funciona-numero::before {
    background: rgba(255, 255, 255, 0.2);
}

.funciona-item:hover .funciona-numero {
    color: var(--white);
}

.funciona-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.funciona-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Diferencia Section */
.diferencia {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.diferencia::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.diferencia h2 {
    text-align: center;
    margin-bottom: 3rem;
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--white);
}

.diferencia-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.diferencia-content h3 {
    color: var(--accent-light);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.diferencia-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.9;
}

/* Aspiración Section */
.aspiracion {
    padding: 120px 20px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    text-align: center;
    position: relative;
}

.aspiracion h2 {
    margin-bottom: 3rem;
}

.aspiracion-content {
    max-width: 750px;
    margin: 0 auto;
}

.aspiracion-content p {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 600;
}

.aspiracion-content em {
    color: var(--primary-color);
    font-style: normal;
    font-weight: 900;
    font-size: 1.35rem;
}

/* Unirse Section */
.unirse {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.unirse::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.unirse::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.unirse h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--white);
}

.unirse-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.unirse-intro {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 600;
}

.email-box {
    margin: 3rem 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.email-box a {
    font-size: 1.2rem;
}

.unirse-footer {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 20px;
    margin-top: 2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        top: 12px;
        width: 95%;
        max-width: none;
        border-radius: 50px;
    }

    .navbar .container {
        padding: 0.8rem 1.2rem;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1.2rem;
    }

    .nav-menu a {
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 200px 20px 60px !important;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        margin-top: 1rem;
    }

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

    .hero-decoration {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-visual div {
        font-size: 100px !important;
    }

    .servicio-card {
        grid-template-columns: 1fr;
        padding: 1.8rem;
    }

    .servicio-imagen {
        min-height: 200px;
    }

    .servicio-icon {
        font-size: 60px;
    }

    .servicios-grid {
        gap: 2rem;
    }

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

    .funciona-grid::before {
        display: none;
    }

    .servicios,
    .como-funciona,
    .diferencia,
    .aspiracion,
    .unirse {
        padding: 80px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -8px);
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 8px;
        width: 96%;
        border-radius: 40px;
    }

    .navbar .container {
        padding: 0.7rem 1rem;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-menu a {
        font-size: 0.7rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero {
        padding: 170px 20px 50px !important;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        margin-top: 0.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-decoration {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    .hero-visual div {
        font-size: 80px !important;
    }

    .funciona-numero {
        font-size: 2.2rem;
    }

    .servicio-card {
        padding: 1.3rem;
    }

    .servicio-header h3 {
        font-size: 1.15rem;
    }

    .servicio-icon {
        font-size: 50px;
    }

    .servicio-imagen {
        min-height: 180px;
    }

    .nav-menu {
        top: 60px;
    }

    .servicios,
    .como-funciona,
    .diferencia,
    .aspiracion,
    .unirse {
        padding: 70px 20px;
    }
}
