/*
Theme Name: ASCOPA Autismo
Theme URI: https://ascopaautismo.org
Author: ASCOPA Autismo
Author URI: https://ascopaautismo.org
Description: Tema personalizado para ASCOPA Autismo - Comprometidos con la calidad de vida desde 1986.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ascopa-autismo
*/

/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
  --ascopa-azul: #1A4B8F;
  --ascopa-azul-oscuro: #0F2D5A;
  --ascopa-azul-claro: #2563EB;
  --ascopa-amarillo: #F9A825;
  --ascopa-verde: #4CAF50;
  --ascopa-rojo: #E53935;
  --ascopa-gris-claro: #F5F7FA;
  --ascopa-gris: #6B7280;
  --ascopa-texto: #1F2937;
  --ascopa-blanco: #FFFFFF;
  --font-titulo: 'Montserrat', sans-serif;
  --font-cuerpo: 'Open Sans', sans-serif;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-cuerpo);
  color: var(--ascopa-texto);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titulo);
  font-weight: 700;
  line-height: 1.2;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.site-header {
  background: var(--ascopa-blanco);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  height: 100px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  font-family: var(--font-titulo);
  font-size: 14px;
  font-weight: 600;
  color: var(--ascopa-azul);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover {
  background: var(--ascopa-gris-claro);
  color: var(--ascopa-azul-claro);
}

.main-nav a.active {
  background: var(--ascopa-azul);
  color: var(--ascopa-blanco);
}

.btn-donar-header {
  background: var(--ascopa-amarillo) !important;
  color: var(--ascopa-blanco) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(249, 168, 37, 0.4);
  transition: all 0.3s ease !important;
}

.btn-donar-header:hover {
  background: #E09000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 168, 37, 0.5);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--ascopa-azul);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ascopa-blanco);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,75,143,0.85) 0%, rgba(15,45,90,0.75) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content .hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 8px;
  opacity: 0.95;
}

.hero-content .hero-eslogan {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 32px;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-verde {
  background: var(--ascopa-verde);
  color: var(--ascopa-blanco);
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
}

.btn-verde:hover {
  background: #388E3C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn-amarillo {
  background: var(--ascopa-amarillo);
  color: var(--ascopa-blanco);
  box-shadow: 0 4px 14px rgba(249, 168, 37, 0.4);
}

.btn-amarillo:hover {
  background: #E09000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 168, 37, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--ascopa-blanco);
  border: 2px solid var(--ascopa-blanco);
}

.btn-outline:hover {
  background: var(--ascopa-blanco);
  color: var(--ascopa-azul);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--ascopa-blanco);
}

.section-gray {
  background: var(--ascopa-gris-claro);
}

.section-azul {
  background: var(--ascopa-azul);
  color: var(--ascopa-blanco);
}

.section-title {
  font-size: 2.2rem;
  color: var(--ascopa-azul);
  text-align: center;
  margin-bottom: 16px;
}

.section-azul .section-title {
  color: var(--ascopa-blanco);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--ascopa-gris);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-azul .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.color-bar {
  display: flex;
  width: 80px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.color-bar span {
  flex: 1;
}

.color-bar .cb-azul { background: var(--ascopa-azul); }
.color-bar .cb-amarillo { background: var(--ascopa-amarillo); }
.color-bar .cb-verde { background: var(--ascopa-verde); }
.color-bar .cb-rojo { background: var(--ascopa-rojo); }

/* ============================================
   QUIÉNES SOMOS (HOME)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--ascopa-azul);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ascopa-gris);
  margin-bottom: 24px;
}

/* ============================================
   SERVICIOS (CUADRÍCULA)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--ascopa-blanco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

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

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 20px;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--ascopa-azul);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--ascopa-gris);
  line-height: 1.5;
}

/* ============================================
   NOTICIAS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--ascopa-blanco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card-body {
  padding: 24px;
}

.news-card h3 {
  font-size: 1.15rem;
  color: var(--ascopa-azul);
  margin-bottom: 10px;
}

.news-card p {
  font-size: 0.95rem;
  color: var(--ascopa-gris);
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-card .read-more {
  color: var(--ascopa-azul-claro);
  font-weight: 600;
  font-size: 0.9rem;
}

.news-card .read-more:hover {
  color: var(--ascopa-azul);
}

/* ============================================
   EVENTOS
   ============================================ */
.events-list {
  max-width: 900px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--ascopa-blanco);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  align-items: center;
}

.event-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.event-date {
  min-width: 80px;
  text-align: center;
  background: var(--ascopa-azul);
  color: var(--ascopa-blanco);
  border-radius: 10px;
  padding: 12px 8px;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-titulo);
  display: block;
  line-height: 1;
}

