/* FASE 1 */
/* 1. The Global Reset */
* {
    box-sizing: border-box; /* Now 200px means 200px total! */
    margin: 0;
    padding: 0;
}

/* FASE 2 */
/* 2. Defining the Grid */
.container {
    display: grid;
    /* We create 12 equal columns to make the 3-6-3 math easy */
    grid-template-columns: repeat(12, 1fr); 
    gap: 10px; /* Space between columns */
    padding: 20px;
    
    /* PHASE 6: Ancho y centrado */
    /* --- Nuevas reglas para el ancho --- */
    width: 80%;           /* Ocupa el 80% del ancho del navegador */
    max-width: 1200px;    /* Opcional: evita que se estire demasiado en pantallas gigantes */
    margin: 0 auto;       /* El truco mágico para centrar horizontalmente */
    margin-top: 0px; /* Añade espacio entre el header y el inicio de las columnas */
}

/* Assigning the columns spans */
.left-col {
    grid-column: span 3;
    top: 100px; /* Se detiene rápido cerca del header */
    position: sticky;
    align-self: start;
    height: fit-content;
}

.center-col {
    grid-column: span 6; /* 6/12 */
}

.right-col {grid-column: span 3;
    position: sticky;
    
    /* 1. Stick to the top (adjust 80px to match your header height) */
    top: 80px; 
    
    /* 2. Align to the start (top) of the grid area */
    align-self: start; 
    
    height: fit-content;
}

/* inicio textual look */
.textual {
    padding: 16px;
    text-align: center;
    font-family: sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    font-family: sans-serif;
    margin: 10px 0px 10px 0px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.8rem;
}

h6 {
    font-size: 0.6rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: center;
    gap: 8px 12px; /* 8px vertical, 12px horizontal */
    margin-bottom: 16px;
}

.footer-links span {
    font-size: 0.75rem; /* Small text */
    color: #666666;    /* Soft gray */
    cursor: pointer;
}

.footer-links span:hover {
    color: #0073b1;    /* Blue on hover */
    text-decoration: underline;
}

.footer-copy {
    display: flex;
    flex-direction: column; /* Stack line 1 on top of line 2 */
    align-items: center;    /* Center both lines in the sidebar */
    gap: 4px;               /* Space between the two lines */
    margin-top: 10px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 6px; /* This ONLY spaces the text group from the icon */
    margin-bottom: 4px;
}

.brand-text {
    display: flex; /* Ensures 'Edu' and 'Agencia' are side-by-side */
    gap: 0;        /* FORCES zero space between the words */
    font-weight: 600;
    font-size: 0.8rem;
}

.brand-blue {
    color: #0073b1 !important; /* Forces the LinkedIn Blue */
}

.brand-dark {
    color: #000000 !important; /* Forces the Black */
}

.brand-row i {
    color: #0073b1;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-copy p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;              /* Remove default paragraph margins */
    font-weight: 700;
}

img.logo-footer {
    width: 20px;
    height: auto;
}

.bi.bigger {
    font-size: 1.5rem; /* O puedes usar 32px, 40px, etc. */
    vertical-align: middle; /* Ayuda a alinear el icono con el texto */
    color: #fa5817;
}

/* end textual look */

/* FASE 3 */
/* The css for scrolling */
/* 1. Make the body allow scrolling *//* 1. Modificar el fondo de toda la página */
body {
    background-color: #F4F2EE; /* El color crema de LinkedIn */
    font-family: sans-serif;
    color: #1d1d1d; /* Un gris casi negro para el texto, más suave que el negro puro */
}


/* Center Content Behavior */
.center-col {
    grid-column: span 6;
    /* This column is "static" (default), so it scrolls with the page */
}

/* END CENTER CONTENT BEHAVIOR */

