/**
 * estilo-base.css
 * Estilos base para las secciones subordinadas de carlosvaccaro.com.ar
 * Importar en cada subpágina: <link rel="stylesheet" href="../estilo-base.css">
 * o desde la raíz: <link rel="stylesheet" href="/estilo-base.css">
 *
 * Proporciona coherencia visual mientras se actualizan las secciones.
 */

/* ============================================================
   RESET & BASE (mismo que el principal)
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #e8ecf1;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0f1d35 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 1.5rem;
}

a {
    text-decoration: none;
    color: #87CEEB;
    transition: color 0.2s ease;
}

a:hover {
    color: #b0d8f0;
    text-decoration: underline;
}

a:visited {
    color: #6a9ab8;
}

/* ============================================================
   ENCABEZADOS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    color: #c8d8ec;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ============================================================
   PÁRRAFOS Y TEXTO
   ============================================================ */
p {
    margin-bottom: 1rem;
    color: #a0b4cc;
}

/* ============================================================
   TABLAS (mejoradas pero compatibles)
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(20, 40, 70, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(100, 149, 237, 0.1);
    text-align: left;
}

th {
    background: rgba(30, 60, 100, 0.4);
    color: #87CEEB;
    font-weight: 600;
    font-size: 0.9rem;
}

tr:hover td {
    background: rgba(100, 149, 237, 0.05);
}

/* ============================================================
   IMÁGENES
   ============================================================ */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ============================================================
   BOTONES
   ============================================================ */
button, .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #1e5aa8 0%, #2a7cc7 100%);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 124, 199, 0.3);
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
input, textarea, select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(20, 40, 70, 0.6);
    border: 1px solid rgba(100, 149, 237, 0.2);
    border-radius: 6px;
    color: #e8ecf1;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(100, 149, 237, 0.5);
}

label {
    display: block;
    margin-bottom: 0.3rem;
    color: #7a9ab8;
    font-size: 0.85rem;
}

/* ============================================================
   HR
   ============================================================ */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 149, 237, 0.3), transparent);
    margin: 1.5rem 0;
}

/* ============================================================
   CONTENEDOR CENTRADO
   ============================================================ */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================================
   ENLACE VOLVER
   ============================================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6a8caf;
}

.back-link:hover {
    color: #87CEEB;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #87CEEB;
    outline-offset: 2px;
}
