/*
Theme Name: Atacayte
Theme URI: https://atacayte.org/
Author: Atacayte
Description: Tema personalizado para la Asociación Canaria Atacayte para la Lucha por el Bienestar Social. Incluye equipo modular, proyectos/servicios, portal de transparencia visible y formulario de contacto.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: atacayte
*/

:root {
  --atc-orange: #f35400;
  --atc-orange-2: #ff801a;
  --atc-peach: #ff9a4f;
  --atc-rust: #c44200;
  --atc-ink: #2d1c15;
  --atc-muted: #6e5b52;
  --atc-cream: #fff8f3;
  --atc-white: #ffffff;
  --atc-line: #eedfd5;
  --atc-green: #4f6f52;
  --atc-shadow: 0 18px 55px rgba(68, 36, 18, .10);
  --atc-radius: 24px;
  --atc-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--atc-ink);
  background: var(--atc-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--atc-rust); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--atc-orange); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--atc-orange-2); outline-offset: 3px; }

.atc-container { width: min(calc(100% - 40px), var(--atc-container)); margin-inline: auto; }
.atc-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.atc-section { padding: 88px 0; }
.atc-section--white { background: var(--atc-white); }
.atc-section--soft { background: #fff1e7; }
.atc-section--dark { background: var(--atc-ink); color: white; }
.atc-eyebrow { margin: 0 0 10px; color: var(--atc-rust); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .78rem; }
.atc-section--dark .atc-eyebrow { color: var(--atc-peach); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; margin-top: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.7vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
p { margin-top: 0; }
.atc-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--atc-muted); max-width: 760px; }
.atc-section--dark .atc-lead { color: #f1dcd0; }
.atc-copy > *:last-child { margin-bottom: 0; }

.skip-link { position: fixed; left: 12px; top: -100px; z-index: 99999; background: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,248,243,.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196,66,0,.10);
}
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.site-branding img { display: block; width: 152px; max-height: 64px; object-fit: contain; object-position: left center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: 152px; height: auto; }
.main-navigation { display: flex; align-items: center; margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--atc-ink); text-decoration: none; font-weight: 700; font-size: .96rem; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--atc-orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; border: 1px solid var(--atc-line); background: white; border-radius: 999px; padding: 9px 13px; cursor: pointer; }

.atc-button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 21px; min-height: 48px;
  background: var(--atc-orange); color: white; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 26px rgba(243,84,0,.20); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.atc-button:hover, .wp-block-button__link:hover { color: white; background: var(--atc-rust); transform: translateY(-1px); box-shadow: 0 13px 30px rgba(196,66,0,.25); }
.atc-button--ghost { color: var(--atc-ink); background: white; border: 1px solid var(--atc-line); box-shadow: none; }
.atc-button--ghost:hover { color: var(--atc-orange); background: white; }
.atc-button--small { min-height: 42px; padding: 10px 16px; font-size: .91rem; }
.atc-button--light { color: var(--atc-rust); background: white; }
.atc-button--light:hover { color: var(--atc-rust); background: #fff4ec; }

.atc-hero { position: relative; overflow: hidden; padding: 98px 0 78px; min-height: 680px; display: flex; align-items: center; }
.atc-hero::before, .atc-hero::after { content:""; position:absolute; border-radius: 54% 46% 62% 38% / 58% 42% 58% 42%; filter: saturate(1.04); }
.atc-hero::before { width: 540px; height: 540px; right: -80px; top: 30px; background: linear-gradient(145deg,var(--atc-orange-2),var(--atc-peach)); transform: rotate(-18deg); opacity:.95; }
.atc-hero::after { width: 380px; height: 420px; right: 250px; bottom: -160px; background: var(--atc-orange); opacity:.94; transform: rotate(22deg); }
.atc-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 70px; align-items: center; }
.atc-hero h1 { max-width: 820px; margin-bottom: 22px; }
.atc-hero__copy { max-width: 720px; font-size: 1.2rem; color: var(--atc-muted); }
.atc-hero__actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:30px; }
.atc-hero__card { position: relative; z-index: 3; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.75); border-radius: 32px; padding: 28px; box-shadow: var(--atc-shadow); transform: rotate(2deg); }
.atc-hero__card strong { display:block; font-size:1.4rem; margin-bottom:8px; }
.atc-hero__list { margin:18px 0 0; padding:0; list-style:none; display:grid; gap:10px; }
.atc-hero__list li { display:flex; gap:10px; align-items:flex-start; }
.atc-hero__list li::before { content:""; width:10px; height:10px; flex:0 0 10px; margin-top:.48em; border-radius:50%; background:var(--atc-orange); }

.atc-intro-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; align-items:start; }
.atc-statements { display:grid; gap:16px; }
.atc-statement { background:white; border:1px solid var(--atc-line); border-radius:var(--atc-radius); padding:22px; box-shadow:0 10px 30px rgba(68,36,18,.05); }
.atc-statement strong { display:block; color:var(--atc-rust); margin-bottom:5px; }

