/*
Theme Name: ASEDH
Theme URI: https://asedh.la
Author: ASEDH
Author URI: https://asedh.la
Description: Tema personalizado para la Asociación Educativa para el Desarrollo Humano (ASEDH). Recrea el sitio asedh.la usando exclusivamente funcionalidad nativa de WordPress, sin plugins propietarios. Incluye la página de inicio con slider (plugin ASEDH Slider), tarjetas, testimonios, núcleos de acción, eventos y pie de página.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asedh
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Roboto', Georgia, serif;
  color: #333333;
  line-height: 1.3;
  margin: 0 0 0.5em;
}
a { color: #f8b864; text-decoration: none; transition: color .25s ease, background-color .25s ease; }
a:hover { color: #e09a3d; }
img { max-width: 100%; height: auto; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; position: absolute; padding: 0;
}

/* ==========================================================================
   2. Topbar
   ========================================================================== */
.topbar {
  background: #f8b864;
  color: #333333;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 40px; }
.topbar a { color: #333333; }
.topbar .topbar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 4px 0; }
.topbar .topbar-right { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.topbar .topbar-right .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.45); font-size: 14px;
}
.topbar .topbar-right .social a:hover { background: #333; color: #f8b864; }
.topbar .icon { margin-right: 4px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: relative;
  z-index: 100;
}
.site-header.sticky { position: sticky; top: 0; }
.header-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; gap: 12px; }
.site-branding .site-logo img { max-height: 70px; width: auto; }
.site-branding .site-title { margin: 0; font-family: 'Open Sans', sans-serif; font-size: 1.3rem; }
.site-branding .site-description { font-size: .8rem; color: #666; margin: 0; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav li a {
  display: block; padding: 12px 14px; color: #333;
  font-weight: 600; font-size: 14px;
}
.main-nav li a:hover, .main-nav li.current-menu-item > a, .main-nav li.current_page_item > a { color: #f8b864; }
.main-nav li.menu-item-has-children > a::after {
  content: "\25BE"; margin-left: 6px; font-size: 10px; color: #999;
}
.main-nav ul.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 8px 0; border-top: 3px solid #f8b864;
}
.main-nav li:hover > ul.sub-menu { display: block; }
.main-nav ul.sub-menu a { padding: 10px 18px; font-weight: 400; font-size: 14px; }
.main-nav ul.sub-menu a:hover { background: #fdf3e3; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-donate {
  display: inline-block; background: #f8b864; color: #fff;
  padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .5px;
}
.btn-donate:hover { background: #e09a3d; color: #fff; }
.search-toggle { background: none; border: none; font-size: 22px; cursor: pointer; color: #333; padding: 4px; line-height: 1; }
.search-form-wrap { display: none; position: absolute; right: 0; top: 100%; width: 320px; background: #fff; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.search-form-wrap.open { display: block; }
.search-form-wrap .search-field { width: 100%; padding: 10px 12px; border: 1px solid #ddd; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid #ddd; font-size: 20px; padding: 8px 12px; cursor: pointer; border-radius: 4px; }
@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; width: 100%; }
  .main-nav ul.sub-menu { position: static; box-shadow: none; border: none; padding-left: 18px; display: none; }
  .main-nav li.open > ul.sub-menu { display: block; }
}

/* ==========================================================================
   4. Hero Slider (ASEDH Slider plugin)
   ========================================================================== */
.asedh-slider { position: relative; overflow: hidden; background: #fff; }
.asedh-slider .slide {
  position: relative; display: none; align-items: center; justify-content: center;
  text-align: center; background-size: cover; background-position: center top;
}
.asedh-slider .slide.active { display: flex; }
.asedh-slider .slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.asedh-slider .slide-content {
  position: relative; z-index: 2; max-width: 860px; padding: 60px 20px;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.asedh-slider .slide-title { color: #fff; font-size: 46px; font-weight: 700; margin: 0 0 18px; }
.asedh-slider .slide-subtitle { font-size: 18px; line-height: 1.8; margin: 0 0 24px; }
.asedh-slider .slide-btn {
  display: inline-block; color: #fff; font-size: 13px; font-weight: 700;
  padding: 5px 25px; border: 2px solid rgba(248,184,100,1); border-radius: 30px; text-transform: uppercase;
  letter-spacing: 1px; transition: all .3s ease;
}
.asedh-slider .slide-btn:hover { background: #f8b864; border-color: #f8b864; color: #fff; }
.asedh-slider .slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.35);
  color: #fff; border: none; font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background .25s;
}
.asedh-slider .slider-arrow:hover { background: #f8b864; }
.asedh-slider .slider-arrow.prev { left: 15px; }
.asedh-slider .slider-arrow.next { right: 15px; }
.asedh-slider .slider-dots {
  position: absolute; bottom: 30px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 10px;
}
.asedh-slider .slider-dots button {
  width: 13px; height: 13px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer; transition: background .25s;
}
.asedh-slider .slider-dots button.active { background: #f8b864; }
@media (max-width: 778px) {
  .asedh-slider .slide-title { font-size: 30px; }
  .asedh-slider .slide-subtitle { font-size: 16px; }
}

/* ==========================================================================
   5. Cards
   ========================================================================== */
.asedh-cards-section { padding: 80px 0 42px; }
.asedh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.asedh-card {
  background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s ease;
}
.asedh-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.asedh-card .card-img { overflow: hidden; }
.asedh-card .card-img img { width: 100%; display: block; transition: transform .4s ease; }
.asedh-card:hover .card-img img { transform: scale(1.05); }
.asedh-card .card-body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.asedh-card .card-title { font-size: 24px; margin: 0 0 14px; }
.asedh-card .card-title a { color: #333; }
.asedh-card .card-title a:hover { color: #f8b864; }
.asedh-card .card-text { font-size: 15px; color: #666; margin: 0 0 18px; }
.asedh-card .card-link { margin-top: auto; }
.asedh-card .readmore-btn {
  display: inline-block; border: 1px solid #f8b864; color: #333;
  padding: 8px 22px; border-radius: 30px; font-size: 13px; font-weight: 700;
}
.asedh-card .readmore-btn:hover { background: #f8b864; color: #fff; }
@media (max-width: 992px) { .asedh-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. Headings (section titles)
   ========================================================================== */
.asedh-heading { padding: 40px 0 15px; }
.asedh-heading .heading-primary {
  font-size: 38px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px;
  letter-spacing: 1px;
}
.asedh-heading .heading-secondary { color: #666; font-size: 17px; margin: 0 auto; max-width: 720px; }

/* ==========================================================================
   7. Orange testimonial band
   ========================================================================== */
.asedh-band { background: #f8b864; padding: 70px 0; }
.asedh-band .heading-primary { color: #000; }
.asedh-band .heading-secondary { color: #000; }
.asedh-band .testimonial-quote {
  max-width: 800px; margin: 30px auto 10px; text-align: center;
  font-size: 17px; color: #333; line-height: 1.9;
}
.asedh-band .testimonial-author { text-align: center; font-weight: 700; color: #000; margin-top: 18px; }
.asedh-band .testimonial-role { text-align: center; color: #333; font-size: 14px; }

/* ==========================================================================
   8. Events / general sections
   ========================================================================== */
.asedh-section { padding: 40px 0 60px; }
.asedh-section.narrow-heading { padding: 75px 0 15px; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer-newsletter {
  background: #ffffff; border-bottom: 1px solid #eee; padding: 40px 0;
}
.footer-newsletter .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.footer-newsletter .fn-text { text-align: center; font-size: 17px; color: #333; margin: 0; }
.footer-newsletter .fn-cta { text-align: center; }
.footer-newsletter .donate-cta {
  display: inline-block; background: #f8b864; color: #fff; font-weight: 700;
  padding: 12px 30px; border-radius: 30px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-newsletter .donate-cta:hover { background: #e09a3d; color: #fff; }
.mc4wp-form input[type="email"] {
  width: 100%; max-width: 380px; padding: 12px 16px; border: 1px solid #ddd; border-radius: 30px;
}
.mc4wp-form input[type="submit"], .mc4wp-form button {
  background: #f8b864; color: #fff; border: none; border-radius: 30px;
  padding: 12px 26px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
@media (max-width: 768px) { .footer-newsletter .container { grid-template-columns: 1fr; } }

.footer-partners { padding: 40px 0; border-bottom: 1px solid #eee; }
.footer-partners .partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.footer-partners .partners img { max-height: 70px; opacity: .8; }

.site-footer { background: #ffffff; padding: 60px 0 0; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.footer-widgets .widget-title { font-size: 18px; font-weight: 700; margin: 0 0 18px; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets ul li { margin-bottom: 8px; }
.footer-widgets ul li a { color: #333; font-size: 14px; }
.footer-widgets ul li a:hover { color: #f8b864; }
.footer-contact p { margin: 0 0 8px; font-size: 14px; color: #333; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: #f8b864; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.footer-social a:hover { background: #333; color: #f8b864; }
@media (max-width: 992px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-widgets { grid-template-columns: 1fr; } }

.site-bottom { border-top: 1px solid #eee; padding: 18px 0; }
.site-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: #666; }
.site-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.site-bottom ul a { color: #666; }
.site-bottom ul a:hover { color: #f8b864; }

/* ==========================================================================
   10. Generic page / blog
   ========================================================================== */
.page-hero {
  background: #fdf3e3; padding: 60px 0 40px; text-align: center;
}
.page-hero h1 { font-size: 42px; text-transform: uppercase; }
.page-hero .breadcrumbs { color: #999; font-size: 13px; }
.content-area { padding: 60px 0; }
.entry-content { max-width: 860px; margin: 0 auto; }
.entry-content p { margin: 0 0 1.2em; }

/* Blog */
.blog-list .post-item {
  display: grid; grid-template-columns: 1fr 2fr; gap: 30px; margin-bottom: 40px;
  border: 1px solid #eee; border-radius: 6px; overflow: hidden;
}
.blog-list .post-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-list .post-item .post-body { padding: 24px; }
.blog-list .post-item h2 { font-size: 24px; }
.blog-list .post-item h2 a { color: #333; }
.blog-list .post-item h2 a:hover { color: #f8b864; }
.post-meta { color: #999; font-size: 13px; margin-bottom: 12px; }
@media (max-width: 768px) { .blog-list .post-item { grid-template-columns: 1fr; } }

/* Forms (contact/search) */
.wpcf7 input, .wpcf7 textarea, .wpcf7 select, .entry-content input[type="text"],
.entry-content input[type="email"], .entry-content textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 14px;
}
.wpcf7 input[type="submit"], .entry-content input[type="submit"] {
  background: #f8b864; border: none; color: #fff; font-weight: 700;
  padding: 12px 30px; border-radius: 30px; cursor: pointer; width: auto;
}