/*=================================
= Variables de diseño
=================================*/
:root {
  --color-bg: #993366;
  --color-surface: rgba(255,255,255,0.10);
  --color-surface-2: rgba(0,0,0,0.30);
  --color-text: #ffffff;
  --color-accent: #1e90ff;
  --color-accent-2: #63b3ff;
  --color-success: #4caf50;
  --color-success-hover: #45a049;
  --color-link: #a0cfff;
  --color-border: #ffffff;

  --ff-base: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-5: 28px;
  --container-max: 960px;
  --shadow-1: 0 6px 16px rgba(0,0,0,0.18);
  --shadow-2: 0 10px 28px rgba(0,0,0,0.22);
  --trans-fast: 150ms;
}

/*=============================
= Reseteos y base
=============================*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--ff-base);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/*=============================
= Layout principal
=============================*/
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4);
  text-align: center;
}
header {
  border: 1px solid var(--color-border);
  padding: var(--space-2);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
header img { max-height: 56px; }
header h1 { margin: 0; font-weight: 800; font-size: clamp(1.4rem, 2.2vw + 1rem, 2.2rem); }
header p { margin: 0.5em 0; }

/*=============================
= Menú / Botones
=============================*/
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.menu-item {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform var(--trans-fast) ease, background var(--trans-fast) ease, box-shadow var(--trans-fast) ease;
}
.menu-item:hover, .menu-item:focus-visible {
  background: var(--color-accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/*=============================
= Banner
=============================*/
.banner-link { margin-bottom: var(--space-4); }
.banner-link img { border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.banner-link img:hover { transform: scale(1.01); transition: transform var(--trans-fast) ease; }

/*=============================
= Login Form
=============================*/
.login-form {
  background-color: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  text-align: left;
  box-shadow: var(--shadow-1);
}
.login-form label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.login-form input[type="text"],
.login-form input[type="password"] {
  width: min(380px, 80vw);
  padding: 9px 10px;
  margin-bottom: var(--space-2);
  border: none;
  border-radius: var(--radius-sm);
}
.login-form input[type="submit"] {
  background-color: var(--color-success);
  border: none;
  color: #fff;
  padding: 10px 18px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-1);
}
.login-form input[type="submit"]:hover, .login-form input[type="submit"]:focus-visible {
  background-color: var(--color-success-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/*=============================
= Formulario de registro
=============================*/
.reg-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  background-color: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  max-width: 400px;
  margin: 0 auto var(--space-4) auto;
}
.reg-form label { font-weight: 700; width: 100%; }
.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="password"],
.reg-form select {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: none;
  margin-bottom: var(--space-2);
  box-sizing: border-box;
}
.reg-form input[type="submit"] {
  background-color: var(--color-success);
  border: none;
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--trans-fast) ease, transform var(--trans-fast) ease, box-shadow var(--trans-fast) ease;
  box-shadow: var(--shadow-1);
}
.reg-form input[type="submit"]:hover, .reg-form input[type="submit"]:focus-visible {
  background-color: var(--color-success-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/*=============================
= Imagen principal
=============================*/
.main-image { border-radius: var(--radius-md); margin-bottom: var(--space-4); box-shadow: var(--shadow-1); }

/*=============================
= Texto descriptivo
=============================*/
.text-content {
  text-align: justify;
  background-color: var(--color-surface-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-1);
}

/*=============================
= Contacto
=============================*/
.contact { margin-top: var(--space-4); font-size: 1rem; }
.contact a { color: var(--color-link); font-weight: 800; text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/*=============================
= Responsividad
=============================*/
@media (max-width: 720px) {
  .login-form, .reg-form { width: 100%; }
  header { padding: var(--space-3); }
  .menu-item { padding: 10px 14px; }
  .carrusel-container, .carrusel-slides img { width: 100%; height: auto; } /* responsive carrusel */
}
@media (max-width: 480px) {
  .container { padding: var(--space-3); }
  header img { max-height: 48px; }
}

/*=============================
= Historia y libro
=============================*/
.historia-texto {
    text-align: center;
    font-size: 1.5em;
    margin: 20px 0;
    font-weight: bold;
    color: #7CFC00; /* verde claro */
}

/* Carrusel */
.carrusel-container {
  width: 640px;
  height: 360px;
  overflow: hidden;
  margin: 20px auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.carrusel-slides {
  display: flex;
  width: 500%;
  transition: transform 0.5s ease-in-out;
}
.carrusel-slides img {
  width: 640px;
  height: 360px;
  object-fit: cover;
}

/* Video fijo 176x132 */
.video-container video {
  width: 176px;
  height: 132px;
  max-width: 176px;
  max-height: 132px;
  object-fit: cover;
}
video::-webkit-media-controls-fullscreen-button { display: none; }
video::-moz-media-controls-fullscreen-button { display: none; }

/* Libro / tarjeta */
.libro-tarjeta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    margin: 40px 0;
    gap: 20px;
}
.libro-imagen img {
    width: 400px; 
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
.libro-detalle {
    max-width: 600px;
}
.libro-detalle h2 {
    margin-top: 0;
}
.libro-detalle p {
    font-size: 1em;
    line-height: 1.5;
    color: #00244;
    margin-bottom: 20px;
    text-align: justify;
}
.boton-libro {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.b
/*=============================
= Murales Info
=============================*/
.murales-info {
    text-align: justify; /* justifica el texto */
    background-color: rgba(255,255,255,0.1); /* similar a otros bloques */
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
}
.murales-info h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #7CFC00; /* verde claro, como otros títulos */
}
/*=============================
= Responsividad avanzada
=============================*/
/* Tablets y móviles grandes */
@media (max-width: 960px) {
    .container { padding: var(--space-3); }
    header { padding: var(--space-2); }
    header img { max-height: 48px; }
    .menu-item { padding: 8px 14px; font-size: 0.9rem; }
    .carrusel-container { width: 100%; height: auto; }
    .carrusel-slides img { width: 100%; height: auto; }
    .video-container video { width: 150px; height: 112px; }
    .libro-imagen img { width: 90%; height: auto; }
    .libro-detalle { max-width: 100%; }
    .murales-info { padding: 15px; font-size: 0.95rem; }
}

/* Tablets y móviles medianos */
@media (max-width: 720px) {
    header { flex-direction: column; gap: var(--space-1); }
    header h1 { font-size: clamp(1.2rem, 4vw, 1.8rem); }
    .menu { flex-direction: column; gap: var(--space-1); }
    .menu-item { width: 100%; padding: 10px; }
    .carrusel-container { height: auto; }
    .carrusel-slides img { height: auto; }
    .video-container video { width: 130px; height: 98px; }
    .libro-tarjeta { flex-direction: column; align-items: center; gap: 15px; }
    .libro-imagen img { width: 95%; }
    .libro-detalle { max-width: 95%; }
    .text-content, .murales-info { font-size: 0.95rem; padding: 12px; }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container { padding: var(--space-2); }
    header img { max-height: 40px; }
    header h1 { font-size: 1.4rem; }
    .menu { gap: var(--space-1); }
    .menu-item { padding: 8px; font-size: 0.85rem; }
    .carrusel-container { height: auto; }
    .carrusel-slides img { height: auto; }
    .video-container video { width: 110px; height: 82px; }
    .libro-imagen img { width: 100%; }
    .libro-detalle { max-width: 100%; font-size: 0.9rem; }
    .text-content, .murales-info { font-size: 0.9rem; padding: 10px; }
    .banner-link img { width: 90%; }
}
