/* ============================================================
   LOS ONCE — Hoja de estilos principal
   Colores: rojo #c62828 / texto #333 / fondo blanco
   ============================================================ */

:root {
  --red:          #c62828;
  --red-dark:     #b71c1c;
  --white:        #ffffff;
  --text:         #333333;
  --text-muted:   #777777;
  --bg:           #ffffff;
  --bg-section:   #f8f8f8;
  --border:       #dddddd;
  --nav-height:   70px;
  --max-width:    1140px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html  { scroll-behavior: smooth; }

body  {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-icon { flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span:first-child {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.brand-text span:last-child {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.72; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a; /* fallback si la imagen no carga */
  background-image: url("../images/headers/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  user-select: none;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 9rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-shadow: 2px 4px 16px rgba(0, 0, 0, 0.55);
  line-height: 1;
}

.hero-title span { color: var(--red); }

/* Íconos sociales sobre la imagen */
.hero-social {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 22px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  transition: opacity 0.2s;
}

.social-link:hover { opacity: 1; }

/* Crédito fotografía */
.hero-credit {
  position: absolute;
  bottom: 18px;
  right: 36px;
  z-index: 2;
  color: var(--white);
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.32);
  padding: 5px 14px;
  border-left: 2px solid var(--red);
}

/* Puntos del slider */
.hero-dots {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  transition: background 0.25s;
}

.dot.active { background: var(--white); }

/* ── Secciones genéricas ─────────────────────────────────── */
.section { padding: 80px 0; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--red);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.section-divider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.section-divider span {
  display: block;
  width: 72px;
  height: 2px;
  background: var(--border);
}

/* ── Introducción ────────────────────────────────────────── */
.intro-section { background: var(--bg); }

.intro-text {
  max-width: 800px;
  margin: 0 auto;
}

.intro-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.4em;
}

.intro-text p:last-child { margin-bottom: 0; }

/* ── Historias ───────────────────────────────────────────── */
.historias-section {
  background: var(--bg);
  padding-bottom: 100px;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: transparent;
}

.persona-card {
  position: relative;
  overflow: hidden;
  background: #ccc;
  cursor: pointer;
}

/* Textura envejecida */
.persona-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 175, 140, 0.08);
  z-index: 1;
  pointer-events: none;
}

.persona-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) sepia(15%) contrast(1.05) brightness(0.97);
  transition: transform 0.4s ease, filter 0.35s ease;
}

.persona-card:hover img {
  transform: scale(1.05);
  filter: grayscale(100%) brightness(0.65);
}

/* Capa hover con ojo y nombre */
.persona-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.persona-card:hover .persona-hover {
  opacity: 1;
}

.persona-eye {
  width: 58px;
  height: 58px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-eye svg {
  width: 28px;
  height: 28px;
}

.persona-name {
  font-family: 'Oswald', sans-serif;
  color: white;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.6);
  padding: 0 16px;
}

/* ── Página de Contacto ──────────────────────────────────── */
.page-main {
  padding-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

.contact-section {
  background: var(--bg);
  position: relative;
}

.contact-heart {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.3rem;
  margin-bottom: 52px;
  margin-top: -8px;
}

.contact-layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

/* Info izquierda */
.contact-info { min-width: 210px; }

.contact-info h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-info address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.contact-email {
  color: var(--red);
  font-size: 0.88rem;
  word-break: break-all;
  transition: opacity 0.2s;
}

.contact-email:hover { opacity: 0.75; }

/* Formulario derecha */
.contact-form-wrapper { flex: 1; }

.form-heading {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 10px 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #bbb; }

.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--red); }

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}

.btn-submit:hover { color: var(--red); }

.btn-submit:disabled { opacity: 0.5; cursor: default; }

.form-feedback {
  font-size: 0.85rem;
  color: var(--red);
  text-align: right;
  min-height: 1.2em;
}

/* Barra social lateral */
.contact-social-sidebar {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-social-sidebar a {
  display: block;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.contact-social-sidebar a:hover { opacity: 0.9; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--red-dark); color: var(--white); }

.footer-top { padding: 60px 0 50px; }

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.footer-brand { pointer-events: none; }

.footer-credits {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.9;
}

.footer-credits strong { font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.86rem;
  opacity: 0.8;
}

.footer-attr {
  font-size: 0.72rem !important;
  opacity: 0.45 !important;
  margin-top: 4px;
}

/* ── Botón volver arriba ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: var(--white);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Páginas individuales de personas ───────────────────── */
.person-article {
  padding: 60px 0 80px;
}

.person-header {
  text-align: center;
  margin-bottom: 40px;
  overflow: hidden;
}

.person-header-img {
  width: 105%;
  margin-left: -2.5%;
  display: block;
}

.person-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
}

.person-content {
  max-width: 820px;
  margin: 0 auto;
}

.person-content p {
  margin-bottom: 1.5em;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.brand-logo {
  width: auto;
  display: block;
}

.person-content p:last-child { margin-bottom: 0; }

.person-content strong { font-weight: 600; }

.person-content a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.person-content a:hover { color: var(--red); }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2.5rem 0;
  background: #111;
  border-radius: 2px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.person-back {
  max-width: 820px;
  margin: 2.5rem auto 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.2s;
}

.btn-back:hover { color: var(--red); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .personas-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { gap: 48px; }
}

@media (max-width: 700px) {
  .navbar { padding: 0 20px; }
  .brand-text { display: none; }
  .nav-links { gap: 20px; }

  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-credit { display: none; }

  .personas-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.65rem; }

  .contact-layout { flex-direction: column; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-social-sidebar { display: none; }

  .footer-inner { flex-direction: column; gap: 28px; }
}
