/*
Theme Name: Conrado Animalero (LaraVital Migrations-Demo)
Description: Angenähertes Theme für die WordPress-Migration von conradoanimalero.com, gebaut nach dem Vorbild von luposan-theme/ (siehe wordpress-demo/). Farben/Typografie vom Original übernommen (Lato/Raleway/Kaushan Script, #F7F3E8/#233420/#62391B/#A07E62), Layout eigens mit WordPress-Bordmitteln umgesetzt (kein Zugriff auf die Original-Bootstrap-Vorlage).
Author: LaraVital
Version: 1.0.0
Text Domain: conradoanimalero
*/

:root {
  --ca-bg: #f7f3e8;
  --ca-text: #233420;
  --ca-heading: #62391b;
  --ca-green: #83bb88;
  --ca-orange: #df995f;
  --ca-link: #a07e62;
  --ca-btn-bg: #62391b;
  --ca-btn-text: #ffffff;
  --ca-btn-bg-secondary: #efefef;
  --ca-max-width: 1140px;
  --ca-header-height: 114px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  color: var(--ca-text);
  background: var(--ca-bg);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Raleway", sans-serif;
  color: var(--ca-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

a {
  color: var(--ca-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.ca-wrap {
  max-width: var(--ca-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.ca-script {
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
}

/* ---------------------------------------------------------------- header */

.ca-header {
  background: var(--ca-bg);
  border-bottom: 1px solid rgba(98, 57, 27, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--ca-header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 0 #df995f;
}
.ca-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--ca-max-width);
  margin: 0 auto;
  width: 100%;
}
.ca-logo img {
  height: 72px;
  width: auto;
}
/* Two stacked, right-aligned rows (social icons above the nav links) --
   found via getComputedStyle on the original: .social sits at the same
   x-range as the nav <ul>, directly above it, both right of the logo. */
.ca-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.ca-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.ca-nav a {
  color: var(--ca-text);
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 18px;
}
.ca-nav a:hover {
  text-decoration: none;
  color: var(--ca-link);
}
.ca-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ca-social a {
  color: var(--ca-link);
  font-size: 20px;
  line-height: 1;
}
.ca-social a:hover {
  text-decoration: none;
  opacity: 0.75;
}
.ca-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ca-heading);
  cursor: pointer;
}

@media (max-width: 860px) {
  .ca-nav, .ca-social { display: none; }
  .ca-menu-toggle { display: block; }
  .ca-header-inner.is-open .ca-nav,
  .ca-header-inner.is-open .ca-social {
    display: flex;
  }
  .ca-header-inner.is-open {
    flex-wrap: wrap;
  }
  .ca-header-inner.is-open .ca-nav ul {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
  }
}

/* ---------------------------------------------------------------- hero */

/* Torn-paper edges: found in the original's own CSS (#banner-home:after,
   .banner-interior:after, .cita/.cita-destacada) -- five small PNGs
   (adorno.png, adorno-superior[-verde].png, adorno-inferior[-verde].png),
   each just the torn silhouette in the two colors it bridges. Used here
   exactly like the original: an absolutely positioned ::after strip,
   background-size 100% auto so it stretches to the container width. */
.ca-torn-edge-bottom {
  position: relative;
}
.ca-torn-edge-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: var(--ca-bg) url('assets/adorno.png') no-repeat bottom;
  background-size: 100% auto;
  /* Must outrank .ca-hero::before / .ca-page-hero::before (z-index 1, the
     dark photo overlay) -- otherwise that 30%-opacity dark green wash
     paints over the cream strip and mutes it to a muddy olive band. */
  z-index: 2;
}

/* Full-bleed breakout: .cita / .cita-destacada in the original are edge-to-
   edge white/green bands (confirmed via getBoundingClientRect: full
   viewport width regardless of the surrounding article's own max-width),
   not centered cards -- these three quote boxes escape their container
   with the standard 100vw trick, capped at 1400px like the original's own
   .content wrapper. */
.ca-cita,
.ca-cita-home,
.ca-cita-destacada-interior {
  width: 100vw;
  max-width: 1400px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* .cita: a white, torn-edge callout box used mid-article on the home page
   and Mi historia (found via .cita / .cita:after in the original CSS). */
.ca-cita {
  text-align: center;
  color: var(--ca-green);
  font-family: "Pangolin", cursive;
  font-size: 28px;
  line-height: 35px;
  font-weight: 400;
  padding: 60px 40px 50px;
  background: #fff url('assets/adorno-superior.png') no-repeat top;
  background-size: 100% auto;
  margin: 40px 0;
  box-sizing: border-box;
}
.ca-cita::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: #fff url('assets/adorno-inferior.png') no-repeat bottom;
  background-size: 100% auto;
}

/* .cita-destacada, home variant: a photo of Conrado on the left (27% of
   the row's width, per getComputedStyle: background-size 27% auto,
   position 0% 50%), a large orange pull-quote filling the rest -- no torn
   edges here (that's the interior-page variant below). */
.ca-cita-home {
  margin: 50px 0;
  padding: 60px 40px 60px 320px;
  font-family: "Raleway", sans-serif;
  font-size: 1.9rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ca-orange);
  background: url('assets/cita-destacada-home.jpg') no-repeat left center;
  background-size: 27% auto;
  box-sizing: border-box;
}
.ca-cita-home strong { color: var(--ca-orange); }
@media (max-width: 700px) {
  .ca-cita-home {
    padding: 220px 20px 20px;
    background-position: top center;
    background-size: auto 180px;
    text-align: center;
    font-size: 1.4rem;
  }
}

/* .cita-destacada, interior-page variant: dark green torn-edge box (found
   via .interior .cita-destacada in the original CSS). */
.ca-cita-destacada-interior {
  text-align: center;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 500;
  padding: 60px 40px 50px;
  background: #19531e url('assets/adorno-superior-verde.png') no-repeat top;
  background-size: 100% auto;
  position: relative;
  margin: 50px 0;
}
.ca-cita-destacada-interior::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: #19531e url('assets/adorno-inferior-verde.png') no-repeat bottom;
  background-size: 100% auto;
}

