/*
Theme Name: El Pilar Child v3.1.1
Template: twentytwentyfour
Author: Asociación El Pilar
Version: 3.1.1
Description: Tema hijo con header homogéneo, portada Actualidad y footer personalizado.
*/
/* === AJUSTE LOGO === */
.custom-logo,
.wp-block-site-logo img {
  max-height: 80px;
  width: auto;
  height: auto;
}
/* === ESTILOS MENÚ HORIZONTAL === */
.aep-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aep-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.aep-menu li a:hover {
  text-decoration: underline;
}
/* === GRID DE ACTUALIDAD === */
.aep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.aep-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.aep-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.aep-card-body {
  padding: 15px;
}

.aep-card-body h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: #0a3d62;
}

.aep-card-body p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 10px;
}

.aep-readmore {
  color: #0a3d62;
  font-weight: bold;
  text-decoration: none;
}
.aep-readmore:hover {
  text-decoration: underline;
}
/* === EFECTO HOVER TARJETAS === */
.aep-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.aep-card img {
  transition: transform 0.3s ease;
}

.aep-card:hover img {
  transform: scale(1.03);
}
/* === FORMULARIO ALTA SOCIO - DOS COLUMNAS === */
.aep-formulario {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.aep-formulario .full-width{
  	grid-column: 1 / -1;
}  
.aep-formulario label {
  font-weight: 600;
  color: #0a3d62;
  display: block;
  margin-bottom: 4px;
}

.aep-formulario input,
.aep-formulario select,
.aep-formulario textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.aep-formulario input:focus,
.aep-formulario select:focus,
.aep-formulario textarea:focus {
  border-color: #0a3d62;
  outline: none;
  box-shadow: 0 0 4px rgba(10, 61, 98, 0.3);
}

/* Campos de ancho completo */
.aep-formulario .full-width {
  grid-column: 1 / -1;
}

.aep-formulario button,
.aep-formulario input[type="submit"] {
  grid-column: 1 / -1;
  background: #0a3d62;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.aep-formulario button:hover,
.aep-formulario input[type="submit"]:hover {
  background: #0e548b;
  transform: scale(1.02);
}
/* Ocultar Nº socio y Fecha de alta en el formulario */
.aep-grid p:nth-child(3), /* Nº socio */
.aep-grid p:nth-child(10) /* Fecha de alta */ {
  display: none !important;
}
/* ==== ESTILOS MODERNOS PARA FORMULARIO ==== */
.aep-form {
  background: #f9f9f9;      /* fondo gris claro */
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.aep-form label {
  font-weight: 600;
  color: #003366;           /* azul corporativo */
  font-size: 14px;
}

.aep-form input,
.aep-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.aep-form input:focus,
.aep-form textarea:focus {
  border-color: #0055aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0,85,170,0.3);
}

.aep-form .aep-btn {
  background: #003366;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.aep-form .aep-btn:hover {
  background: #0055aa;
}

/* Espaciado entre los campos */
.aep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.aep-grid p {
  margin: 0;
}

.aep-grid p[style*="grid-column:1/-1"] {
  grid-column: 1 / -1; /* Observaciones ocupa fila entera */
}

/* RESPONSIVE: en móviles todo en una columna */
@media (max-width: 768px) {
  .aep-grid {
    grid-template-columns: 1fr;
  }
}