/* ============================================
   ANALEMMA AI - Page Sections
   ============================================ */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 2.5rem;
    line-height: 1.05;
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
    width: 100%;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 800px;
    text-align: center;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-clients {
    margin-top: 4rem;
}

.hero-clients-label {
    font-size: 0.875rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-clients-logos img {
    height: 2.5rem;
    width: auto;
    filter: grayscale(100%) brightness(0.6);
    opacity: 0.6;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.hero-clients-logos img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(2.5);
    z-index: 10;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--bg-secondary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== SOLUTIONS SECTION ===== */
.solutions {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-badge {
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title .gradient-text {
    display: inline;
    font-weight: 900;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.solutions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.solutions-grid .card {
    flex: 1 1 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .solutions-grid .card {
        flex: 0 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .solutions-grid .card {
        flex: 0 1 calc(33.333% - 1.5rem);
        max-width: calc(33.333% - 1.5rem);
    }
    
    /* Centrar las últimas 2 tarjetas cuando hay 5 */
    .solutions-grid .card:nth-child(4),
    .solutions-grid .card:nth-child(5) {
        flex: 0 1 calc(33.333% - 1.5rem);
    }
}

/* ===== INDUSTRIES SECTION ===== */
.industries {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.industries-tabs {
    margin-bottom: 3rem;
}

.industry-content {
    display: none;
}

.industry-content.active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .industry-content.active {
        grid-template-columns: 1fr 1fr;
    }
}

.industry-visual {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.industry-visual video,
.industry-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.industry-info p {
    margin-bottom: 1.5rem;
}

.industry-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.industry-features li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding: var(--section-padding) 0;
}

.clients-showcase {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 1024px) {
    .clients-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-slow);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent-primary);
}

.client-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) brightness(0.8);
}

.client-card:hover .client-logo {
    filter: grayscale(0%) brightness(1);
}

.client-quote {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.client-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.75rem;
}

.client-metric-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.client-metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
}

@media (min-width: 768px) {
    .process-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 3rem;
    }
}

@media (min-width: 1024px) {
    .process-steps {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
    }
}

.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-slow);
    flex: 1;
    padding: 0 1rem;
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    z-index: 3;
}

.process-step-icon {
    width: 100px;
    height: 100px;
    position: relative;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-slow);
    z-index: 2;
    box-shadow: 
        0 0 30px rgba(37, 99, 235, 0.3),
        inset 0 0 20px rgba(37, 99, 235, 0.1);
}

.process-step-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--accent-primary),
        var(--accent-tertiary),
        var(--accent-primary)
    );
    z-index: -1;
    opacity: 0.5;
    animation: rotateBorder 4s linear infinite;
}

.process-step-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    z-index: -1;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.process-step:hover .process-step-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: 
        0 0 50px rgba(37, 99, 235, 0.5),
        0 0 80px rgba(6, 182, 212, 0.3);
}

.process-step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-tertiary);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.process-step:hover .process-step-icon svg {
    color: white;
    transform: scale(1.1);
}

.process-step-content {
    margin-top: 2rem;
    max-width: 220px;
}

.process-step-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.process-step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.process-step-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-tertiary);
}

.process-step-connector {
    display: none;
}

/* ===== PARTNERSHIP SECTION ===== */
.partnership {
    padding: var(--section-padding) 0;
}

.partnership-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.partnership-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 50%);
    pointer-events: none;
}

.partnership-content {
    display: grid;
    gap: 3rem;
    padding: 3rem;
}

@media (min-width: 1024px) {
    .partnership-content {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
        align-items: center;
    }
}

.human-ai-display {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 3px solid var(--accent-primary);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.human-ai-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.1));
}

.human-ai-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.human-ai-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.partnership-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text-primary);
}

.feature-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ===== PARTNERS SECTION ===== */
.partners {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partners-logos img {
    height: 2.5rem;
    width: auto;
    filter: brightness(1);
    opacity: 0.9;
    transition: all var(--transition-normal);
}

/* Logo OpenAI - invertir para fondo oscuro */
.partners-logos img[alt="OpenAI"] {
    filter: invert(1) brightness(0.85);
}

.partners-logos img[alt="OpenAI"]:hover {
    filter: invert(1) brightness(1);
}

.partners-logos img:hover {
    filter: brightness(1.2);
    opacity: 1;
    transform: scale(1.1);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15), transparent 70%);
    pointer-events: none;
}

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

.cta-title {
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.1);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.footer-legal a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}