.ca-hero {
  position: relative;
  min-height: calc(100vh - var(--ca-header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-bottom: 40px;
  overflow: hidden;
}
.ca-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ca-hero-slide.is-active {
  opacity: 1;
}
.ca-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 52, 32, 0.3);
  z-index: 1;
}
.ca-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 24px;
}
.ca-hero-content h1 {
  color: var(--ca-green);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  margin: 0 0 8px;
}
.ca-hero-content .ca-script {
  display: block;
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  color: var(--ca-orange);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

/* Shorter hero banner used on every inner page (Mi historia, Blog, Multimedia,
   Contacto, single posts) -- title over the same forest image. */
.ca-page-hero {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: var(--ca-hero-bg, none);
  background-size: cover;
  background-position: center;
  padding-bottom: 24px;
}
.ca-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 52, 32, 0.35);
}
.ca-page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--ca-green);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 50px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ---------------------------------------------------------------- sections */

.ca-section {
  padding: 60px 0;
}
.ca-section-alt {
  background: #efe7d6;
}
.ca-section-title {
  text-align: center;
  margin-bottom: 32px;
}

/* .fila / .fila-foto / .fila-texto in the original: two equal, gapless
   columns (found via getComputedStyle -- text column ends exactly where
   the photo column starts, no border-radius/shadow on the photo). */
.ca-fila {
  display: flex;
  align-items: center;
  margin-bottom: 56px;
  background: #fff;
}
.ca-fila-foto {
  flex: 1 1 50%;
  min-height: 354px;
  background-size: cover;
  background-position: center;
}
.ca-fila-texto {
  flex: 1 1 50%;
  padding: 40px 60px;
  box-sizing: border-box;
}
.ca-fila.reverse {
  flex-direction: row-reverse;
}
@media (max-width: 760px) {
  .ca-fila {
    flex-direction: column;
  }
  .ca-fila.reverse {
    flex-direction: column;
  }
  .ca-fila-foto {
    width: 100%;
    min-height: 240px;
  }
  .ca-fila-texto {
    padding: 30px 24px;
  }
}

/* .texto-home: intro row on the homepage -- text column + a circular photo
   with color-blob accents on the right (found via getComputedStyle: the
   photo itself is a plain rectangle; the circle/blobs come from a
   figure::before using the original's circulo.png, an otherwise-cream PNG
   with a transparent oval "window" -- painted on top of the photo because
   it's the only positioned box in the pair, so the window reveals the
   photo underneath while the cream border blends into the page). */
.ca-texto-home {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0 50px;
}
.ca-texto-home-text {
  flex: 1 1 55%;
  padding-right: 40px;
  box-sizing: border-box;
}
.ca-texto-home-photo {
  flex: 1 1 45%;
}
.ca-photo-circulo {
  position: relative;
  margin: 0;
}
.ca-photo-circulo img {
  width: 100%;
  height: auto;
  display: block;
}
.ca-photo-circulo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/circulo.png') no-repeat center;
  background-size: contain;
}
@media (max-width: 760px) {
  .ca-texto-home {
    flex-direction: column;
  }
  .ca-texto-home-text {
    padding-right: 0;
    margin-bottom: 24px;
  }
}

/* Rotating quote box (5 statements in the original's .cita section, cycled
   by its slider script) -- reuses .ca-cita's torn-paper box, crossfades
   like the hero slider. */
.ca-cita-rotator {
  position: relative;
}
.ca-cita-rotator .ca-cita-slide {
  display: none;
}
.ca-cita-rotator .ca-cita-slide.is-active {
  display: block;
}

/* Bio section's photo gallery (3 snapshots, found via .row.galerias in the
   original -- plain grid, no lightbox reimplemented). */
.ca-gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.ca-gallery-row img {
  border-radius: 4px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.ca-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--ca-btn-bg);
  color: var(--ca-btn-text) !important;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}
