/* ============================================
   CABESTUDIO - CSS OPTIMIZADO v2.0
   Sin Tailwind CDN | Tamaños profesionales
   ============================================ */

/* ============ RESET Y BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    font-weight: 900;
}

/* ============ ANIMACIONES ============ */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    60% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes textFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wave1 {
    0%, 100% {
        transform: translateY(0) scaleX(1);
    }
    50% {
        transform: translateY(-30px) scaleX(1.05);
    }
}

@keyframes wave2 {
    0%, 100% {
        transform: translateY(0) scaleX(1);
    }
    50% {
        transform: translateY(25px) scaleX(0.98);
    }
}

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

/* ============ HERO SECTION ============ */
.hero-main {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 30%, #e8e8e8 70%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0 20px 40px;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 80%;
    background: #1a1a1a;
    border-radius: 0 0 50% 50%;
    animation: wave1 12s ease-in-out infinite;
    z-index: 1;
}

.hero-main::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 110%;
    height: 70%;
    background: linear-gradient(180deg, #3a3a3a 0%, #5a5a5a 50%, #8a8a8a 100%);
    border-radius: 0 0 60% 40%;
    animation: wave2 15s ease-in-out infinite;
    z-index: 2;
}

.hero-main > div {
    position: relative;
    z-index: 10;
}

/* ============ LOGO ============ */
.logo-container {
    text-align: center;
    padding: 20px 0 0;
    margin-bottom: -10px;
    animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.logo-container img {
    max-width: 210px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* ============ TYPOGRAPHY ============ */
.hero-headline {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-subheadline {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: #2A2A2A;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* ============ GRADIENT TEXT ============ */
.gradient-text {
    background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-white {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ BUTTONS ============ */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 42, 42, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 42, 42, 0.6);
    background: linear-gradient(135deg, #1E1E1E 0%, #000000 100%);
}

.btn-primary:focus-visible {
    outline: 3px solid #2A2A2A;
    outline-offset: 2px;
}

.btn-secondary {
    background: white;
    color: #2A2A2A;
    border: 2px solid #2A2A2A;
}

.btn-secondary:hover {
    background: #2A2A2A;
    color: white;
}

.btn-secondary:focus-visible {
    outline: 3px solid #2A2A2A;
    outline-offset: 2px;
}

/* ============ CARDS ============ */
.card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: #2A2A2A;
}

/* ============ STATS BADGES ============ */
.stat-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(42, 42, 42, 0.1);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-badge:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    animation: countUp 0.8s ease-out;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

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

/* ============ BADGE ============ */
.badge {
    display: inline-block;
    background: rgba(42, 42, 42, 0.1);
    color: #2A2A2A;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(42, 42, 42, 0.2);
}

/* ============ ICON CIRCLE ============ */
.icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.icon-circle-lg {
    width: 64px;
    height: 64px;
}

/* ============ SECTIONS ============ */
.section {
    padding: 50px 20px;
}

.section-light {
    background: #f8f9fa;
}

.section-dark {
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 50%, #1E1E1E 100%);
    color: white;
}

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

/* ============ VIDEO CONTAINER ============ */
.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.video-placeholder {
    background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

/* ============ CALENDLY ============ */
.calendly-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.calendly-inline-widget {
    width: 100%;
    height: 700px;
    min-height: 700px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============ GRID LAYOUTS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.process-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.process-item {
    flex: 0 1 280px;
    text-align: center;
}

/* ============ TRUST INDICATORS ============ */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #4a5568;
    font-size: 0.8rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item-dark {
    color: rgba(255, 255, 255, 0.7);
}

/* ============ CTA BUTTONS CONTAINER ============ */
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* ============ SCROLL ANIMATIONS ============ */
.animate-text {
    animation: textFadeInUp 1s ease-out 0.3s backwards;
}

.animate-text-delay {
    animation: textFadeInUp 1s ease-out 0.6s backwards;
}

.scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Delays para animaciones escalonadas */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============ UTILITY CLASSES ============ */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 48px; }
.mt-5 { margin-top: 40px; }
.mt-6 { margin-top: 48px; }
.p-8 { padding: 32px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .section {
        padding: 40px 14px;
    }
    
    .btn {
        padding: 11px 26px;
        font-size: 0.9rem;
    }
    
    .calendly-inline-widget {
        height: 650px;
        min-height: 650px;
    }
    
    .logo-container img {
        max-width: 180px;
    }
    
    .hero-headline {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .process-grid {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .calendly-inline-widget {
        height: 600px;
        min-height: 600px;
    }
    
    .section {
        padding: 36px 12px;
    }
    
    .logo-container img {
        max-width: 160px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}

/* ============ DARK MODE SUPPORT ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
