/*
Theme Name: El Portús APEU
Version: 1.0
*/

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif; /* Ajustar según tipografía real */
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* UTILIDADES */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

/* SECCIÓN 1: HERO */
.section-hero {
  position: relative;
  height: 600px; /* Ajustar altura según necesidad */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: url("img/hero-bg.jpg"); /* Pon aquí tu imagen de la chica */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Oscurecimiento de la imagen de fondo */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Capa negra semitransparente */
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.hero-logo {
  margin-bottom: 30px;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #d8df20; /* Color amarillo corporativo aproximado */
  display: block;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-yellow {
  background-color: #d8df20;
  color: #000;
}

/* SECCIÓN 2: QUÈ ÉS UNA APEU? */
.section-info {
  padding: 80px 0 60px;
  text-align: center;
  background-color: #fff;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2rem;
  color: #000;
  margin-bottom: 30px;
  font-weight: 700;
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  font-size: 0.95rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #000;
  margin: 40px 0 15px;
  font-weight: 700;
}

.separator-line {
  width: 60px;
  height: 3px;
  background-color: #d8df20;
  margin: 60px auto 0;
}

/* SECCIÓN 3: OBJECTIUS DE MILLORA */
.section-objectives {
  padding: 20px 0 100px;
  text-align: center;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.objective-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #f0f0f0; /* Borde sutil como en la imagen */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Sombra muy suave */
}

.objective-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #000;
  font-weight: 700;
}

.objective-card p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* Responsive para grid */
@media (max-width: 768px) {
  .objectives-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* SECCIÓN 4: SESSIÓ INFORMATIVA (NEGRA) */
.section-session {
  background-color: #000;
  color: #fff;
  padding: 80px 0 40px;
  text-align: center;
}

.session-title {
  color: #d8df20; /* Amarillo */
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.session-text {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 40px;
  line-height: 1.6;
}

.session-box {
  background-color: #1a1a1a; /* Gris muy oscuro */
  display: inline-flex;
  flex-direction: column;
  padding: 20px 40px;
  border-radius: 4px;
  margin-bottom: 40px;
  min-width: 300px;
}

.box-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.box-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.btn-white {
  background-color: #fff;
  color: #000;
  display: block;
  width: fit-content;
  margin: 0 auto 80px; /* Margen grande abajo */
}

.btn-white:hover {
  background-color: #eee;
}

.footer-logos {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
}

.copyright {
  font-size: 0.7rem;
  color: #444;
}

/* Estilos Página Votación 
-------------------------------------------------- 
*/

#voting-page {
  background-color: #fcfcfc; /* Fondo muy claro casi blanco */
  min-height: 100vh;
  padding: 60px 20px;
  font-family: "Avenir", sans-serif; /* Asegúrate de que coincida con tu fuente */
  display: flex;
  justify-content: center;
}

.voting-container {
  width: 100%;
  max-width: 500px; /* Ancho máximo de la tarjeta central */
}

/* Header */
.voting-header {
  text-align: center;
  margin-bottom: 30px;
}

.voting-logo {
  margin-bottom: 25px;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #777;
  font-weight: 400;
}

/* Card Principal */
.voting-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); /* Sombra suave y difusa */
  overflow: hidden;
  padding: 40px;
  border: 1px solid #f0f0f0;
}

/* Cabeceras de Pasos */
.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 50px;
  text-align: center;
}

.badge-dark {
  background-color: #2c3e50; /* Azul oscuro casi negro */
  color: #fff;
}

