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

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.split-container {
    display: grid;
    grid-template-columns: 35vw 75vw;
    min-height: 100vh;
    width: 100vw;
}

/* .left-side {
    background-image: url('item2.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index: 1;
} */

.left-side {
    position: relative;
    padding: 5rem 4rem 4rem 6rem;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#cinemagraph-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Mantiene la proporción perfecta cortando los bordes excedentes */
}

/* EL CONTENEDOR DERECHO TIENE UN COLOR INICIAL (WELCOME) */
.right-side {
    background-color: #97e759; /* Color por defecto al cargar la página */
    color: #362517;
    padding: 5rem 4rem 4rem 6rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.4s ease; /* Transición suave para el cambio de color camaleónico */
}

.marsy-nav {
    position: absolute;
    left: 0;
    top: 15%;
    z-index: 10;
}

.marsy-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* LAS PESTAÑAS INACTIVAS POR DEFECTO */
.nav-item {
    background-color: #97e759; /* Un turquesa de contraste para las que están "apagadas" */
    padding: 15px 15px 15px 15px;
    border-radius: 50px 50px 50px 50px; 
    transform: translateX(-10px); 
    transition: all 0.3s ease-in-out, background-color 0.4s ease;
    cursor: pointer;
    box-shadow: -4px 4px 8px rgba(0,0,0,0.25);
}

.nav-item a {
    text-decoration: none;
    color: #fff; /* Texto blanco para las pestañas inactivas oscuras */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-item:hover {
    transform: translateX(-10px);
}

/* LA PESTAÑA ACTIVA: El color de fondo se lo inyecta JavaScript en línea */
.nav-item.active {
    transform: translateX(-10px); /* Sobresale hacia la izquierda */
    box-shadow: -8px 8px 20px rgba(0,0,0,0.55); /* Sombra más fuerte para marcar la tridimensionalidad */
}

/* El texto de la pestaña activa cambia a negro para leerse bien sobre el fondo brillante */
.nav-item.active a {
    color: #362517;
    font-weight: 800;
}

.home-icon {
    font-size: 1.2rem;
}

/* --- DISEÑO DE CONTENIDOS --- */
.content-wrapper h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #362517;
}

.content-wrapper h2 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.two-columns {
    display: flex;
    gap: 2rem;
}

.col {
    flex: 1;
    line-height: 1.7;
    font-size: 1.15rem;
}

/* RESPONSIVO */
@media (orientation: portrait) {
    .split-container {
        grid-template-columns: 1fr;
        grid-template-rows: 25vh 75vh;
    }
    .marsy-nav {
        top: 20vh;
        left: 5%;
    }
    .nav-item {
        transform: none;
        border-radius: 10px;
        padding: 10px 15px;
    }
    .nav-item:hover, .nav-item.active {
        transform: none;
    }
    .two-columns {
        flex-direction: column;
    }
    
    
  /* --- ESTILOS DEL MÓDULO 2: THE PULSE --- */
.pulse-header {
    margin-bottom: 2.5rem;
}

/* EL CONTENEDOR COMPARTIDO (Mente de IA) */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas verticales en PC por defecto */
    gap: 1.5rem;
    width: 100%;
    min-height: 50vh;
}

/* LA TARJETA INDIVIDUAL (Efecto Camaleón Mimetizado) */
.insta-card {
    background-color: rgba(255, 255, 255, 0.15); /* Translúcido sutil sobre tu fondo verde/turquesa */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px; /* Bordes muy redondeados de la vieja escuela premium */
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Curva de animación ultra suave */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Efecto hover elegante en PC */
.insta-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.insta-card h3 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.insta-card p {
    font-size: 0.95rem;
    color: #222;
    opacity: 0.8;
}

/* El botón de cerrar (Oculto por defecto en modo preview) */
.card-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    display: none;
    z-index: 100;
    cursor: pointer;
}

/* El contenido del micrófono oculto por defecto */
.card-full-content {
    display: none;
    width: 100%;
}

/* ==========================================================================
   LA MAGIA INTERACTIVA: LA TARJETA EXPANDIDA A PANTALLA COMPLETA 
   ========================================================================== */
.insta-card.expanded {
    position: fixed;
    top: 5vh;
    left: 5vw;
    width: 90vw;
    height: 90vh;
    z-index: 999; /* Por encima de todo el universo web */
    background-color: #ffffff; /* Se convierte en una tarjeta blanca inmaculada */
    border-radius: 40px;
    padding: 4rem 2rem;
    cursor: default;
    transform: none !important; /* Desactivar traslaciones de hover */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Al expandirse, ocultamos la vista previa y mostramos el contenido completo */
.insta-card.expanded .card-preview { display: none; }
.insta-card.expanded .card-close { display: block; }
.insta-card.expanded .card-full-content { 
    display: flex; 
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

.card-instructions {
    font-size: 1.2rem !important;
    line-height: 1.6;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 1 !important;
    color: #444;
}

.mic-placeholder {
    font-size: 4rem;
    background-color: #12E7E7; /* Tu cian/turquesa brillante de fondo */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(18, 231, 231, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}
.mic-placeholder:hover { transform: scale(1.1); }


/* ==========================================================================
   EL CAMALEÓN RESPONSIVO: REGLA DE ORO PARA CELULAR EN VERTICAL 
   ========================================================================== */
@media (orientation: portrait) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2: El Feed de Instagram Perfecto */
        gap: 1rem;
    }
    
    .insta-card {
        padding: 1.5rem 1rem;
        border-radius: 20px; /* Cuadros de feed más compactos */
    }
    
    .insta-card h3 { font-size: 1.1rem; }
    .insta-card p { font-size: 0.85rem; }
    
    /* La tarjeta expandida en celular ocupa el 100% de la pantalla para comodidad táctil */
    .insta-card.expanded {
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        padding: 3rem 1.5rem;
    }
}
  
    
    
    
    
    
    
    

