/* ==========================================================================
   Administrador de Colegios - Styles System for Landing Page
   ========================================================================== */

:root {
    /* Colors Palette */
    --background: #060913;
    --background-card: #0d1322;
    --background-card-hover: #161e33;
    --primary: #5c64f2;
    --primary-hover: #474fd1;
    --primary-glow: rgba(92, 100, 242, 0.15);
    
    --accent: #00f2fe;
    --accent-hover: #00c6ff;
    --accent-glow: rgba(0, 242, 254, 0.15);

    --text-white: #ffffff;
    --text-muted: #8c9bb4;
    --text-body: #475569;
    --text-title: #0f172a;
    
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    
    --success: #10b981;
    --error: #ef4444;

    /* Fonts */
    --font-display: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.small-container {
    max-width: 800px;
}

/* Glowing Background Blobs */
.glow-blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(6, 9, 19, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    top: -10vw;
    right: -5vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(6, 9, 19, 0) 70%);
}

.blob-2 {
    top: 40vw;
    left: -10vw;
}

.blob-3 {
    bottom: -10vw;
    right: 10vw;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(92, 100, 242, 0.1);
    border: 1px solid rgba(92, 100, 242, 0.2);
    border-radius: 9999px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.badge-accent {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(92, 100, 242, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 100, 242, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(6, 9, 19, 0.8);
    border-b: 1px solid var(--border-dark);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--background);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-white);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem 0;
    position: relative;
}

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

.hero-content h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Interactive Flywheel Graph */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.flywheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.flywheel-svg {
    width: 100%;
    height: auto;
}

.flywheel-bg-circle {
    fill: none;
    stroke: var(--border-dark);
    stroke-width: 1;
}

.flywheel-dash-circle {
    fill: none;
    stroke: var(--border-dark);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
}

.flywheel-dash-circle.inner {
    stroke-dasharray: 4 4;
}

.flywheel-segment {
    cursor: pointer;
}

.seg-path {
    fill: var(--background-card);
    stroke: var(--border-dark);
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.flywheel-segment:hover .seg-path {
    fill: var(--background-card-hover);
    stroke: var(--primary);
}

.flywheel-segment.active .seg-path {
    fill: rgba(92, 100, 242, 0.15);
    stroke: var(--primary);
}

.flywheel-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-white);
    text-align: center;
    transition: var(--transition-smooth);
    user-select: none;
}

.flywheel-label i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    transition: var(--transition-smooth);
}

.flywheel-segment:hover .flywheel-label i,
.flywheel-segment.active .flywheel-label i {
    color: var(--accent);
    transform: scale(1.1);
}

.flywheel-label span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
}

.flywheel-hub-shadow {
    fill: rgba(0, 242, 254, 0.2);
    filter: blur(10px);
}

.flywheel-hub {
    fill: var(--background);
    stroke: var(--accent);
    stroke-width: 3;
}

.flywheel-hub-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent);
    font-size: 1.5rem;
}

/* Info Panel below Flywheel */
.flywheel-info-panel {
    margin-top: 1.5rem;
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    min-height: 100px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.flywheel-info-panel h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.flywheel-info-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Generic Section Styles */
.section {
    padding: 6rem 0;
}

.dark-section {
    background-color: #0b0f19;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

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

.section-header.text-center {
    text-align: center;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards (Pain Points) */
.card {
    background-color: var(--background-card);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(92, 100, 242, 0.4);
    box-shadow: 0 10px 30px rgba(92, 100, 242, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.error-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.solution-highlight {
    font-size: 0.85rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Feature Blocks */
.feature-block {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-block:hover {
    background: var(--background-card);
    border-color: rgba(0, 242, 254, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    background: rgba(92, 100, 242, 0.1);
    border: 1px solid rgba(92, 100, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* AFIP Invoicing Section */
.afip-section {
    background: radial-gradient(circle at right, rgba(92,100,242,0.1), transparent 60%), #0b0f19;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.step-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-guide-item {
    display: flex;
    gap: 1.25rem;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-guide-item h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-guide-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Simulator Widget styling */
.simulator-wrapper {
    display: flex;
    justify-content: center;
}

.simulator-window {
    width: 100%;
    max-width: 450px;
    background-color: var(--background-card);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.sim-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sim-dots {
    display: flex;
    gap: 0.4rem;
}

.sim-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-dark);
}

.sim-dots span:nth-child(1) { background-color: var(--error); }
.sim-dots span:nth-child(2) { background-color: #eab308; }
.sim-dots span:nth-child(3) { background-color: var(--success); }

.sim-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sim-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.sim-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.sim-input:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
}

.sim-details {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-row.total-row {
    border-top: 1px dashed var(--border-dark);
    padding-top: 0.75rem;
    margin-bottom: 0;
    color: var(--text-white);
    font-size: 1rem;
}

.sim-response {
    margin-top: 1.5rem;
    min-height: 60px;
}

.loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.success-result {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
}

.success-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--success);
    margin-bottom: 0.75rem;
}

.success-header i {
    font-size: 1.5rem;
}

.success-header h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
}

.success-header span {
    font-size: 0.75rem;
    display: block;
    color: var(--text-muted);
}

.success-details {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.code-font {
    color: var(--text-white);
}

/* Pricing Grid */
.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(92, 100, 242, 0.15);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    min-height: 40px;
}

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.price .amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price .period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--success);
}

.pricing-features li.disabled {
    color: rgba(255,255,255,0.25);
}

.pricing-features li.disabled i {
    color: var(--border-dark);
}

/* Contact / Demo Section */
.contact-section {
    background: radial-gradient(circle at bottom, rgba(0, 242, 254, 0.05), transparent 70%), #0b0f19;
}

.contact-form {
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-footer-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-footer-note i {
    color: var(--accent);
}

/* Footer styling */
.main-footer {
    background-color: #03050a;
    border-top: 1px solid var(--border-dark);
    padding: 5rem 0 3rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1.2fr;
    gap: 6rem;
    margin-bottom: 4rem;
    justify-content: center;
    align-items: start;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .badge {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        display: none; /* simple hidden mobile menu for mock */
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