/* Optional: Adding height to cards to ensure we can scroll */
.card {
    min-height: 300px; 
    margin-bottom: 8px;
    background-color: white;/* Blanco puro para las tarjetas */
    border: 1px solid #E0E0E0; /* Un borde sutil para dar definición */
    font-family: sans-serif;
    color: #1d1d1d; /* Un gris casi negro para el texto, más suave que el negro puro */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card {
    border: 1px solid #e0e0e0; /* Color LinkedIn para resaltar */
    border-top: 3px solid #b9bab9;
    border-left: 6px solid #19947f;
}

.product-badge {
    background: #0a66c2;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    border-radius: 0 0 8px 0;
    margin-bottom: 5px;
}

.product-body {
    padding: 20px;
}

.product-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-sub);
}

.feature-item i {
    color: #057642; /* Verde éxito para los checkmarks */
    font-size: 1.2rem;
}

.product-cta {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: #0a66c2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: #0a66c2;
    border: 1px solid #0a66c2;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary a {
    color: white !important;
    text-decoration: none;
}

.btn-primary:hover { background: #004182; }

/* END PRODUCT CARD */


/* Profile Card */
.profile-card {
    background: white;
    border-radius: 10px;
    overflow: hidden; /* Keeps the banner corners rounded */
    border: 1.5px solid #8c8c8c; /* A much darker gray */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    position: relative;
    font-family: sans-serif;
    /* 1. The "Stronger" Border (Darker and slightly thicker) */
    border: 2px solid #d0d0d0; 

    /* 2. The Colored Top Border (LinkedIn orange or your brand blue) */
    /* This adds a 6px solid line only at the very top */
    border-top: 6px solid #e7a33e;
}

strong {
    font-weight: 600;
    font-size: 1rem;
    color: #4794c7;
}

.banner {
    height: 100px;
    background: url('tu-banner.jpg') center/cover;
    background-color: #3e8ed0; /* Fallback color */
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.premium-label {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* THE TRICK: Positioning the circle */
.profile-img-container {
    position: absolute;
    top: 60px; /* Moves it halfway down the banner */
    left: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid #3e8ed0; /* The white ring around the photo */
    object-fit: cover;
}

.profile-info {
    padding: 70px 20px 20px 20px; /* Top padding leaves space for the photo */
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    color: #363636;
    align-items: center;
    gap: 10px;
}

.profile-name i {
    color: #3e8ed0;
}

.bi-linkedin {
    color: #0073b1;
    font-size: 1.2rem;
}

.profile-title {
    font-size: 0.9rem;
    color: #1d1d1d;
    margin-top: 5px;
}

.profile-location {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.profile-organization {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.95rem;
}

.org-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}
/* END Profile Card */

/* PHASE 4: Styling the Header with Flexbox */
/* Header Styling */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    /* --- Hacer el Header Sticky --- */
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que el menú pase por ENCIMA de las tarjetas */
}

.header-content {
    /* --- El Mini-Contenedor --- */
    width: 80%;           /* Igual que tu .container principal */
    max-width: 1200px;    /* Igual que tu .container principal */
    margin: 0 auto;       /* Centrado horizontal */
    
    /* --- Flexbox para distribuir elementos --- */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;      /* Espaciado interno arriba y abajo */
}

/* Nav Menu Styling */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinea menú y botones a la derecha */
    flex-grow: 1; /* Ocupa el espacio restante entre el logo y el final */
    gap: 20px;
}

nav ul {
    display: flex;                /* Makes list items sit in a row */
    list-style: none;             /* Removes the bullet points */
    gap: 20px;                    /* Spaces out the menu links */
}

nav a {
    text-decoration: none;        /* Removes the underline */
    color: #333;
    font-weight: bold;
}

nav a:hover {
    color: #007bff;               /* Changes color when you hover */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente en el eje cruzado */
    justify-content: center; /* Centra verticalmente en el eje principal */
    text-decoration: none;
    color: #666;/* 1. Reserve the space for the line now! */
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #ff6a00; /* Text gets darker */
    border-bottom: 2px solid #ff6a00; /* Line appears in the reserved space */
}

.nav-item:hover {
    color: #11c9ed; /* Text gets darker */
    border-bottom: 2px solid #000; /* Line appears in the reserved space */
}

.nav-text {
    font-size: 0.75rem;
    margin-top: 4px;
}

.icon-wrapper {
    position: relative; /* Define el área de juego para la notificación */
    font-size: 1.3rem;   /* Tamaño del ícono de Bootstrap */
}

.badge {
    position: absolute;
    top: -5px;          /* Lo sube un poco */
    right: -13px;        /* Lo saca un poco a la derecha */
    background-color: #1ba0ed; /* El rojo de notificación */
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%; /* Lo hace circular */
    border: 2px solid white; /* El borde blanco que le da precisión */
}

.badge.hidden {
    opacity: 0;
    pointer-events: none; /* Prevents clicking on the invisible badge */
}

/* PHASE 5: Refining the Logo */
/* Container to keep image and text aligned */
.logo {
    display: flex;
    align-items: center; /* Ensures the backpack and text share the same center line */
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: left center;
}

/* Target the Bootstrap Icon specifically */
.bi-backpack4-fill {
    /* Use 'rem' or 'px' to make it slightly larger than the text */
    font-size: 2.2rem; 
    /* Use the same blue as 'Edu' to create brand unity */
    color: #3e8ed0; 
}

.logo-text {
    display: flex;
    gap: 0;
    font-size: 1.9rem; /* The text is slightly smaller than the icon */
    font-weight: 500;
}

.logo-img {
    width: 30px;
    height: auto;
    vertical-align: middle; /* Ayuda a alinear el icono con el texto */
}

.text-app {
    color: #3e8ed0; /* Blue for 'Edu' */
}

.text-logo {
    color: #2b2b2b; /* Dark Grey for 'Agencia' */
}

.logo:hover {
    /* 3. Increase size by 5% (1.05) */
    transform: scale(1.05); 
}

.auth-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

/* Base style for both buttons */
.btn-primary, .btn-secondary {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 24px; /* Makes the elegant "pill" shape */
    transition: all 0.3s ease;
    display: inline-block;
}

/* "Join Now" Style (Secondary) */
.btn-secondary {
    color: #666; /* Subtle gray */
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* "Sign In" Style (Primary - Blue Outline) */



/* Ensure the video takes full width of the card */
.card-video {
    width: 100%;
    height: auto;
    display: block;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* For YouTube/Vimeo Aspect Ratio (16:9) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Remove card padding for the video area to make it go edge-to-edge */
.video-card {
    padding: 0; 
}

.video-card .card-header, 
.video-card .card-footer {
    padding: 15px; /* Re-add padding only for text areas */
}

.card p {
    font-size: 1rem;
    font-family: sans-serif;
    font-weight: 300;
}



/* PHASE 12: Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    margin-top: 40px; /* Espacio para que no pegue con las columnas */
}

.footer-content {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center; /* Centra el texto */
    display: flex;
    flex-direction: column; /* Pone el copyright arriba y el link abajo */
    gap: 10px;
}

.footer-links a {
    color: #2aa7d8;
    text-decoration: none;
}

/* Tarjeta Técnica (Columna Derecha) */
.tech-card {
    border-top: 4px solid #00a0dc; /* Un azul más "eléctrico" para tecnología */
}

.card-header-tech {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.card-header-tech h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body-tech {
    padding: 15px;
}

.tech-tagline {
    font-size: 13px;
    font-weight: bold;
    color: #00a0dc;
    margin-bottom: 15px;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.tech-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
}

.tech-list li i {
    color: #666;
    font-size: 1.1rem;
}

.tech-list li strong {
    display: block;
    color: #333;
    font-size: 13px;
}

.tech-list li span {
    color: #666;
    line-height: 1.4;
}

/* Botón especial para la tarjeta técnica */
.btn-outline-tech {
    width: 100%;
    background: transparent;
    border: 1px solid #00a0dc;
    color: #00a0dc !important; /* Forzamos el color */
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-tech:hover {
    background: #00a0dc;
    color: white !important;
}

/* Tarjeta de Estrategia */
.strategy-card {
    border-top: 4px solid #f59e0b; /* Color Ámbar para Estrategia */
}

.card-header-strategy {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
}

.card-header-strategy h4 {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
}

.card-body-compact {
    padding: 10px;
}

.strategy-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1f2937;
}

.strategy-step {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.step-icon {
    color: #f59e0b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 11.5px;
    line-height: 1.3;
    color: #4b5563;
}

.step-text strong {
    display: block;
    color: #111827;
}

.post-img {
    width: 100%;       /* Ocupa el 100% del ancho de su contenedor (la tarjeta) */
    height: auto;      /* Mantiene la proporción original para no deformarse */
    display: block;    /* Elimina espacios en blanco no deseados debajo de la imagen */
    border-radius: 7px;
}

/* Botón Compacto */
.btn-strategy-cta {
    width: 100%;
    background: #f59e0b;
    color: white !important;
    border: none;
    padding: 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.btn-strategy-cta:hover {
    background: #d97706;
}




/* article2 */
/* Tarjeta de Gráfico */
.chart-card {
    padding: 0;
    border-left: 4px solid #f59e0b;
}

.card-header-chart {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container {
    padding: 15px;
}

.chart-description p {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px; /* Altura compacta */
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}

.bar-wrapper {
    width: 40px;
    height: 120px;
    background: #eee;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    position: relative;
}

.bar {
    width: 100%;
    transition: height 1s ease-in-out;
}

.gap-bar {
    background: #d1d5db; /* Gris - Brecha */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-bar span {
    font-size: 9px;
    font-weight: bold;
    color: #4b5563;
    transform: rotate(-90deg);
}

.skill-bar {
    background: #057642; /* Verde - Éxito/Habilidad */
}

.bar-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-sub);
}

/* Leyenda */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.gap-dot { background: #d1d5db; }
.skill-dot { background: #057642; }




/* contact-cta-card */
/* Tarjeta de Contacto Izquierda Mejorada */
.contact-cta-card {
    /* El borde de color superior que solicitaste */
    border-top: 4px solid #0a66c2 !important; 
    border-radius: 8px;
    background: #ffffff;
    margin-top: 12px;
}

.contact-header {
    background: #3e8ed0;
    padding: 6px;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.contact-body {
    padding: 5px 10px;
    text-align: center;
}

.manager-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.manager-role {
    font-size: 11px;
    color: #0a66c2;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* Lista de información de contacto (Texto) */
.contact-info-list {
    text-align: left;
    margin-bottom: 15px;
    background: #f3f4f6;
    padding: 8px;
    border-radius: 6px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 4px;
}

.info-item i {
    color: #0a66c2;
}

/* Botones de Acción */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 20px; /* Estilo píldora tipo LinkedIn */
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.email-btn {
    background-color: #3e8ed0;
    color: white !important;
}

.whatsapp-btn {
    background-color: #3fb12e;
    color: white !important;
}

.btn-contact:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}





/* central card ecommerce */
/* Tarjeta Companion Central */
.companion-card {
    border: 1px solid #d1d5db;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    margin: 5px 0px 5px 0px;
    border-left: 6px solid #858fff;
}

.companion-header {
    padding: 5px 0px 5px 0px;
    text-align: center;
    margin: 5px 0px 5px 0px;
}

.badge-premium {
    font-size: 9px;
    background: #111827;
    color: #fbbf24;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 8px;
}

.companion-header h2 {
    font-size: 18px;
    margin: 0;
    color: #111827;
}

.companion-header .subtitle {
    font-size: 12px;
    color: #6b7280;
}

/* Visual Placeholder (Simulación de Proceso) */
.visual-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: #f3f4f6;
    margin: 0 15px;
    border-radius: 8px;
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    color: #374151;
}

.node i {
    font-size: 20px;
    color: #0a66c2;
    margin-bottom: 4px;
}

.connector {
    width: 40px;
    height: 2px;
    background: #d1d5db;
    margin: 0 10px;
    position: relative;
    top: -10px;
}

/* Grid de Beneficios */
.companion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
}

.grid-item {
    display: flex;
    gap: 12px;
}

.grid-item i {
    font-size: 18px;
    color: #057642;
}

.grid-item strong {
    font-size: 13px;
    display: block;
    color: #111827;
}

.grid-item p {
    font-size: 11px;
    color: #4b5563;
    margin: 2px 0 0 0;
}

.companion-footer {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.main-cta {
    width: 100%;
    margin-bottom: 10px;
}

.consultancy-note {
    font-size: 0.7rem;
    color: #9ca3af;
    font-style: italic;
}




/* Tarjeta de Ingeniería de Costos */
.cost-eng-card {
    border-left: 5px solid #475569; /* Gris acero profesional */
    background: #ffffff;
}

.cost-header-main {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.status-tag {
    font-size: 9px;
    letter-spacing: 1px;
    color: #475569;
    font-weight: 800;
    margin-bottom: 5px;
}

.cost-header-main h2 {
    font-size: 19px;
    color: #1e293b;
    margin: 0;
}

.tagline {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Rejilla de Análisis */
.cost-analysis-grid {
    padding: 15px;
    display: grid;
    gap: 12px;
}

.analysis-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.analysis-icon {
    font-size: 1.2rem;
    color: #0a66c2;
    background: #f0f7ff;
    padding: 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.analysis-text strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
}

.analysis-text span {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.4;
    display: block;
}

/* Footer con Métrica de Impacto */
.cost-footer {
    padding: 12px 15px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.impact-metric {
    display: flex;
    flex-direction: column;
}

.impact-metric strong {
    font-size: 16px;
    color: #057642;
}

.impact-metric span {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
}

.btn-cost {
    padding: 8px 16px;
    font-size: 12px;
}




/* Tarjeta de Investigación de Mercado */
.market-research-card {
    border: 1px solid #e0e6ed;
    overflow: hidden;
    border-left: 6px solid #85e9ff;
}

.card-header-research {
    padding: 15px;
    background: #ffffff;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #4338ca; /* Púrpura Indigo */
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-header-research h2 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.description-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Espaciado para la imagen post-img */
.image-container {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.research-features {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    gap: 12px;
}

.feature i {
    font-size: 1.2rem;
    color: #4338ca;
    flex-shrink: 0;
}

.feature strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
}

.feature span {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.3;
}

.research-footer {
    padding: 12px 15px;
    background: #f8fafc;
    text-align: center;
}

.btn-primary-alt {
    width: 100%;
    background: #4338ca;
    color: white !important;
    border: none;
    padding: 10px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary-alt:hover {
    background: #3730a3;
}

/* --- RESPONSIVE DESIGN (Mobile) --- */
@media (max-width: 992px) {
    /* 1. Container & Grid Reset */
    .container {
        width: 100%; /* Ocupa el 100% del ancho total */
        padding: 5px 0px; /* Elimina márgenes laterales, minimiza superior */
        gap: 0px; /* Opcional: Si quieres pegar las tarjetas entre sí verticalmente */
    }

    /* 2. Stack the columns (12 spans = full width) */
    .left-col, 
    .center-col, 
    .right-col,
    .center-wide {
        grid-column: span 12; /* Everyone takes the full row */
        width: 100%;
        position: static; /* Disable "sticky" on mobile */
    }

    /* 3. Reorder: Feed First, then Profile, then Extras */
    .center-col,
    .center-wide {
        order: 1; /* Main content first */
    }

    .left-col {
        order: 2; /* Profile second */
        margin-top: 20px;
    }

    .right-col {
        order: 3; /* Ads/Extras last */
        margin-top: 20px;
    }

    /* 4. Header Adjustments */
    .header-content {
        flex-direction: row; /* Logo y Hamburguesa en la misma línea */
        justify-content: space-between; /* Separados a los extremos */
        align-items: center;
        width: 95%;
        padding: 10px 0;
    }

    nav ul {
        gap: 15px; /* Smaller gap between icons */
        justify-content: center;
        flex-wrap: wrap; /* Allow icons to wrap if needed */
    }

    /* Hide the text labels on very small screens to save space? 
       Optional, but let's keep them for now. */
    
    .auth-group {
        margin-left: 0; /* Reset margin */
        width: 100%;
        justify-content: center; /* Center the buttons */
        margin-top: 10px;
        flex-direction: column; /* Botones uno debajo del otro en el menú desplegable */
        padding-bottom: 20px; /* Espacio extra al final del menú */
    }
}

/* START RESPONSIVE DESIGN FOR LEARNING.PHP*/
/* --- Learning Page Variation --- */

/* 1. We change the grid behavior ONLY when the right column is missing */
/* We target the main-layout that contains a center-wide section */
.main-layout:has(.center-wide) {
    grid-template-columns: 225px 1fr; /* 2 columns instead of 3 */
    max-width: 1100px; /* We can slightly increase total width for more workspace */
}

/* 2. Specific styles for the Wide Center Column */
.center-wide {
    grid-column: span 9; /* Everyone takes the full row */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 3. Responsive adjustment: On mobile, it still stacks 100% */
@media (max-width: 768px) {
    .main-layout:has(.center-wide) {
        grid-template-columns: 100%;
    }
}

/* Responsive header and menu */
/* --- Alineación de Iconos y Texto --- */
.nav-item {
    display: flex;
    align-items: center; /* Centra verticalmente icono y texto */
    gap: 8px; /* Espacio entre el icono y la palabra */
    text-decoration: none;
}

.icon-wrapper {
    display: flex;
    align-items: center;
}

/* --- Responsive Layout --- */
.hamburger {
    display: none; /* Oculto por defecto en desktop */
    font-size: 2rem;
    cursor: pointer;
    color: var(--brand-blue);
}

.menu-toggle {
    display: none; /* Checkbox oculto */
}



/* --- Media Query para Móviles (Breakpoints) --- */
@media (max-width: 992px) {
    .hamburger {
        display: block; /* Aparece en tablets y móviles */
    }

    .nav-menu {
        display: none; /* Escondemos el menú normal */
        position: absolute;
        top: 70px; /* Debajo del header */
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Cuando el checkbox está marcado, mostramos el menú */
    .menu-toggle:checked ~ .nav-menu {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column; /* Menú vertical en móvil */
        padding: 20px 20px 0 20px; /* Padding ajustado */
        width: 100%; /* Asegura ancho completo para centrado */
    }

    /* Asegurar que las tarjetas toquen los bordes laterales (Full Width real) */
    .card {
        border-radius: 0 !important; /* Elimina esquinas redondeadas para look "borde a borde" */
        border-left: none; /* Opcional: limpia bordes laterales del contenedor tarjeta */
        border-right: none;
        margin-left: 0;
        margin-right: 0;
        width: 100%; /* Fuerza el ancho total */
    }

    /* Restaurar el borde izquierdo específico de product-card si es necesario visualmente, 
       pero manteniendo el full-width */
    .product-card {
        border-left: 6px solid #19947f !important; /* Mantiene la identidad visual */
    }
    
    .companion-card {
        border-left: 6px solid #858fff !important;
    }
    
    .market-research-card {
        border-left: 6px solid #85e9ff !important;
    }
    
    .cost-eng-card {
        border-left: 5px solid #475569 !important;
    }

    /* FIX CRÍTICO: Sobrescribir la regla .center-wide que aparece después del primer media query */
    .center-wide {
        grid-column: span 12 !important; /* Fuerza ancho completo en grid */
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Asegurar que el flex gap no cree espacios extraños si no se desean, o mantenerlo */
        /* gap: 15px; se mantiene del desktop */
    }
}

