/* ==================== COACHING DIGITAL - ESTILOS GLOBALES ==================== */
/* NUEVA PALETA: Fondo Blanco + Acento Morado */

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

/* Base */
body {
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ==================== TIPOGRAFÍA ==================== */
.font-heading { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-body { font-family: 'Sora', system-ui, sans-serif; }
.font-script { font-family: 'Caveat', cursive; }

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; }

/* ==================== COLORES PRINCIPALES ==================== */
:root {
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    --purple-800: #6b21a8;
    --purple-900: #581c87;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ==================== HEADER FLOTANTE ==================== */
.header-float {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    z-index: 100;
    height: 72px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.header-float.scrolled {
    top: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-icon-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(168, 85, 247, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-icon-link:hover .logo-icon-img {
    border-color: #a855f7;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

/* Navegación */
.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.nav-link-item {
    position: relative;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.nav-link-item:hover { color: #7e22ce; }

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-item:hover::after { width: 60%; }

/* Dropdown */
.dropdown-wrap { position: relative; }

.dropdown-panel {
    position: absolute;
    top: calc(100% + 1.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 20px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-wrap:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.dropdown-link:hover {
    color: #7e22ce;
    background: rgba(168, 85, 247, 0.05);
    padding-left: 2rem;
}

.dropdown-link svg { width: 18px; height: 18px; opacity: 0.5; }
.dropdown-link:hover svg { opacity: 1; color: #a855f7; }

/* Indicador */
.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: #a855f7;
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Botón CTA */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.75rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05));
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    border-radius: 100px;
    color: #7e22ce;
    font-family: 'Sora', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
    transform: translateX(2px);
}

.btn-cta-solid {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: white;
    border-color: transparent;
    font-weight: 700;
}

.btn-cta-solid:hover {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
    color: white;
}

/* Menu móvil */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 190;
}

.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(30px);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-panel.open { transform: translateX(0); }

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    color: #7e22ce;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close:hover { background: rgba(168, 85, 247, 0.2); transform: rotate(90deg); }

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--gray-800);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    border-bottom: 1px solid rgba(168, 85, 247, 0.08);
    transition: all 0.3s ease;
    padding-left: 1.5rem;
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover { color: #7e22ce; padding-left: 2.5rem; }
.mobile-nav-link:hover::before { transform: translateY(-50%) scale(1); }

/* ==================== FOOTER ==================== */
.footer-main {
    background: var(--gray-900);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand p { color: var(--gray-400); font-size: 0.875rem; margin-top: 1rem; }

.footer-col h4 {
    color: #a855f7;
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-col a:hover { color: #a855f7; }

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(168, 85, 247, 0.05);
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* ==================== COMPONENTES ==================== */

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    color: #7e22ce;
    font-family: 'Sora', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Cards */
.card {
    background: white;
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.1);
}

/* Pillar Card */
.pillar-card {
    position: relative;
    background: white;
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.pillar-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-card:hover::before { opacity: 1; }

.pillar-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pillar-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(168, 85, 247, 0.06);
    line-height: 1;
}

.pillar-card:hover .pillar-number { color: rgba(168, 85, 247, 0.15); }

/* Service Card */
.service-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 32px 64px -16px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.service-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transition: all 0.6s ease;
}

.service-card:hover .card-bg { transform: scale(1.08); opacity: 0.25; }

.service-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(126, 34, 206, 0.95));
    border: 2px dotted rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
}

.service-card:hover .card-overlay { opacity: 1; }

/* ==================== FORMULARIOS ==================== */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-800);
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ==================== ANIMACIONES ==================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
}

.animate-bounce { animation: bounce 2s infinite; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1023px) {
    .header-float {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        height: 64px;
        padding: 0 1.5rem;
        border-radius: 50px;
    }
    .logo-icon-img { width: 42px; height: 42px; border-radius: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .header-float { top: 0.75rem; left: 0.75rem; right: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==================== UTILIDADES ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-purple { color: #7e22ce; }
.text-muted { color: var(--gray-500); }
.bg-light { background: var(--gray-50); }
.bg-lighter { background: white; }
.section-padding { padding: 6rem 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: white; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a855f7; }

/* Selection */
::selection { background: rgba(168, 85, 247, 0.2); color: var(--gray-900); }
