/* ===== OneSolution Academy - Styles ===== */
/* Dark Theme - Based on OneSolution V2 Design System */

/* ===== CSS Variables ===== */
:root {
    --fg: #1a1a1a;
    --fg-2: #404040;
    --muted: #666;
    --brand: #F39400;
    --brand-2: #ff9500;
    --accent: #F39400;
    --border: #2a2a2a;
    --card: #0f0f0f;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(242, 158, 48, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
    color: #fff;
    background: #111;
    line-height: 1.6;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-2);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Dark Theme Typography ===== */
body, p, li, span, div {
    color: #fff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #f29e30 !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(28px, 3.6vw, 44px); margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 32px; }
h3 { font-size: clamp(20px, 2.4vw, 28px); margin: 0; }

/* ===== Layout & Spacing ===== */
section {
    padding: 60px 0;
}

@media(max-width: 768px) {
    section {
        padding: 40px 0;
    }
}

.container, .wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Top Bar ===== */
.topbar {
    background: var(--brand);
    color: #fff;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.topbar-centered {
    display: flex !important;
    gap: 16px !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 12px 16px !important;
}

.chiptopbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    color: #111 !important;
    font-weight: 600 !important;
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
}

.topbar .chiptopbar,
.topbar .chiptopbar * {
    color: #111 !important;
}

@media (max-width: 768px) {
    .topbar-centered {
        flex-direction: column;
        gap: 8px;
    }

    .chiptopbar {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ===== Header & Navigation ===== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #111;
    border-bottom: 1px solid var(--border);
    margin-top: 60px;
}

header.topbar-visible {
    top: 60px;
}

@media (max-width: 768px) {
    header {
        margin-top: 0;
    }

    header.topbar-visible {
        top: 0;
    }
}

.navbar, .nav {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.brand, .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand h1 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin: 0;
    color: #f29e30 !important;
    font-weight: 700;
}

.brand .logo-text {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    color: #f29e30;
    letter-spacing: -0.5px;
}

.brand .academy-suffix {
    color: #fff;
    font-weight: 400;
}

.nav-links, .menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links li, .menu > li {
    list-style: none;
}

.nav-links a, .menu > li > a {
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    display: inline-flex;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .menu > li > a:hover {
    background: var(--brand);
    color: #111 !important;
}

.nav-links a.active, .menu > li > a.active {
    background: rgba(243, 148, 0, 0.1);
    color: var(--brand) !important;
    border: 1px solid var(--brand);
}

.hamburger, .hamb {
    display: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 12px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
}

.hamburger:hover, .hamb:hover {
    background: var(--brand);
    color: #111;
}

/* Mobile Navigation */
@media (max-width: 980px) {
    .nav-links, .menu {
        display: none;
    }

    .hamburger, .hamb {
        display: inline-flex;
        gap: 8px;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #111;
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 8px;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Mobile Drawer (OneSolution Style) ===== */
.drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 60;
}

.drawer .box {
    max-width: 320px;
    width: 85%;
    margin-left: auto;
    height: 100%;
    background: #111;
    border-left: 1px solid #222;
    padding: 20px;
    overflow: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.drawer.active {
    display: block;
}

.drawer.active .box {
    transform: translateX(0);
}

.drawer a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px dashed #222;
    color: #fff;
    font-size: 1rem;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 8px;
    margin: 2px 0;
}

.drawer a:hover {
    color: #111 !important;
    background: var(--brand);
    border-bottom-color: transparent;
    padding-left: 12px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: #111;
}

.btn-primary:hover {
    background: #111 !important;
    color: var(--brand) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 148, 0, 0.3);
    border: 2px solid var(--brand);
}

.btn-secondary {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-secondary:hover {
    background: var(--brand);
    color: #111 !important;
    transform: translateY(-2px);
}

.cta-mini {
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 700;
}

/* ===== Hero Section ===== */
#hero {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(26, 26, 26, 0.9)),
                url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1600') center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 140px 0 80px 0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(243, 148, 0, 0.15), transparent 70%);
    pointer-events: none;
}

#hero .container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
    color: #e0e0e0 !important;
}

#hero .cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    #hero {
        min-height: 70vh;
        padding: 60px 0;
    }

    #hero .cta-group {
        flex-direction: column;
        align-items: center;
    }

    #hero .cta-group .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== Cards & Components ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(243, 148, 0, 0.2);
}

.card h3 {
    color: #f29e30;
    font-size: 1.3rem;
    margin: 0 0 16px;
}

.card p {
    line-height: 1.7;
    margin: 0;
}

/* ===== Grid System ===== */
.grid {
    display: grid;
    gap: 24px;
}

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

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

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

