/*
Theme Name: APC-theme
Theme URI: https://example.com/apc-theme
Author: APC
Description: Theme personalizado para portada con cabecera, slider, CTAs, noticias y pÃ¡ginas estÃ¡ticas.
Version: 1.0.0
Text Domain: apc-theme
*/

:root {
  --bg: #f6f2ee;
  --text: #1f1f1f;
  --muted: #5b5b5b;
  --brand: #c3572a;
  --brand-dark: #8c3c1c;
  --accent: #1b8b6b;
  --card: #ffffff;
  --line: #e1d7cf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Merriweather", "Georgia", serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #ffffff 0%, #f6f2ee 50%, #efe6de 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

.site-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.site-nav {
  margin-left: 24px;
}

.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1rem;
}

.site-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  border-bottom-color: var(--brand);
}

.header-cta {
  margin-left: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.hero-slider {
  padding: 0;
  position: relative;
  overflow: visible;
}

.slider-frame {
  position: relative;
  min-height: 420px;
  width: 100%;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  z-index: 1;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: stretch;
  z-index: 1;
}

.slider-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.45), rgba(31, 31, 31, 0.15));
  z-index: 1;
}

.slider-slide.is-active {
  opacity: 1;
}

.slider-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 80px 0;
  width: 100%;
}

.hero-slant {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: rgba(195, 87, 42, 0.63);
  clip-path: polygon(0 100%, 0 50px, 100% 0, 100% 100%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-slant {
    display: none;
  }
}

.hero-bar {
  height: 0;
  width: 100%;
  background: var(--brand);
}

.slider-copy h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.slider-copy p {
  color: #f3f0ed;
  line-height: 1.6;
}

.slider-copy {
  max-width: 806px;
  background: rgba(28, 20, 16, 0.55);
  padding: 28px 32px;
  border-radius: 18px;
  backdrop-filter: blur(4px);
}

.cta-section {
  padding: 12px 0;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 28px 32px;
  border-radius: 0;
  text-align: center;
}

.cta-text h2 {
  margin: 0 0 8px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-text p {
  margin: 0;
  color: var(--muted);
}

.cta-text {
  max-width: 720px;
}

.news-section {
  padding: 48px 0 64px;
}

.section-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.feature-bar {
  background: var(--brand);
  color: #fff;
  padding: 36px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  text-align: center;
}

.feature-item h3 {
  margin: 12px 0 6px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.news-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.news-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.news-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--brand);
  color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #fff;
}

.site-footer a,
.site-footer span {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.page-content {
  padding: 40px 0 64px;
}

.single-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px;
}

.single-article .content {
  line-height: 1.9;
}

.single-article .content a,
.page-content .content a {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 2px solid var(--brand) !important;
  padding-bottom: 1px;
}

figcaption.wp-element-caption,
.wp-element-caption,
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 0.85rem !important;
  color: #c40000 !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  body.menu-open .site-nav {
    display: block;
  }

  .slider-frame {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-thumb img {
    height: 280px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-row {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .footer-row {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

figcaption.wp-element-caption,
.wp-element-caption,
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 0.85rem !important;
  color: #c40000 !important;
  line-height: 1.5 !important;
}