/* /assets/css/base.css */
/* =================================================================
   ARCHIVO BASE: RESET, VARIABLES Y GLOBALES
   Revisado y optimizado por: Juan Alberto
   ================================================================= */

/* ---------------------------------- */
/* RESET BÁSICO Y BOX-SIZING
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------------------------- */
/* SISTEMA DE DISEÑO: VARIABLES GLOBALES
/* ---------------------------------- */
:root {
    /* Paleta de Colores Principal */
    --primary-color: #14B8A6;
    --primary-color-darker: #0f8174;
    --secondary-color: #1c2a44;
    --accent-color: #ffc107;
    
    /* Colores de Texto */
    --text-color: #212529;
    --text-muted-color: #6c757d;
    --text-on-primary-color: #ffffff;
    --text-on-secondary-color: #ffffff;

    /* Colores Neutros y de UI */
    --background-color: #f8f9fc;
    --surface-color: #ffffff;
    --surface-hover-color: #f1f3f6;
    --border-color: #e5e7eb;
    
    /* Colores Semánticos para Estados */
    --success-color: #198754;
    --success-bg-color: #d1e7dd;
    --success-border-color: #badbcc;
    --success-text-color: #0f5132;
    --danger-color: #dc3545;
    --danger-bg-color: #f8d7da;
    --danger-border-color: #f5c2c7;
    --danger-text-color: #842029;
    --warning-color: #f59e0b;
    --info-color: #0c5460;
    --info-bg-color: #d1ecf1;
    --info-border-color: #bee5eb;
    
    /* Valores RGB para transparencias (rgba) */
    --primary-rgb: 20, 184, 166;
    --secondary-rgb: 28, 42, 68;
    --text-on-secondary-color-rgb: 255, 255, 255; /* <-- VARIABLE AÑADIDA */
    --black-rgb: 0, 0, 0;
    --white-rgb: 255, 255, 255;
    
    /* Tipografía */
    --font-family-base: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

    /* Sombras y Bordes */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --card-border-radius: 12px;
}


/* ---------------------------------- */
/* ESTILOS GENERALES DEL BODY
/* ---------------------------------- */
html {
    height: 100%;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow-x: hidden; /* <-- AÑADIR ESTA LÍNEA */
}

main {
    flex: 1 0 auto;
}

/* ---------------------------------- */
/* CONTENEDOR Y TIPOGRAFÍA
/* ---------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-color-darker);
}