.ca-btn:hover {
  opacity: 0.9;
  text-decoration: none !important;
}
.ca-btn-secondary {
  background: var(--ca-btn-bg-secondary);
  color: var(--ca-text) !important;
}

.ca-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.ca-partners img {
  max-height: 60px;
  width: auto;
}

/* ---------------------------------------------------------------- blog */

.ca-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.ca-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(35,52,32,0.08);
}
.ca-card img { aspect-ratio: 4/3; object-fit: cover; }
.ca-card-body { padding: 18px 20px; }
.ca-card-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ca-link);
}
.ca-card h3 { font-size: 1.1rem; margin: 8px 0; }
.ca-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.ca-cats a {
  background: #ffffff;
  border: 1px solid var(--ca-heading);
  color: var(--ca-heading);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}
.ca-cats a:hover, .ca-cats a.is-active {
  background: var(--ca-heading);
  color: #fff;
  text-decoration: none;
}

.ca-single-article {
  max-width: 820px;
  margin: 0 auto;
}
.ca-single-article .ca-card-date { display: block; margin-bottom: 8px; }
.ca-single-article img { border-radius: 10px; margin-bottom: 24px; }

/* ---------------------------------------------------------------- multimedia */

.ca-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.ca-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}
.ca-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------------- intro (blog/page welcome text) */

/* .intro.page in the original: a left-aligned green blockquote-style intro,
   found via getComputedStyle -- color #19531e, 22px, no max-width. Used at
   the top of the blog index in the original. */
.ca-intro-page {
  color: #19531e;
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 40px;
}
.ca-intro-page p { margin: 0 0 16px; }

/* ---------------------------------------------------------------- contact */

.ca-contact-form {
  max-width: 720px;
  margin: 0 auto;
}
.ca-contact-form label {
  display: block;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  margin: 16px 0 6px;
}
.ca-contact-form input,
.ca-contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(98,57,27,0.3);
  border-radius: 6px;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}
.ca-contact-form textarea { min-height: 140px; }
.ca-hp { position: absolute; left: -9999px; }
.ca-form-notice {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.ca-form-notice.success { background: #dcefdc; color: #234d23; }
.ca-form-notice.error { background: #f6dede; color: #7a2020; }
.ca-form-row {
  display: flex;
  gap: 20px;
}
.ca-form-row > div { flex: 1 1 50%; }
@media (max-width: 700px) {
  .ca-form-row { flex-direction: column; gap: 0; }
}
.ca-form-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  font-size: 0.9rem;
}
.ca-form-consent input { width: auto; }

/* ---------------------------------------------------------------- newsletter + instagram (site-wide, before the footer) */

/* .newsletter and .instagram in the original appear on every page, not
   just the homepage -- moved here (footer.php) from front-page.php. */
.ca-newsletter {
  padding: 50px 0;
  text-align: center;
}
.ca-newsletter h3 { margin: 0 0 6px; }
.ca-newsletter h3 strong { color: var(--ca-green); }
.ca-newsletter p { max-width: 720px; margin: 0 auto 20px; }
.ca-newsletter form { max-width: 560px; margin: 0 auto; text-align: left; }

.ca-instagram-band {
  background: var(--ca-orange);
  color: var(--ca-text);
  padding: 18px 0;
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
}
.ca-instagram-band a { color: var(--ca-text); }

/* ---------------------------------------------------------------- footer */

/* Real footer background photo (fondo-pie.jpg) -- text sits directly on
   it with no overlay, matching the original (getComputedStyle confirmed
   no ::before scrim; the photo is light enough on its own). */
.ca-footer {
  background: var(--ca-bg) url('assets/fondo-pie.jpg') no-repeat center;
  background-size: cover;
  color: var(--ca-text);
  padding: 48px 0 24px;
}
.ca-footer a { color: var(--ca-text); }
.ca-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.ca-footer-logo { font-family: "Kaushan Script", cursive; font-size: 1.8rem; color: var(--ca-heading); }
.ca-footer h4 { margin: 0 0 8px; color: var(--ca-text); font-size: 1.1rem; }
.ca-footer h4 span { display: block; font-weight: 400; font-size: 0.9rem; }
.ca-footer-col { flex: 1 1 240px; }
.ca-footer-bottom {
  border-top: 1px solid rgba(35,52,32,0.2);
  padding-top: 18px;
  font-size: 0.85rem;
}
.ca-footer-bottom ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------------- mi historia chapters */

.ca-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.ca-chapter {
  background: #ffffff;
  border-left: 4px solid var(--ca-heading);
  padding: 14px 18px;
  border-radius: 4px;
}
.ca-chapter h3 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--ca-link);
  text-transform: uppercase;
}
.ca-chapter p { margin: 0; font-size: 0.95rem; }

.ca-quote {
  font-family: "Raleway", sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ca-heading);
  text-align: center;
  max-width: 760px;
  margin: 48px auto;
  padding: 0 24px;
}
