/*Variables Generales*/

:root{
    --color-primary: #2E7D32;
    --color-bg: #f9f9f9;
     --color-surface: #ffffff;
     --color-text: #222222;
    --color-muted: #666666;
    --color-border: #dddddd;
    --color-primary-rgb: 46,125,50;
    --color-primary-soft: rgba(46,125,50, 0.12);

    --font-base: "Inter", sans-serif;
    --font-heading: "Inter", sans-serif;

    --page-gutter: 16px;     
    --footer-space: 60px; 
}

/*Reset*/

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

html{ min-height: 100%;}

body{
    font-family:var(--font-base);
    background:var(--color-bg);
    color:var(--color-text);
    line-height: 1.6;
    padding: 0; /* dejamos que los containers controlen el margen */
    padding-bottom:calc(var(--page-gutter) + var(--footer-space));
    min-height: 100vh;
    position: relative;
}

h1, h2, h3{
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

p{
    margin-bottom: 0.5rem;
    color:var(--color-muted);
}

a:hover{
    text-decoration: underline;
}

/* Escala tipografica */

h1{
    font-size: 1.75rem;
    line-height: 1.2;
}

h2{
    font-size: 1.35rem;
    line-height: 1.3;
}

h3{
    font-size: 1.1rem;
    line-height: 1.35;
}

small, .muted{
    color: var(--color-muted);
}

/* Espaciado entre secciones */

header, nav, main, footer, section{
    margin-bottom: 1.25rem;
}

/* Header visual ahora se maneja con utilidades Bootstrap en HTML */

/* Boton base */

button{
    background: var(--color-primary);
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-base);
    margin-right: 8px;
}

button:hover,
button:focus{
    background: #43a047;
}

/* Acciones rapidas */

.acciones h2{
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Footer final hoja */

footer{
    position:absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 0.4rem var(--page-gutter);
    color: var(--color-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--color-border);
}

footer a {
    display: inline-block;
    padding: 10px 8px;
}


/* Elementos solo para lectores de pantalla */
.sr-only{
  position: absolute !important;
  width: 1px; 
  height: 1px;
  padding: 0; 
  margin: -1px; 
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Compatibilidad con componentes (cards, nav, calculadora, etc.) */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.badge {
  font-weight: 600;
  border-radius: 50px;
}

/* Ajuste tipográfico y color base para las secciones nuevas */
.section-card h2,
.section-card h3 {
  color: var(--color-text);
  font-family: var(--font-heading);
}