.atc-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:38px; }
.atc-card { background:white; border:1px solid var(--atc-line); border-radius:var(--atc-radius); padding:28px; box-shadow:0 12px 34px rgba(68,36,18,.06); }
.atc-card__icon { width:48px; height:48px; display:grid; place-items:center; border-radius:16px; background:#fff0e5; color:var(--atc-orange); font-size:1.35rem; margin-bottom:18px; font-weight:900; }
.atc-card p { color:var(--atc-muted); margin-bottom:0; }

.atc-carousel { position:relative; margin-top:36px; border-radius:32px; overflow:hidden; background:#2d1c15; box-shadow:var(--atc-shadow); }
.atc-carousel__track { position:relative; min-height:clamp(330px,52vw,620px); }
.atc-carousel__slide { position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .55s ease; }
.atc-carousel__slide.is-active { opacity:1; pointer-events:auto; }
.atc-carousel__slide img { width:100%; height:100%; min-height:clamp(330px,52vw,620px); object-fit:cover; display:block; }
.atc-carousel__overlay { position:absolute; inset:auto 0 0; padding:70px 34px 28px; color:white; background:linear-gradient(transparent,rgba(28,15,10,.78)); }
.atc-carousel__overlay strong { font-size:clamp(1.35rem,3vw,2rem); }
.atc-carousel__controls { position:absolute; right:22px; bottom:22px; display:flex; gap:8px; z-index:5; }
.atc-carousel__controls button { width:46px; height:46px; border:0; border-radius:50%; background:white; color:var(--atc-ink); cursor:pointer; font-size:1.3rem; }

.atc-project-grid, .atc-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-top:36px; }
.atc-project-card { overflow:hidden; background:white; border:1px solid var(--atc-line); border-radius:var(--atc-radius); box-shadow:0 12px 34px rgba(68,36,18,.06); }
.atc-project-card__media { aspect-ratio:16/10; background:#ffe2cd; overflow:hidden; }
.atc-project-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.atc-project-card:hover .atc-project-card__media img { transform:scale(1.03); }
.atc-project-card__body { padding:24px; }
.atc-project-card__body h3 { margin-bottom:10px; }
.atc-project-card__body h3 a { color:var(--atc-ink); text-decoration:none; }
.atc-project-card__body h3 a:hover { color:var(--atc-orange); }
.atc-project-card__meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.atc-pill { display:inline-flex; align-items:center; border-radius:999px; padding:6px 10px; background:#fff0e5; color:var(--atc-rust); font-size:.78rem; font-weight:800; }
.atc-pill--active { background:#eaf3eb; color:#365b3b; }
.atc-pill--finished { background:#f2ece8; color:#665249; }

.atc-team-card { background:white; border:1px solid var(--atc-line); border-radius:var(--atc-radius); overflow:hidden; }
.atc-team-card__photo { aspect-ratio:4/4.2; background:#ffe8d8; overflow:hidden; }
.atc-team-card__photo img { width:100%; height:100%; object-fit:cover; }
.atc-team-card__placeholder { width:100%; height:100%; display:grid; place-items:center; background:linear-gradient(145deg,#ffb37d,#f35400); color:white; font-size:3rem; font-weight:900; }
.atc-team-card__body { padding:22px; }
.atc-team-card__role { color:var(--atc-rust); font-weight:800; margin-bottom:8px; }

.atc-page-hero { padding:82px 0 58px; background:linear-gradient(180deg,#fff1e7,transparent); }
.atc-page-hero h1 { font-size:clamp(2.6rem,6vw,4.8rem); max-width:900px; margin-bottom:18px; }
.atc-page-hero .atc-lead { margin-bottom:0; }
.atc-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-top:36px; }
.atc-feature { border-left:4px solid var(--atc-orange); background:white; border-radius:0 var(--atc-radius) var(--atc-radius) 0; padding:25px 26px; }

.atc-filterbar { display:flex; gap:10px; flex-wrap:wrap; margin:28px 0 10px; }
.atc-filter { display:inline-flex; padding:9px 14px; border:1px solid var(--atc-line); background:white; border-radius:999px; color:var(--atc-ink); text-decoration:none; font-weight:750; }
.atc-filter.is-active, .atc-filter:hover { background:var(--atc-orange); color:white; border-color:var(--atc-orange); }

.atc-single-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:48px; align-items:start; }
.atc-single__image { border-radius:30px; overflow:hidden; margin:26px 0 34px; }
.atc-single__sidebar { position:sticky; top:112px; background:white; border:1px solid var(--atc-line); border-radius:var(--atc-radius); padding:24px; }
.atc-single__sidebar dl { margin:0; }
.atc-single__sidebar dt { font-weight:850; margin-top:18px; }
.atc-single__sidebar dt:first-child { margin-top:0; }
.atc-single__sidebar dd { margin:4px 0 0; color:var(--atc-muted); }
.entry-content > * { max-width:760px; }
.entry-content > .alignwide { max-width:1100px; }
.entry-content > .alignfull { max-width:none; }

.atc-contact-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:48px; align-items:start; }
.atc-contact-card { background:var(--atc-ink); color:white; border-radius:30px; padding:32px; }
.atc-contact-card a { color:var(--atc-peach); }
.atc-contact-list { list-style:none; padding:0; margin:24px 0 0; display:grid; gap:16px; }
.atc-form { background:white; border:1px solid var(--atc-line); border-radius:30px; padding:32px; box-shadow:var(--atc-shadow); }
.atc-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.atc-field { display:grid; gap:7px; }
.atc-field--full { grid-column:1/-1; }
.atc-field label { font-weight:800; }
.atc-field input, .atc-field textarea, .atc-field select { width:100%; border:1px solid #d9c7bb; background:#fffdfa; border-radius:14px; padding:12px 14px; color:var(--atc-ink); }
.atc-field textarea { min-height:170px; resize:vertical; }
.atc-checkbox { display:flex; gap:10px; align-items:flex-start; font-size:.94rem; }
.atc-checkbox input { margin-top:.33em; }
.atc-hp { position:absolute !important; left:-9999px !important; opacity:0 !important; pointer-events:none !important; }
.atc-notice { padding:14px 16px; border-radius:14px; margin-bottom:20px; font-weight:700; }
.atc-notice--success { background:#e9f5eb; color:#315c38; }
.atc-notice--error { background:#fff0ec; color:#8b2d13; }

.atc-cta { border-radius:34px; background:linear-gradient(135deg,var(--atc-orange),var(--atc-rust)); color:white; padding:44px; display:flex; align-items:center; justify-content:space-between; gap:30px; box-shadow:var(--atc-shadow); }
.atc-cta h2 { margin-bottom:10px; font-size:clamp(2rem,4vw,3.2rem); }
.atc-cta p { max-width:670px; margin-bottom:0; color:#ffe4d2; }

.site-footer { background:#241710; color:#f8e9df; padding:58px 0 30px; }
.footer-grid { display:grid; grid-template-columns:1.25fr .75fr .75fr; gap:44px; }
.site-footer h2, .site-footer h3 { color:white; }
.site-footer a { color:#ffbd90; }
.footer-brand img { width:180px; background:white; border-radius:20px; padding:12px; }
.footer-contact { list-style:none; margin:18px 0 0; padding:0; display:grid; gap:8px; }
.footer-bottom { margin-top:42px; padding-top:24px; border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; gap:20px; color:#d8c7bd; font-size:.9rem; }

.atc-transparency-float { position:fixed; right:18px; bottom:18px; z-index:900; display:inline-flex; align-items:center; gap:8px; background:var(--atc-ink); color:white; border-radius:999px; padding:12px 17px; text-decoration:none; font-weight:850; box-shadow:0 12px 36px rgba(0,0,0,.22); }
.atc-transparency-float:hover { color:white; background:var(--atc-rust); }

.atc-empty { border:1px dashed #d9c7bb; background:#fffaf6; border-radius:var(--atc-radius); padding:28px; color:var(--atc-muted); margin-top:28px; }
.pagination .nav-links { display:flex; gap:8px; margin-top:34px; }
.pagination .page-numbers { min-width:40px; height:40px; display:grid; place-items:center; border-radius:10px; background:white; border:1px solid var(--atc-line); text-decoration:none; }
.pagination .current { background:var(--atc-orange); color:white; border-color:var(--atc-orange); }

@media (max-width: 980px) {
  .main-navigation { display:none; position:absolute; left:20px; right:20px; top:76px; background:white; border:1px solid var(--atc-line); border-radius:20px; box-shadow:var(--atc-shadow); padding:18px; }
  .main-navigation.is-open { display:block; }
  .main-navigation ul { flex-direction:column; align-items:stretch; gap:4px; }
  .main-navigation a { display:block; padding:10px 8px; }
  .menu-toggle { display:inline-flex; }
  .header-actions .atc-button { display:none; }
  .atc-hero__grid, .atc-intro-grid, .atc-contact-grid, .atc-single-grid { grid-template-columns:1fr; }
  .atc-hero { min-height:auto; }
  .atc-hero__card { max-width:560px; }
  .atc-card-grid, .atc-project-grid, .atc-team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .atc-single__sidebar { position:static; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top:46px; }
  .atc-container, .atc-narrow { width:min(calc(100% - 28px), var(--atc-container)); }
  .atc-section { padding:64px 0; }
  .site-branding img, .custom-logo { width:124px; }
  .header-inner { min-height:72px; }
  .atc-hero { padding:70px 0 54px; }
  .atc-hero::before { width:330px; height:330px; right:-160px; top:220px; opacity:.28; }
  .atc-hero::after { display:none; }
  .atc-hero__grid { gap:36px; }
  .atc-card-grid, .atc-project-grid, .atc-team-grid, .atc-feature-grid, .atc-form-grid, .footer-grid { grid-template-columns:1fr; }
  .atc-field--full { grid-column:auto; }
  .atc-cta { padding:30px; flex-direction:column; align-items:flex-start; }
  .footer-bottom { flex-direction:column; }
  .atc-transparency-float { left:14px; right:14px; justify-content:center; bottom:12px; }
  .site-footer { padding-bottom:86px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