@media (max-width: 1024px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ===== Chips & Badges ===== */
.chip {
    background: rgba(243, 148, 0, 0.1);
    color: #F39400;
    border: 1px solid rgba(243, 148, 0, 0.3);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #222;
    color: #f29e30;
    border: 1px solid #333;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/* ===== Sections Background Variants ===== */
section.dark-section {
    background: #0a0a0a;
}

section.accent-section {
    background: linear-gradient(135deg, #1a1a1a, #111);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Segment Cards (Index) ===== */
.segmentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.segmento-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.segmento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(243, 148, 0, 0.25);
    border-color: var(--brand);
}

.segmento-card .icon {
    font-size: 3.5rem;
    color: var(--brand);
    margin-bottom: 24px;
}

.segmento-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.segmento-card p {
    line-height: 1.7;
    color: #ccc !important;
}

/* ===== Certification Cards ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.cert-card {
    background: var(--card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    position: relative;
    flex-direction: column;
    transition: all 0.3s ease;
}

.cert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.85);
    z-index: 1;
    transition: background 0.4s ease;
}

.cert-card:hover::after {
    background: rgba(15, 15, 15, 0.75);
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(243, 148, 0, 0.3);
    border-color: var(--brand);
}

.cert-card-header {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #111;
    padding: 32px 24px;
    text-align: center;
}

.cert-card-header h3 {
    color: #111 !important;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.cert-card-header p {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #111 !important;
}

.cert-card-body {
    padding: 32px 24px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.cert-card-body p {
    line-height: 1.7;
    color: #ccc !important;
}

.cert-card-footer {
    padding: 0 24px 32px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ===== Process Timeline ===== */
.proceso-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.proceso-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.proceso-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    z-index: 2;
}

.proceso-item::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    width: 45px;
    height: 45px;
    right: -22.5px;
    background: var(--brand);
    border: 3px solid #111;
    top: 25px;
    border-radius: 50%;
    z-index: 3;
    color: #111;
    text-align: center;
    line-height: 40px;
    font-size: 1.1rem;
    box-shadow: 0 0 0 3px var(--brand);
}

.proceso-item.left {
    left: 0;
    text-align: right;
}

.proceso-item.right {
    left: 50%;
    text-align: left;
}

.proceso-item.right::after {
    left: -22.5px;
}

.proceso-content {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.proceso-content:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(243, 148, 0, 0.2);
}

.proceso-content h4 {
    color: #f29e30;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.proceso-content p {
    color: #ccc !important;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .proceso-timeline::after {
        left: 30px;
        margin-left: 0;
    }

    .proceso-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .proceso-item.left,
    .proceso-item.right {
        left: 0;
        text-align: left;
    }

    .proceso-item.left::after,
    .proceso-item.right::after {
        left: 7.5px;
        right: auto;
    }
}

/* ===== Footer (OneSolution Style) ===== */
footer {
    background: #111;
    color: #fff;
    padding-top: 3rem;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

@media (max-width: 980px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

footer .panel {
    background: #111;
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
}

footer .panel h2,
footer .panel h3 {
    color: #f29e30;
}

footer .sucursales-panel {
    border-left: 4px solid #f29e30;
}

footer .form label {
    display: block;
    margin: 0 0 6px 2px;
    color: #fff;
    font-weight: 600;
}

footer .form input,
footer .form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #fff;
    color: #111;
    outline: 0;
    font-family: 'Poppins', sans-serif;
}

footer .form input:focus,
footer .form textarea:focus {
    border-color: #f29e30;
    box-shadow: 0 0 0 3px rgba(242, 158, 48, 0.25);
}

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

footer .form button {
    background: #f29e30;
    color: #111;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: filter 0.2s ease;
}

footer .form button:hover {
    filter: brightness(0.95);
}

footer .social-icons a {
    color: #fff;
    transition: color 0.2s ease;
}

footer .social-icons a:hover {
    color: #f29e30 !important;
}

.copyright-bar {
    background: #f29e30 !important;
    color: #111 !important;
    text-align: center;
    padding: 16px;
    margin-top: 40px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.copyright-bar p,
.copyright-bar *,
.copyright-bar #y {
    margin: 0 !important;
    color: #111 !important;
    font-weight: 500;
}

/* ===== Section Title with Mark ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title .mark {
    width: 8px;
    height: 24px;
    background: var(--brand);
    border-radius: 99px;
}

.section-title h2,
.section-title h3 {
    margin: 0;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }

main {
    padding-top: 0;
}

/* ===== Smooth Scrolling for Anchor Links ===== */
html {
    scroll-padding-top: 80px;
}