.badge-yellow {
  background-color: #d8df20; /* Amarillo corporativo */
  color: #000;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Campos de Formulario */
.form-group {
  margin-bottom: 20px;
}

.label-uppercase {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.input-field {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  transition: border-color 0.3s;
  font-family: inherit;
}

.input-field:focus {
  border-color: #d8df20;
  outline: none;
}

.input-field::placeholder {
  color: #ccc;
}

/* Checkboxes Personalizados */
.custom-checkbox-container {
  display: flex;
  align-items: center; /* Alineación vertical centrada */
  position: relative;
  padding-left: 35px; /* Espacio para el cuadrado */
  cursor: pointer;
  font-size: 0.85rem;
  color: #666;
  user-select: none;
  line-height: 1.3;
}

.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%; /* Centrado vertical absoluto */
  left: 0;
  transform: translateY(-50%); /* Ajuste fino del centro */
  height: 22px;
  width: 22px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s;
}

.custom-checkbox-container:hover input ~ .checkmark {
  border-color: #bbb;
}

.custom-checkbox-container input:checked ~ .checkmark {
  background-color: #fff;
  border-color: #d8df20;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Checkmark (tick) style */
.custom-checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #d8df20; /* Tick amarillo */
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Botones */
.btn-outline-full {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  color: #333;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-outline-full:hover {
  border-color: #ccc;
  background-color: #fafafa;
}

.btn-yellow-full {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: #d8df20; /* Amarillo */
  border: none;
  border-radius: 8px; /* Un poco más redondeado el botón principal */
  color: #000;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(216, 223, 32, 0.3);
  transition: transform 0.2s;
  margin-top: 20px;
}

.btn-yellow-full:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Separador */
.card-divider {
  height: 1px;
  background-color: #eee;
  margin: 35px -40px; /* Negativo para llegar a los bordes */
}

/* Paso 2 Específicos */
.label-question {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.radio-options {
  display: flex;
  gap: 20px;
}

.inline {
  display: inline-flex;
  margin-right: 15px;
}

.checkbox-text-bold {
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
}

/* Input con icono (DNI) */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-style: normal;
}

/* Placeholder para el icono si no tienes font-icons cargada */
.icon-info-circle::before {
  content: "i"; /* O un SVG */
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #eee;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  font-weight: bold;
}

.legal-text {
  font-size: 0.6rem;
  color: #999;
  text-align: center;
  margin-top: 15px;
}

/* ESTILOS DEL HEADER
-------------------------------------------------- */

/* 1. Contenedor base del header */
.site-header {
  width: 100%;
  padding: 20px 0; /* Espacio arriba y abajo del logo */
  background-color: transparent; /* Por defecto transparente */
  position: relative; /* Para que no flote sobre el contenido por defecto */
  z-index: 100;
}

/* 2. Centrado del contenido */
.header-container {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;
}

/* 3. Control del Logo */
.logo-link {
  display: block;
  line-height: 0; /* Elimina espacios fantasma bajo la imagen */
}

.logo-img {
  width: 100%;
  max-width: 140px; /* Ajusta este valor al tamaño deseado (ej. 140px o 160px) */
  height: auto; /* Mantiene la proporción */
  display: block;
}

/* 4. CASOS ESPECIALES (IMPORTANTE) */

/* Si estás en la HOME (encima de la foto de la chica) */
/* WordPress añade automáticamente la clase 'home' al body */
body.home .site-header {
  position: absolute; /* Para que se ponga encima de la foto */
  top: 0;
  left: 0;
}

/* Si estás en la página de VOTACIÓN o internas */
/* Queremos que tenga fondo blanco o transparente pero que NO tape el formulario */
body:not(.home) .site-header {
  position: relative; /* Vuelve al flujo normal */
  background-color: #fff; /* Opcional: forzar fondo blanco */
  margin-bottom: 20px; /* Un poco de separación con el título */
}

/* ESTILOS DEL FOOTER
-------------------------------------------------- */

.site-footer {
  background-color: #000; /* Fondo negro según diseño */
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto; /* Empuja el footer abajo si el contenido es corto */
}

/* Logos */
.footer-logos {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.img-logos {
  max-width: 100%;
  height: auto;
  /* Ajusta este ancho máximo según lo grandes que sean tus logos reales en el PNG */
  width: 600px;
  filter: brightness(0) invert(1); /* Truco: Vuelve los logos blancos si el PNG es negro */
  opacity: 0.9;
}

/* Texto y Enlaces */
.footer-bottom {
  color: #888; /* Gris suave para textos secundarios */
  font-weight: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.separator {
  color: #444;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
  .separator {
    display: none;
  }
  .img-logos {
    width: 100%;
  }
}

/* ESTILOS MODAL PERSONALIZADO
-------------------------------------------------- */
.modal-overlay {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo negro semitransparente */
  backdrop-filter: blur(4px); /* Efecto borroso elegante en el fondo */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid #f0f0f0;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.modal-content h3 {
  margin: 0 0 10px 0;
  color: #1a1a1a;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-content p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
  font-size: 1rem;
}

.btn-small {
  padding: 10px 30px;
  margin-top: 0;
  display: inline-block;
  width: auto;
  min-width: 150px;
}

/* Tipos de mensaje */
.modal-icon.success::before {
  content: "✓";
  color: #d8df20; /* Amarillo corporativo */
  border: 3px solid #d8df20;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.modal-icon.error::before {
  content: "!";
  color: #ff4d4d; /* Rojo suave */
  border: 3px solid #ff4d4d;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
