/* Variables de Diseño Actualizadas con Azul de la Marca */
:root {
    --primary: #0f172a;
    --accent: #2ac0f0; /* Azul del logo */
    --text: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    overflow: hidden;
}

/* Contenedor Principal (Scroll Snap) */
.presentation-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Estructura de Diapositiva */
.slide {
    height: 100vh;
    display: flex;
    flex-direction: column; /* Cambiado a columna */
    align-items: center;
    justify-content: flex-start; /* Contenido comienza arriba */
    scroll-snap-align: start;
    position: relative;
    padding: 2rem;
}

/* Estilos de la Marca (Encabezado) */
.marca-header {
    width: 100%;
    max-width: 1200px;
    padding: 1rem 0;
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start; /* Logo a la izquierda */
    border-bottom: 1px solid #e2e8f0; /* Línea separadora sutil */
}

.slide .marca-header img {
    height: 20px; /* Ajusta la altura del logo */
    width: auto;
}

/* Portada Especial */
.portada.slide {
    justify-content: center;
}

.portada .marca-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    border-bottom: none;
    padding: 0;
}

/* Contenido */
.content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    flex-grow: 1; /* Ocupa el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.full-width {
    max-width: 1100px;
}

/* Tipografía */
h1, h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

h1 { font-size: 4rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #64748b;
}

.tag {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

/* Tarjetas e Info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.alt-container {
    text-align: left;
    margin: 2rem 0;
    width: 100%;
}

.alt-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

/* Tabla Comparativa */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: var(--primary);
    color: var(--white);
}

tr:hover { background-color: #f1f5f9; }

/* Guía de Selección */
.selection-guide {
    text-align: left;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    width: 100%;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
}

.guide-item span {
    background: var(--accent);
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
}

.btn:hover { transform: translateY(-3px); }

.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Responsivo */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .slide { padding: 1.5rem; }
}

/* Asegúrate de tener esto en css/estilos.css */

.presentation-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #f8fafc; /* Color de fondo base */
}

.marca-header {
    width: 100%;
    max-width: 1100px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.marca-header img {
    height: 50px;
}

/* Estilo para las tablas de unidades */
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background-color: #0f172a;
    color: white;
}


/* Estilos del Gráfico de Anatomía (Box Model) */
.box-model-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.box-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0,0,0,0.2);
    position: relative;
    padding: 40px 20px 20px 20px;
    transition: all 0.3s ease;
}

.box-layer .label {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
}

/* Colores representativos (similares a los Inspectores de Navegador) */
.margin-layer {
    background-color: #f9cc9d; /* Naranja sutil para margen */
    border: 1px solid #e5975f;
}

.border-layer {
    background-color: #fced9d; /* Amarillo para bordes */
    border: 2px solid #d4a017;
    width: 100%;
}

.padding-layer {
    background-color: #c3e88d; /* Verde para padding */
    border: 1px solid #91b859;
    width: 100%;
}

.content-layer {
    background-color: #89ddff; /* Azul para contenido */
    border: 1px solid #3b82f6;
    min-height: 80px;
    width: 100%;
    color: #0f172a;
}

/* Animación al pasar el mouse para resaltar la capa */
.box-layer:hover {
    filter: brightness(0.95);
    transform: scale(1.01);
}



/* Bloque Visual de Sintaxis */
.code-visual-container {
    background: #1e293b;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: inline-block;
    margin: 2rem auto;
    font-family: 'Courier New', Courier, monospace;
}

.syntax-block {
    font-size: 2.5rem;
    color: #f8fafc;
    text-align: left;
}

.part {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Colores de Sintaxis */
.selector { color: #fb7185; font-weight: bold; } /* Rojo/Rosa */
.property { color: #38bdf8; } /* Celeste */
.value { color: #fbbf24; } /* Amarillo */
.brace { color: #94a3b8; }

.declaration {
    padding-left: 2rem;
    border-left: 2px solid #334155;
    margin: 0.5rem 0;
}

/* Etiquetas explicativas sobre el código */
.syntax-block .part::after {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    margin-top: 5px;
    color: #64748b;
    letter-spacing: 1px;
}

.selector::after { content: "Selector"; }
.property::after { content: "Propiedad"; }
.value::after { content: "Valor"; }



/* Estilos para listas técnicas */
.list-tech {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.list-tech li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.list-tech li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.list-tech code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0f172a;
    font-weight: bold;
}

/* Mejora para el desplazamiento de la tabla larga */
.table-wrapper {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.table-wrapper table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Estilos para fragmentos de código en tarjetas */
.code-box-mini {
    background: #1e293b;
    color: #38bdf8;
    padding: 0.8rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    margin: 1rem 0;
    overflow-x: auto;
    text-align: left;
}

/* Ajuste para la visualización de herencia */
.info-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}