/* estilo.css */

/* --- Base / Reset suave --- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

:root{
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;

  --brand: #1e3a8a;       /* azul fuerte */
  --brand-2: #3b82f6;     /* azul */
  --menu-bg: #bfdaf5;     /* tu color */
  --menu-hover: #7ebcfa;  /* tu hover */
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
}

body{
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* --- Layout --- */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

/* --- Encabezado (head.php) --- */
.site-header{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 14px 10px;
  margin-bottom: 14px;
}

.site-header .header-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header .home-icon img{
  width: 44px;
  height: 44px;
}

.site-header .brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-header .brand img{
  width: 54px; /* ajusta si quieres */
  height: auto;
}

.site-header .brand h1{
  margin: 0;
  font-size: 1.35rem;
  color: var(--brand);
}

.site-header .brand .subtitle{
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

/* --- Breadcrumb --- */
.breadcrumb{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: .95rem;
}

.breadcrumb ol{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb a{
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover{
  text-decoration: underline;
}

.breadcrumb .sep{
  color: var(--muted);
}

/* --- Menú (menu.php) --- */
nav.menu{
  background-color: var(--menu-bg);
  padding: 10px;
  margin: 14px 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.06);
}

nav.menu ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav.menu li{
  margin: 0;
}

nav.menu a{
  color: #000;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-block;
  transition: background-color .2s ease, transform .05s ease;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.35);
}

nav.menu a:hover,
nav.menu a.secure{
  background-color: var(--menu-hover);
}

nav.menu a:active{
  transform: translateY(1px);
}

/* --- Contenido --- */
h2{
  margin: 18px 0 10px;
  font-size: 1.15rem;
  color: #111827;
}

ul{
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

ul li{
  display: inline-block;
  margin-right: 14px;
}

/* links generales */
a{
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

/* áreas de texto y inputs */
textarea{
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

input[type="text"], input[type="number"], select{
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

/* --- Footer (pie.php) --- */
footer{
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

footer h3{
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text);
}

footer ul{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

footer li{
  display: block;
  margin: 0;
}

footer a{
  display: block;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9fafb;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
}

footer a:hover{
  background: #eef2ff;
}

/* --- Responsive --- */
@media (max-width: 900px){
  footer ul{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px){
  .container{ padding: 12px; }
  ul li{ display: block; margin: 8px 0; }
  footer ul{ grid-template-columns: 1fr; }
  .site-header .brand h1{ font-size: 1.15rem; }
}
