/* ====================================
   CATALYSIS - STYLESHEET
   ==================================== */

/* ============================================
   1. RESET Y VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f0f0f;
    --secondary: #ffffff;
    --text: #666666;
    --light-bg: #fafafa;
    --border: #e5e5e5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--secondary);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   2. NAVEGACIÓN
   ============================================ */

nav {
    position: fixed;
    width: 100%;
    background: transparent;
    padding: 2.5rem 5%;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled,
nav.static {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--border);
    padding: 1.5rem 5%;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border: 1px solid var(--primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary);
    color: var(--secondary);
}

/* ============================================
   3. SECCIONES PRINCIPALES
   ============================================ */

.hero {
    background: var(--secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding-top: 100px;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.95;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    font-style: italic;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    transition: gap 0.3s ease;
}

.hero-link:hover {
    gap: 1.25rem;
}

/* ============================================
   4. ABOUT SECTION
   ============================================ */

.about {
    padding: 150px 5%;
    background: var(--light-bg);
}

.about-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
}

.about-label {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 2rem;
    font-weight: 400;
}

.about h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
}

.about p {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    line-height: 1.9;
    color: var(--text);
}

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

.stat-item {
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text);
    letter-spacing: 0.3px;
}

/* ============================================
   5. SERVICES SECTION
   ============================================ */

.services {
    padding: 150px 5%;
    background: var(--secondary);
}

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

.section-header {
    margin-bottom: 100px;
    max-width: 800px;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--secondary);
    padding: 3.5rem;
    transition: background 0.3s;
    cursor: pointer;
}

.service-card:hover {
    background: var(--light-bg);
}

.service-number {
    font-size: 0.75rem;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.service-card p {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.service-list li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.service-list li:last-child {
    border-bottom: none;
}

/* ============================================
   6. METHODOLOGY SECTION
   ============================================ */

.methodology {
    padding: 150px 5%;
    background: var(--light-bg);
}

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

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 80px;
}

.step {
    text-align: left;
    padding: 3rem 2rem;
    border-right: 1px solid var(--border);
}

.step:last-child {
    border-right: none;
}

.step-number {
    font-size: 0.75rem;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.step h4 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
}

.step p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

/* ============================================
   7. FRAMEWORK SECTION (Marco de Madurez Digital)
   ============================================ */

.framework-section {
    padding: 150px 5%;
    background: var(--secondary);
}

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

.framework-intro {
    max-width: 900px;
    margin: 3rem 0;
}

.framework-intro p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.framework-benefits {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.framework-benefits li {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.framework-benefits li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.framework-table-wrapper {
    margin-top: 80px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.framework-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    min-width: 1200px;
}

.framework-table thead th {
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: left;
    font-weight: 400;
    vertical-align: top;
}

.framework-table thead th:first-child {
    width: 180px;
    background: var(--secondary);
}

.table-header-level {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.table-header-name {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.framework-table tbody th {
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.8;
    vertical-align: top;
    width: 180px;
}

.framework-table tbody td {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    vertical-align: top;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.framework-table tbody td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.framework-table tbody td ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.framework-table tbody td ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text);
    opacity: 0.3;
}

.framework-cta {
    margin-top: 80px;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cta-button-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

/* ============================================
   8. CTA SECTION
   ============================================ */

.cta-section {
    padding: 150px 5%;
    background: var(--secondary);
}

.cta-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--primary);
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-form input {
    padding: 1.2rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    width: 100%;
}

.cta-form input[type="checkbox"] {
    width: auto;
}

.cta-form input::placeholder {
    color: var(--text);
    opacity: 0.5;
}

.cta-form input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.cta-form select {
    padding: 1.2rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230f0f0f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.cta-form select:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.cta-form select option {
    background: white;
    color: var(--primary);
    padding: 0.5rem;
}

.cta-form select:invalid {
    color: var(--text);
    opacity: 0.5;
}

.cta-form textarea {
    padding: 1.2rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    width: 100%;
    resize: vertical;
}

.cta-form textarea::placeholder {
    color: var(--text);
    opacity: 0.5;
}

.cta-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.cta-form button {
    padding: 1.2rem 2.5rem;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    align-self: flex-start;
    font-family: inherit;
}

.cta-form button:hover {
    background: var(--text);
}

/* Asegurar que todos los elementos dentro del formulario usen 100% del ancho */
.cta-form > div {
    width: 100%;
}

.cta-form label {
    width: 100%;
}

.cta-form small {
    width: 100%;
}

/* ============================================
   9. FOOTER
   ============================================ */

footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 80px 5% 40px;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-about h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.footer-about p {
    opacity: 0.6;
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links h4 {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    opacity: 0.6;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.4;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* ============================================
   10. RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .about-container,
    .cta-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

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

    .step {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about h2,
    .section-header h2,
    .cta-section h2 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .services-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
    }

    .step:last-child {
        border-bottom: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Framework section responsive */
    .framework-section {
        padding: 80px 5%;
    }

    .framework-table-wrapper {
        margin-top: 50px;
    }

    .framework-table {
        font-size: 0.85rem;
    }

    .framework-table thead th,
    .framework-table tbody th,
    .framework-table tbody td {
        padding: 1.25rem 1rem;
    }

    .table-header-level {
        font-size: 0.7rem;
    }

    .table-header-name {
        font-size: 1rem;
    }

    .framework-table tbody th {
        font-size: 0.75rem;
    }

    .framework-table tbody td ul li {
        font-size: 0.85rem;
    }

    .framework-cta {
        margin-top: 50px;
        flex-direction: column;
        gap: 1rem;
    }

    .framework-cta .cta-button {
        width: 100%;
        text-align: center;
    }
}