.event-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.event-date.past {
  background: var(--ascopa-gris);
}

.event-info h3 {
  font-size: 1.15rem;
  color: var(--ascopa-azul);
  margin-bottom: 6px;
}

.event-info p {
  color: var(--ascopa-gris);
  font-size: 0.95rem;
}

.event-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.badge-proximo {
  background: rgba(76, 175, 80, 0.15);
  color: var(--ascopa-verde);
}

.badge-pasado {
  background: rgba(107, 114, 128, 0.15);
  color: var(--ascopa-gris);
}

/* ============================================
   CTA DONACIÓN
   ============================================ */
.cta-donar {
  position: relative;
  padding: 80px 0;
  text-align: center;
  color: var(--ascopa-blanco);
  overflow: hidden;
}

.cta-donar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,75,143,0.9) 0%, rgba(15,45,90,0.85) 100%);
  z-index: 1;
}

.cta-donar .cta-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cta-donar .container {
  position: relative;
  z-index: 2;
}

.cta-donar h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-donar p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ascopa-azul);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--ascopa-azul);
  color: var(--ascopa-blanco);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================
   DONAR PAGE
   ============================================ */
.donate-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.donate-card {
  background: var(--ascopa-blanco);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-top: 4px solid var(--ascopa-azul);
  transition: all 0.3s ease;
}

.donate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.donate-card h3 {
  font-size: 1.3rem;
  color: var(--ascopa-azul);
  margin: 16px 0 12px;
}

.donate-card p {
  color: var(--ascopa-gris);
  font-size: 0.95rem;
  line-height: 1.6;
}

.donate-icon {
  font-size: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ascopa-azul-oscuro);
  color: var(--ascopa-blanco);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-logo img {
  height: 110px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  padding: 4px 0;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  opacity: 1;
  padding-left: 6px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0;
}

.footer-social a:hover {
  background: var(--ascopa-amarillo);
  padding-left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ============================================
   PAGE HEADER (Páginas internas)
   ============================================ */
.page-header {
  background: var(--ascopa-azul);
  color: var(--ascopa-blanco);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donate-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ascopa-blanco);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .main-nav.active {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .donate-options {
    grid-template-columns: 1fr;
  }
  .event-item {
    flex-direction: column;
    text-align: center;
  }
}


/* ============================================
   WPFORMS - FORMULARIO DE CONTACTO COMPACTO
   ============================================ */
.wpforms-container .wpforms-field {
    margin-bottom: 8px !important;
    padding: 0 !important;
}
.wpforms-container .wpforms-field-label {
    margin-bottom: 4px !important;
    font-size: 0.95rem;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
    padding: 8px 12px !important;
    margin-bottom: 0 !important;
}
.wpforms-container textarea {
    min-height: 100px !important;
    max-height: 120px !important;
}
.wpforms-container .wpforms-submit-container {
    margin-top: 12px !important;
    padding-top: 0 !important;
}
.wpforms-container button[type="submit"] {
    background-color: var(--ascopa-verde) !important;
    color: white !important;
    border: none !important;
    padding: 10px 32px !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}
.wpforms-container button[type="submit"]:hover {
    background-color: #388E3C !important;
}