:root {
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --accent-cyan: #00E5FF;
    /* Cyan Vivo */
    --accent-orange: #FF9100;
    /* Naranja Energético */
    --accent-yellow: #FFEA00;
    /* Amarillo Sol */
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --max-width: 1200px;
    --header-height: 140px;
    /* Increased for larger logo */
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin: 10px auto 0;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #FFFFFF;
    /* Pure white */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
}

.header-content {
    display: flex;
    flex-direction: column;
    /* Stack logo and nav */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.logo img {
    height: 80px;
    /* Increased size */
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.btn-nav {
    padding: 10px 20px;
    border: 2px solid var(--accent-orange);
    border-radius: 30px;
    color: var(--accent-orange);
}

.btn-nav:hover {
    background-color: var(--accent-orange);
    color: white !important;
}

/* Featured Workshop - New Design */
.workshop-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    margin: 0 auto 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

/* Methodology Card (Muralismo Colectivo) */
.methodology-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 60px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Columna menú izq, imagen der */
    min-height: 550px;
}

/* --- COLUMNA IZQUIERDA: CONTENIDO Y NAVEGACIÓN --- */
.content-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    background: white;
}

.header-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.header-section span {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NAVEGACIÓN DE PASOS */
.steps-nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-btn {
    background: none;
    border: 2px solid #f0f0f0;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-btn:hover {
    border-color: #ffcc80;
    background: #fff8e1;
    transform: translateX(5px);
}

.step-btn.active {
    border-color: #e65100;
    background: #fff3e0;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.15);
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: color 0.3s;
}

.step-btn.active .step-number {
    color: #e65100;
}

.step-info h4 {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    font-weight: 700;
}

.step-info p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
    display: none;
    /* Se muestra solo al estar activo */
}

.step-btn.active .step-info p {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* CTA */
.cta-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #e65100;
    transform: translateY(-2px);
}

/* --- COLUMNA DERECHA: VISUAL --- */
.visual-panel {
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
}

.visual-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s ease;
    transform: scale(1.05);
    display: flex;
    align-items: flex-end;
    /* Texto abajo */
}

.visual-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Imágenes de fondo */
.img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Degradado para leer texto sobre imagen */
.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.slide-caption {
    position: relative;
    z-index: 3;
    padding: 40px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s 0.2s;
}

.visual-slide.active .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    color: #ffcc80;
}

.slide-caption p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* Icono flotante grande */
.big-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.15);
    z-index: 2;
    transform: rotate(-10deg);
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .methodology-card {
        grid-template-columns: 1fr;
    }

    .visual-panel {
        height: 350px;
        min-height: 350px;
        order: -1;
    }

    /* Imagen arriba */
    .content-panel {
        padding: 30px;
    }

    .header-section h2 {
        font-size: 1.5rem;
    }
}

/* --- ZONA DEL SLIDER (COMPARACIÓN) --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* Altura del área visual */
    overflow: hidden;
    cursor: col-resize;
}

/* Capa HUMANA (Fondo fijo) */
.layer-human {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Imagen de fondo: Un mural colorido o niños pintando */
    background-image: url('https://images.unsplash.com/photo-1599420186946-7b6fb4e297f0?q=80&w=2574&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* Capa IA (Superpuesta con ancho variable) */
.layer-ai {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    /* Inicio al 50% */
    background-color: #111;
    overflow: hidden;
    border-right: 3px solid #fff;
    z-index: 10;
}

/* Efecto de Código/Matriz CSS para la capa IA */
.ai-code-bg {
    width: 200vw;
    /* Más ancho para que no se corte */
    height: 100%;
    background: linear-gradient(rgba(0, 255, 70, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 70, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.ai-text-overlay {
    font-family: 'Roboto Mono', monospace;
    color: #00ff41;
    padding: 20px;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

/* Botón/Manija central del slider */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Se actualizará con JS */
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    /* Para que el click pase al contenedor */
}

.slider-handle i {
    color: #333;
    width: 24px;
    height: 24px;
}

/* Etiquetas flotantes */
.label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 15;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label.ai-label {
    left: 20px;
    color: #00ff41;
    border: 1px solid #00ff41;
}

.label.human-label {
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #e91e63;
}

/* --- CONTENIDO DE TEXTO --- */
.content-body {
    padding: 40px;
    text-align: left;
}

.tag {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.content-body h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: #1a1a1a;
    line-height: 1.2;
}

p.lead {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Grid de beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-box {
    background: #fdf2f8;
    color: #db2777;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Botón de Acción */
.cta-button {
    display: inline-block;
    background-color: #111;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #111;
    text-align: center;
}

.cta-button:hover {
    background-color: #fff;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container {
        height: 250px;
    }

    .content-body {
        padding: 25px;
    }

    .content-body h2 {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 0;
    /* Override section margin if any */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darken video for text readability */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-cyan);
    color: #000;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.4);
    background-color: #fff;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:nth-child(1) {
    border-color: var(--accent-cyan);
}

.service-card:nth-child(2) {
    border-color: var(--accent-orange);
}

.service-card:nth-child(3) {
    border-color: var(--accent-yellow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-cyan);
    color: #000;
}

.portfolio-grid {
    /* Masonry layout will be handled by JS or column-count for simple CSS version */
    column-count: 3;
    column-gap: 20px;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Bitácora Urbana */
.bg-light {
    background-color: #f9f9f9;
}

.blog-preview {
    display: flex;
    align-items: flex-start;
    /* Aligns image to top */
    gap: 50px;
}

.blog-image {
    flex: 1;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    border-radius: 10px;
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.blog-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}

.read-more {
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-orange);
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #ccc;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Responsive */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: var(--header-height);
        /* Adjust top based on new header height */
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* Full width on mobile */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .blog-preview {
        flex-direction: column;
    }

    .portfolio-grid {
        column-count: 1;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}