/* ==========================================================================
   REFU STUDIO — sistema de diseño
   Concepto: cálido, neutro, minimalista con esencia moderna.
   Una sola familia tipográfica (General Sans) en distintos pesos para dar
   jerarquía sin perder cohesión. Paleta de tonos crema / tierra.
   ========================================================================== */

:root{
  --paper:        #FAF9F6;
  --paper-dim:    #F1F0EC;
  --ink:          #1C1B19;
  --ink-soft:     #6D6A64;
  --line:         #E3E1DA;
  --accent:       #59564F;
  --accent-tint:  #ECEAE5;
  --earth:        #26241F;
  --earth-2:      #131211;

  --font-display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "General Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1480px;
  --article-maxw: 1160px;
  --radius: 7px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }

img, svg{ display: block; max-width: 100%; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter);
  opacity: 0;
  transition: opacity 1s ease;
}
.site-header.header-visible{
  opacity: 1;
  transition: opacity 1s ease;
}
body.scrolled-past-hero .site-header{
  opacity: 0 !important;
  pointer-events: none;
}
.site-header::before{
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(19,18,17,.5), rgba(19,18,17,0));
  z-index: -1;
  pointer-events: none;
}

/* compact floating menu trigger, appears once the fixed header has faded out */
.floating-nav-trigger{
  position: fixed;
  top: 22px;
  right: var(--gutter);
  z-index: 61;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
body.scrolled-past-hero .floating-nav-trigger{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.floating-nav-trigger .nav-trigger-icon{
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.floating-nav-trigger .bar{
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .floating-nav-trigger .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.nav-open .floating-nav-trigger .bar:nth-child(2){ opacity: 0; }
body.nav-open .floating-nav-trigger .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.header-nav{
  display: none;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-nav a{ color: rgba(229,227,222,0.8); transition: color 0.2s ease; }
.header-nav a:hover, .header-nav a[aria-current="page"]{ color: var(--paper); }
.header-nav span{ color: rgba(229,227,222,0.35); }

.wordmark{
  display: flex;
  align-items: center;
  color: var(--paper);
}
.wordmark svg{
  height: 52px;
  width: auto;
  display: block;
}

@media (max-width: 640px){
  .wordmark svg{ height: 39px; }
}

.nav-trigger{
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: none;
  border: 1px solid rgba(250,249,246,0.4);
  border-radius: 50px;
  color: var(--paper);
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-trigger:hover{ background: var(--paper); color: var(--earth); }
.nav-trigger-text .state-open{ display: none; }
body.nav-open .nav-trigger-text .state-closed{ display: none; }
body.nav-open .nav-trigger-text .state-open{ display: inline; }

.nav-trigger-icon{
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.nav-trigger-icon .bar{
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-trigger-icon .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-trigger-icon .bar:nth-child(2){ opacity: 0; }
body.nav-open .nav-trigger-icon .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* full-screen nav overlay (desktop default) */
.nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(28,27,25,0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
body.nav-open .nav-overlay{ opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.35s ease; }

.nav-panel{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 400px);
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 32px 40px;
  overflow-y: auto;
  box-shadow: -24px 0 60px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.65,0,.35,1);
}
body.nav-open .nav-panel{ transform: translateX(0); }

.nav-close{
  position: absolute;
  top: 22px;
  right: var(--gutter);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-close:hover{ background: var(--accent-tint); }

.nav-list{ display: flex; flex-direction: column; }
.nav-list li{
  border-top: 1px solid var(--line);
}
.nav-list li:last-child{ border-bottom: 1px solid var(--line); }
.nav-list a{
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.nav-list a .idx{ display: none; }
.nav-list a:hover, .nav-list a[aria-current="page"]{
  color: var(--accent);
  padding-left: 6px;
}

.nav-foot{
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.nav-foot .socials{ display: flex; gap: 20px; }
.nav-foot a:hover{ color: var(--ink); }

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

.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  overflow: hidden;
  color: var(--paper);
}
.hero-bg{
  position: absolute;
  top: -22%; left: -2%; right: -2%;
  height: 144%;
  z-index: 0;
  will-change: transform;
}
.hero-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,18,17,.32), rgba(19,18,17,.52)), url('/hero.jpg') center/cover no-repeat;
  animation: hero-blur-entrance 1s ease-out forwards, hero-zoom-entrance 2.5s ease-out forwards;
}
.hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.1;
  animation: hero-mask-entrance 2.5s ease-out forwards;
}
@keyframes hero-blur-entrance{
  0%{ filter: blur(9px); }
  100%{ filter: blur(0); }
}
@keyframes hero-zoom-entrance{
  0%{ transform: scale(1.1); }
  100%{ transform: scale(1); }
}
@keyframes hero-mask-entrance{
  0%{ opacity: 0.1; }
  100%{ opacity: 0; }
}
@keyframes hero-content-fade-in{
  0%{ opacity: 0; }
  100%{ opacity: 1; }
}

.hero-inner{ position: relative; z-index: 1; width: 100%; animation: hero-content-fade-in 0.5s ease forwards; }

.hero .eyebrow{ color: rgba(200,198,193,0.9); text-shadow: 0 1px 12px rgba(19,18,17,.4); }
.hero .eyebrow::before{ background: var(--accent); }
.hero .lede{ color: rgba(200,198,193,0.9); text-shadow: 0 1px 16px rgba(19,18,17,.35); }
.hero .btn-solid{ background: var(--paper); color: var(--earth); border-color: var(--paper); }
.hero .btn-solid:hover{ background: var(--accent); color: var(--paper); border-color: var(--accent); }
.hero .btn-outline{ border-color: rgba(250,249,246,0.5); color: var(--paper); }
.hero .btn-outline:hover{ background: var(--paper); color: var(--earth); }
.hero .scroll-cue{ color: rgba(200,198,193,0.85); }
.hero .scroll-cue::after{ background: rgba(200,198,193,0.85); }

.hero h1{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--paper);
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 21ch;
  margin-top: 20px;
  text-shadow: 0 2px 24px rgba(19,18,17,.35);
}
.hero h1 em{ color: var(--accent); font-style: italic; }

.hero .lede{
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(200,198,193,0.9);
}

.hero-cta{
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn{
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-solid{ background: var(--ink); color: var(--paper); }
.btn-solid:hover{ background: var(--accent); border-color: var(--accent); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }

.scroll-cue{
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  bottom: 64px;
  z-index: 1;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after{
  content: "";
  width: 1px;
  height: 34px;
  background: var(--ink-soft);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{ 0%,100%{ transform: scaleY(0.3); opacity: 0.4; } 50%{ transform: scaleY(1); opacity: 1; } }

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

section{ padding: 120px 0; border-top: 1px solid var(--line); }

.section-head{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 64px;
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  max-width: 20ch;
}

/* stats band (alcance y ejecución) */
.stats-row{
  display: flex;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.stats-heading-block{
  flex: 1 1 380px;
}
.stats-heading{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  max-width: 22ch;
}
.stats-subtitle{
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.stats-grid{
  flex: 2 1 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat{ padding-top: 20px; text-align: center; }
.stat-number{
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  color: var(--ink);
}
.stat-label{
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: nowrap;
}
.stat-label strong{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
}

@media (max-width: 900px){
  .stats-grid{ grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 640px){
  .stats-grid{ grid-template-columns: 1fr; }
  .stat-label, .stat-label strong, .stats-subtitle{ white-space: normal; }
  .stats-heading-block{ text-align: center; }
  .stats-heading{ margin: 0 auto; }
}

/* servicios (3-card grid, reference layout) */
.services-head{ text-align: center; margin-bottom: 48px; }
.services-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  max-width: 20ch;
  margin: 0 auto;
}
.services-head .lede{
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 46ch;
  margin: 14px auto 0;
}

.service-card{ display: flex; flex-direction: column; }
.service-card-media{
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.service-card-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(19,18,17,.6));
  pointer-events: none;
}
.service-card:hover .service-card-media{ transform: translateY(-4px); opacity: 0.92; }
.service-card-caption{
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: rgba(250,249,246,0.95);
}

/* blog & recursos: photo background with floating white cards */
.blog-recursos-section{
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  border-top: none;
  color: var(--paper);
}
.blog-recursos-bg{
  position: absolute;
  top: -22%; left: -2%; right: -2%;
  height: 144%;
  background: linear-gradient(180deg, rgba(19,18,17,.55), rgba(19,18,17,.7)), url('/assets/blog-recursos-bg.jpg') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
}
.blog-recursos-section > .wrap{ position: relative; z-index: 1; }
.blog-recursos-section .section-head{ margin-bottom: 40px; text-align: center; }
.blog-recursos-section .section-head h2{ white-space: nowrap; margin: 0 auto; max-width: none; color: var(--paper); }
.blog-recursos-section .eyebrow{ color: rgba(250,249,246,0.8); }
@media (max-width: 640px){
  .blog-recursos-section .section-head h2{ white-space: normal; }
}

/* blog & recursos: info cards + newsletter signup */
.info-card{
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--paper);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.info-card:hover{ transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,0.3); }
.info-card h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}
.info-card p{
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex-grow: 1;
}
.info-card .link-arrow{ margin-top: 20px; }

.newsletter-form{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.newsletter-form input{
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.newsletter-form input:focus{ outline: 2px solid var(--accent); outline-offset: 2px; }
.newsletter-form .btn{ align-self: flex-start; }

/* about / positioning */
.about-band{ padding: 64px 0; }
.about-row{
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.about-heading{
  flex: 1 1 280px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  white-space: nowrap;
}
.about-content{ flex: 2 1 480px; }
.about-content p{
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-soft);
}
.about-content .link-arrow{ margin-top: 16px; }

@media (max-width: 640px){
  .about-heading{ white-space: normal; }
  .about-row{ text-align: center; justify-content: center; gap: 16px; }
  .about-content .link-arrow{ margin-left: auto; margin-right: auto; }
}

/* shared "link with arrow" affordance */
.link-arrow{
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  width: fit-content;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover{ color: var(--accent); border-color: var(--accent); }

/* featured projects (homepage teaser -> /proyectos/) */
.projects-head{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 48px;
}
.projects-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 10px;
}
.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.proyectos-grid{ gap: 20px; }
.proyectos-title{ text-align: center; margin: 0 auto; }
.project-card-media--placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-number{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  color: rgba(250,249,246,0.5);
}
.page-body-section.proyectos-body{ border-top: none; padding-top: 32px; }
.proyectos-grid .project-card-body{
  border-top: none;
  padding-top: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.project-card{
  display: flex;
  flex-direction: column;
}
.project-card-media{
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-card:hover .project-card-media{ transform: translateY(-4px); opacity: 0.92; }
.project-card-body{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.project-card-body h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.project-card:hover .project-card-body h3,
.service-card:hover .project-card-body h3{ color: var(--accent); }
.project-card-body p{
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 900px){
  .projects-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .projects-grid{ grid-template-columns: 1fr; gap: 20px; }
  .project-card-body{
    margin-top: 16px;
    padding-top: 0;
    padding-bottom: 20px;
    border-top: none;
    border-bottom: 1px solid var(--line);
  }
}

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

.site-footer{
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--earth-2);
  color: rgba(250,249,246,0.8);
}

.contact-footer{
  padding: 56px 0 0;
}
.contact-footer-head{ max-width: 640px; margin-bottom: 32px; }
.contact-footer-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 10px;
}
.contact-footer-inner{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 32px;
}

.contact-form{ display: flex; flex-direction: column; gap: 13px; }
.contact-form label{
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(250,249,246,0.75);
}
.contact-form input, .contact-form textarea{
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-form .btn{ align-self: flex-start; margin-top: 4px; }
.contact-form .btn-solid{ background: var(--paper); color: var(--earth-2); border-color: var(--paper); }
.contact-form .btn-solid:hover{ background: var(--accent); color: var(--paper); border-color: var(--accent); }

.contact-side{ display: flex; flex-direction: column; align-items: center; gap: 32px; }
.contact-side-logo{ display: flex; justify-content: center; color: rgba(250,249,246,0.85); }
.contact-side-logo svg{ height: 64px; width: auto; }
.contact-info{ display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; text-align: center; }
.contact-info a{ display: flex; align-items: center; gap: 9px; }
.contact-info a svg{ flex-shrink: 0; }
.contact-info a:hover{ color: var(--accent); }
.contact-socials{ display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 320px; }
.contact-socials a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 20px;
  border: 1px solid rgba(250,249,246,0.35);
  border-radius: 50px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.contact-socials a svg{ flex-shrink: 0; }
.contact-socials a:hover{ background: var(--paper); color: var(--earth-2); border-color: var(--paper); }

.contact-footer .footer-bottom{ margin-top: 0; padding-top: 0; border-top: none; }

.footer-bottom-bar{
  background: var(--paper);
  margin-top: 8px;
}
.footer-bottom-bar .wrap{
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer-bottom-bar .footer-bottom{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  color: var(--ink-soft);
  align-items: center;
  font-size: 14px;
}

@media (max-width: 900px){
  .contact-footer-inner{ grid-template-columns: 1fr; gap: 40px; }
}

.footer-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
.footer-nav{ display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; letter-spacing: 0.01em; }
.footer-nav a:hover{ color: var(--paper); }
.footer-meta{ font-size: 13px; letter-spacing: 0.01em; text-align: right; }
.footer-meta .socials{ display: flex; gap: 16px; justify-content: flex-end; margin-bottom: 10px; }
.footer-meta a:hover{ color: var(--paper); }
.footer-bottom{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(250,249,246,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: rgba(250,249,246,0.55);
}

/* ---------------------------------- empty subpages ------------------------ */

/* contacto page: full-bleed hero photo + centered "digital business card" */
.contact-hero{
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 60px;
  margin-bottom: -2px;
}
.contact-hero .hero-bg{
  position: absolute;
  top: -22%; left: -2%; right: -2%;
  height: 144%;
  z-index: 0;
  will-change: transform;
}
.contact-hero .hero-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,18,17,.5), rgba(19,18,17,.68)), url('/hero.jpg') center/cover no-repeat;
  animation: hero-blur-entrance 1s ease-out forwards, hero-zoom-entrance 2.5s ease-out forwards;
}
.contact-hero .hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.1;
  animation: hero-mask-entrance 2.5s ease-out forwards;
}
.contact-hero{ perspective: 1200px; }
.contact-card{
  --card-y: 0px;
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 45px 37px;
  max-width: 375px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  transform: translateY(var(--card-y));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}
.contact-card.card-flip{
  animation: coinFlip 1.1s cubic-bezier(.4,0,.2,1);
}
.contact-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
.contact-card-flip-btn{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact-card-flip-btn svg{ width: 16px; height: 16px; }
.contact-card-flip-btn:hover{ background: var(--accent-tint); color: var(--ink); border-color: var(--accent-tint); }
.contact-card-flip-btn:active{ transform: scale(0.92); }

@keyframes coinFlip{
  from{ transform: translateY(var(--card-y)) rotateY(0deg); }
  to{ transform: translateY(var(--card-y)) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .contact-card{ animation: none; }
}
.contact-card-logo{ display: flex; justify-content: center; color: var(--ink-soft); }
.contact-card-logo svg{ height: 45px; width: auto; }

.contact-card-links{
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.contact-card-links a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.contact-card-links a svg{ width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-soft); }
.contact-card-links a:hover{ color: var(--accent); }
.contact-card-links a:hover svg{ color: var(--accent); }

.contact-card-socials{
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 11px;
}
.contact-card-socials a{
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-card-socials a svg{ width: 17px; height: 17px; }
.contact-card-socials a:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 480px){
  .contact-card{ padding: 36px 26px; }
  .contact-hero{ padding: 100px 20px 40px; }
}

/* proyectos: hero band with background photo (same treatment as blog-recursos-section) */
.proyectos-hero{
  position: relative;
  overflow: hidden;
  min-height: 464px;
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--paper);
}
.proyectos-hero-bg{
  position: absolute;
  top: -22%; left: -2%; right: -2%;
  height: 144%;
  z-index: 0;
  will-change: transform;
}
.proyectos-hero-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,9,11,0) 45%, rgba(10,9,11,0.45) 100%),
    linear-gradient(180deg, rgba(15,13,12,.32), rgba(15,13,12,.52)),
    var(--hero-photo, url('/assets/proyectos-hero-bg.jpg')) center/cover no-repeat;
  animation: hero-blur-entrance 1s ease-out forwards, hero-zoom-entrance 2.5s ease-out forwards;
}
.proyectos-hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.1;
  animation: hero-mask-entrance 2.5s ease-out forwards;
}
.proyectos-hero > .wrap{ position: relative; z-index: 1; width: 100%; animation: hero-content-fade-in 0.5s ease forwards; }
.proyectos-hero .proyectos-title{
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  max-width: 20ch;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.proyectos-hero .lede{
  margin: 14px auto 0;
  max-width: 64ch;
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(250,249,246,0.92);
  text-align: center;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
@media (max-width: 700px){
  .proyectos-hero{ min-height: 360px; }
}

/* generic subpage content (used once a placeholder page gets real content) */
.page-hero{ padding: 160px 0 0; }
.page-hero .lede{
  margin-top: 16px;
  max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
}

/* servicios: accordion of the 4 service branches */
.page-body-section.servicios-body{ border-top: none; padding-top: 48px; }
.servicios-accordion{ display: flex; flex-direction: column; }
.servicio-cat{ border-top: 1px solid var(--line); }
.servicio-cat:last-child{ border-bottom: 1px solid var(--line); }

.cat-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  padding: 26px 4px;
  cursor: pointer;
}
.cat-trigger:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

.cat-index{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  flex-shrink: 0;
  width: 26px;
}
.cat-title-wrap{ flex: 1; min-width: 0; }
.cat-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 22px);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.cat-sub{ font-size: 13px; color: var(--ink-soft); }

.cat-plus{ flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.cat-plus::before, .cat-plus::after{
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  border-radius: 2px;
  transform: translate(-50%,-50%);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
  will-change: transform;
}
.cat-plus::before{ width: 16px; height: 2px; }
.cat-plus::after{ width: 2px; height: 16px; }
.servicio-cat[data-open="false"] .cat-plus::before{
  background: var(--ink-soft);
  animation: plus-pulse 2.4s cubic-bezier(.45,0,.55,1) infinite;
}
.servicio-cat[data-open="false"] .cat-plus::after{
  background: var(--ink-soft);
  animation: plus-pulse 2.4s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes plus-pulse{
  0%, 100%{ transform: translate(-50%,-50%) scale(1); background: var(--ink-soft); }
  50%{ transform: translate(-50%,-50%) scale(1.25); background: var(--ink); }
}
.servicio-cat[data-open="true"] .cat-plus::after{ transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.servicio-cat[data-open="true"] .cat-plus::before{ background: var(--accent); }

.cat-panel{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.servicio-cat[data-open="true"] .cat-panel{ grid-template-rows: 1fr; }
.cat-panel-inner{ overflow: hidden; }
.servicio-list{ padding: 2px 4px 28px 50px; }

.servicio-row{ display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.servicio-row:first-child{ border-top: none; }
.servicio-body{ flex: 1; min-width: 0; }
.servicio-name{ font-family: var(--font-display); font-weight: 600; font-size: 15.5px; margin: 0 0 4px; }
.servicio-desc{ font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 8px; max-width: 56ch; }
.servicio-tag{
  display: inline-block;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: 3px 9px;
}
a.servicio-tag{
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
a.servicio-tag:hover{ background: var(--ink); color: var(--paper); }
.servicio-cta{ flex-shrink: 0; align-self: center; }

@media (max-width: 560px){
  .servicio-row{ flex-wrap: wrap; }
  .servicio-cta{ margin-left: 0; }
  .cat-trigger{ gap: 14px; }
  .servicio-list{ padding-left: 44px; }
}
.page-hero h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  max-width: 20ch;
  margin-top: 16px;
}
.page-body-section{ padding-top: 40px; }
.page-body{ max-width: 68ch; }
.page-body p{
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
}
.page-body p + p{ margin-top: 22px; }

/* pagina Nosotros: mismo hero de imagen que el home, pero con el titulo y
   el texto centrados (el home los deja alineados a la izquierda).
   Logros queda pegado debajo, sin linea divisoria. No toca header ni footers. */
.page-nosotros-hero .hero-inner{
  text-align: center;
  margin: 0 auto;
}
.page-nosotros-hero h1,
.page-nosotros-hero .lede{
  margin-left: auto;
  margin-right: auto;
}
.page-nosotros-hero .link-arrow{
  margin: 32px auto 0;
  border-color: var(--paper);
}
.page-nosotros-hero .lede{
  max-width: 62ch;
}
/* mismo degradado mas oscuro que ya usa el hero de Contacto, para mejorar
   la lectura del texto sin salirse de la estetica ya establecida */
.page-nosotros-hero .hero-bg::before{
  background: linear-gradient(180deg, rgba(19,18,17,.5), rgba(19,18,17,.68)), url('/hero.jpg') center/cover no-repeat;
}
.page-nosotros .stats-section{ border-top: none; padding-top: 24px; padding-bottom: 56px; }

.placeholder{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  position: relative;
  overflow: hidden;
}
.placeholder-inner{ position: relative; z-index: 1; }
.placeholder h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 120px);
  letter-spacing: -0.01em;
}
.placeholder .status{
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.status .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.placeholder .back{
  margin-top: 48px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  width: fit-content;
}
.placeholder .back:hover{ color: var(--accent); border-color: var(--accent); }

/* ---------------------------------- responsive --------------------------- */

@media (max-width: 900px){
  .about{ grid-template-columns: 1fr; gap: 32px; }
  section{ padding: 84px 0; }
}

@media (max-width: 560px){
  .site-header{ padding: 18px var(--gutter); }
  /* header height on mobile: 18px padding + 39px logo + 18px padding = 75px.
     Shift the flip card up by half that (37.5px) so it sits closer to the header.
     Set via --card-y (not a direct transform) so the coinFlip keyframes below
     can read it too and the card doesn't jump back to y:0 mid-flip. */
  .contact-card{ --card-y: -18.75px; } /* -37.5px + 18.75px (bajada X/2) */
}

/* ---------------------------------- mobile: menú tipo drawer lateral ------ */

@media (max-width: 768px){
  body.nav-open .site-header{ z-index: 40; }

  .nav-trigger{
    border: none;
    background: none;
    padding: 8px;
    color: var(--paper);
  }
  .nav-trigger:hover{ background: none; color: var(--paper); }
  .nav-trigger-text{ display: none; }
  .nav-trigger-icon{ display: flex; }

  .nav-panel{
    padding: 84px 28px 32px;
  }
}

/* ---------------------------------- desktop header nav ------------------- */
@media (min-width: 901px){
  .header-nav{ display: flex; }
  .nav-trigger{ display: none; }
}

/* paginas de articulo: siempre icono de menu, nunca el nav horizontal
   completo (evita que el logo y los links se solapen en anchos intermedios
   como tablet o multitasking de escritorio) */
/* paginas de articulo: sin site-header (el logo vive dentro del hero).
   el trigger flotante estandar (el mismo que aparece en el resto del sitio
   al hacer scroll) queda visible desde el inicio, no solo tras el scroll. */
body.page-article .floating-nav-trigger{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* whole-page "rubber-band" tug when the user tries to scroll past the bottom.
   Animates the entire page-shell (main + footer) as one unit, like native
   overscroll bounce, instead of an isolated element moving on its own. */
.page-shell{ will-change: transform; }
.page-shell.page-bounce{
  animation: page-bounce 0.6s cubic-bezier(.25,.46,.45,.94);
}
@keyframes page-bounce{
  0%{ transform: translateY(0); }
  38%{ transform: translateY(-20px); }
  60%{ transform: translateY(7px); }
  80%{ transform: translateY(-3px); }
  100%{ transform: translateY(0); }
}
/* header: mirror bounce at the top of the page (opposite direction — the
   header gives DOWNWARD, like native top-of-page overscroll) */
.site-header.header-bounce{
  animation: header-bounce 0.6s cubic-bezier(.25,.46,.45,.94);
}
.article-hero.header-bounce{
  animation: header-bounce 0.6s cubic-bezier(.25,.46,.45,.94);
}
@keyframes header-bounce{
  0%{ top: 0; }
  38%{ top: 13px; }
  60%{ top: -4.5px; }
  80%{ top: 2px; }
  100%{ top: 0; }
}

/* ---------------------------------- Recursos ------------------------------ */
.proyectos-hero--compact{ min-height: 300px; }
@media (max-width: 700px){
  .proyectos-hero--compact{ min-height: 260px; }
}
.section-head--center{ text-align: center; margin-bottom: 32px; }
.section-head--center h2{ margin: 0 auto 8px; }
.section-head--center p{ max-width: 60ch; margin: 0 auto; }

.recursos-body{ padding-top: 40px; }

.recursos-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.recurso-card{ display: flex; flex-direction: column; }
.recurso-media{
  aspect-ratio: 2/1;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.recurso-card:hover .recurso-media{ transform: translateY(-4px); opacity: 0.92; }
.recurso-watermark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(250,249,246,0.22);
}
.recurso-media-label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.8);
  margin-top: 6px;
}
.recurso-body{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recurso-cat{ font-size: 11.5px; color: var(--ink-soft); margin: 0 0 6px; }
.recurso-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
  transition: color 0.2s ease;
}
.recurso-card:hover .recurso-name{ color: var(--accent); }
.recurso-desc{ font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.recurso-footer{ display: flex; align-items: center; justify-content: center; gap: 14px; }
.recurso-format{
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: 3px 9px;
}

/* countdown to next weekly rotation */
.recursos-countdown-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 56px;
}
.recursos-scroll-cue{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--accent);
  animation: recursos-scroll-cue-bounce 1.6s ease-in-out infinite;
}
.recursos-scroll-cue svg{ width: 26px; height: 13px; }
.recursos-scroll-cue-2{ opacity: 0.4; margin-top: -4px; }
@keyframes recursos-scroll-cue-bounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}
@media (max-width: 900px){
  .recursos-scroll-cue{ display: none; }
}

.recursos-countdown{
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.recursos-countdown p{ font-size: 13.5px; color: var(--ink-soft); margin: 0 auto 16px; letter-spacing: 0.01em; max-width: 46ch; line-height: 1.5; }
.countdown-units{ display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.countdown-unit{ display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.countdown-unit-value{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown-unit-label{ font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* subscription CTA banner */
.recursos-sub-cta{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--earth-2);
  color: var(--paper);
  padding: 56px 40px;
  margin-bottom: 64px;
  text-align: center;
}
.recursos-sub-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.recursos-sub-cta-inner{ position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.recursos-sub-cta h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 14px;
}
.recursos-sub-cta p{ color: rgba(250,249,246,0.8); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.recursos-sub-categories{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.recursos-sub-categories span{
  font-size: 12.5px;
  border: 1px solid rgba(250,249,246,0.3);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: rgba(250,249,246,0.9);
}
.recursos-sub-categories .recursos-sub-more{
  border: none;
  padding: 6px 0;
  color: rgba(250,249,246,0.6);
  font-style: italic;
}
.recursos-sub-buttons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.recursos-sub-cta .btn-solid{
  background: var(--paper);
  color: var(--earth-2);
  border-color: var(--paper);
}
.recursos-sub-cta .btn-solid:hover{ background: var(--accent); color: var(--paper); border-color: var(--accent); }
.recursos-sub-cta .btn:not(.btn-solid){
  color: var(--paper);
  border-color: rgba(250,249,246,0.5);
}
.recursos-sub-cta .btn:not(.btn-solid):hover{ background: rgba(250,249,246,0.12); border-color: var(--paper); }

@media (max-width: 900px){
  .recursos-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .recursos-grid{ grid-template-columns: 1fr; }
  .recursos-sub-cta{ padding: 40px 24px; }
  .countdown-units{ gap: 12px; }
  .countdown-unit{ min-width: 54px; }
  .recursos-sub-buttons{ flex-direction: column; align-items: stretch; }
}

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

.blog-body{ padding-top: 64px; }
.blog-layout{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.blog-sidebar{
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-search-b{
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  color: var(--ink-soft);
}
.blog-search-b input{
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  background: transparent;
  color: var(--ink);
}
.blog-sidebar-label{
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-bottom: 10px;
}
.blog-cat-list{ display: flex; flex-direction: column; gap: 2px; }
.blog-cat-list a{
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  transition: color 0.2s ease;
}
.blog-cat-list a:hover{ color: var(--ink); }
.blog-cat-list a.active{ color: var(--ink); font-weight: 600; }
.blog-sort-arrow{ font-size: 15px; opacity: 0.55; transition: opacity 0.2s ease; }
.blog-sort-date:hover .blog-sort-arrow{ opacity: 1; }
.blog-cat-list a span{ opacity: 0.5; font-size: 12.5px; }

.blog-index{ display: flex; flex-direction: column; }
.blog-row{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  align-items: center;
  transition: opacity 0.2s ease;
}
.blog-row:first-child{ padding-top: 0; }

/* el primer articulo de la lista (segun el filtro/orden activo) se ve
   destacado, del tamaño aproximado de 2 filas normales */
.blog-row--featured{
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.blog-row--featured .blog-row-img{ aspect-ratio: 4/3; }
.blog-row--featured .blog-row-tag{ font-size: 12.5px; }
.blog-row--featured h3{ font-size: 30px; margin: 14px 0 12px; }
.blog-row--featured p{ font-size: 15.5px; max-width: none; }
.blog-row:last-child{ border-bottom: none; }
.blog-row:hover{ opacity: 0.75; }
.blog-row-img-link{ display: block; }
.blog-row-content{ display: flex; flex-direction: column; }
.blog-row-text-link{ display: block; }
.blog-row-img{
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}
.blog-row-tag{
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.blog-row h3{
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  margin: 10px 0 8px;
  line-height: 1.3;
}
.blog-row p{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 56ch;
}
.blog-row-meta{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.blog-row-date{
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: 0.7;
}
.blog-row-fav{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  opacity: 0.55;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}
.blog-row-fav:hover{ opacity: 1; transform: scale(1.1); }
.blog-row-fav.is-fav{ color: var(--accent); opacity: 1; }

.blog-row-like{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  opacity: 0.55;
  font-family: var(--font-body);
  font-size: 12.5px;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}
.blog-row-like:hover{ opacity: 1; transform: scale(1.05); }
.blog-row-like.is-liked{ color: #c1443f; opacity: 1; }
.blog-row-like-count{ min-width: 10px; }

.blog-mobile-controls{
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.blog-mobile-sort-row{
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-mobile-sort-row .blog-cat-select{ flex: 1; }
@media (max-width: 900px){
  .blog-layout{ grid-template-columns: 1fr; gap: 20px; }
  .blog-sidebar{ position: static; gap: 12px; }
  .blog-body{ padding-top: 32px; }
  .blog-mobile-controls{ display: flex; }
  .blog-desktop-filters{ display: none; }
}

.blog-cat-select{
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}
.blog-icon-btn{
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.blog-icon-btn svg{ width: 16px; height: 16px; }
.blog-icon-btn:hover{ color: var(--ink); border-color: var(--ink); }
.blog-icon-btn.is-active{ color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px){
  .blog-row{ grid-template-columns: 1fr; gap: 10px; }
  .blog-row-img{ aspect-ratio: 16/10; }
  .blog-row--featured{ grid-template-columns: 1fr; gap: 10px; }
  .blog-row--featured .blog-row-img{ aspect-ratio: 16/10; }
}

.contact-form-status{
  font-size: 13.5px;
  margin: 0;
  min-height: 1em;
}
.contact-form-status--ok{ color: #7ac47f; }
.contact-form-status--error{ color: #e0938f; }

/* boton de copiar junto a telefono/email (footer y tarjeta de contacto) */
.contact-row{
  position: relative;
  display: inline-flex;
  align-self: center;
  align-items: center;
}
.contact-row .copy-btn{
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 6px;
}
.contact-row .copy-btn:hover{ transform: translateY(-50%) scale(1.12); }
.copy-btn{
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
  animation: copy-btn-pulse 2.4s ease-in-out infinite;
  transition: color 0.2s ease;
}
.copy-btn:hover{ animation-play-state: paused; opacity: 1; }
.copy-btn svg{ width: 14px; height: 14px; flex-shrink: 0; }
.copy-btn.is-copied{ animation: none; opacity: 1; color: var(--accent); }
@keyframes copy-btn-pulse{
  0%, 100%{ opacity: 0.12; }
  50%{ opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce){
  .copy-btn{ animation: none; opacity: 0.6; }
}

/* --------------------------- articulo de blog ---------------------------- */

.article-wrap{ max-width: var(--article-maxw, 1160px); }
.page-body-section.article-body-section{ border-top: none; }

.article-hero{
  position: relative;
  min-height: 464px;
  display: flex;
  align-items: center;
  padding: 0;
  border-top: none;
  color: var(--paper);
}
.article-hero-bg{
  position: absolute;
  top: -24px;
  bottom: 0;
  left: max(0px, calc((100% - var(--article-maxw)) / 2 - 12px));
  right: max(0px, calc((100% - var(--article-maxw)) / 2 - 12px));
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  z-index: 0;
}
.article-hero-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,13,12,.5), rgba(15,13,12,.7)),
    var(--hero-photo, url('/assets/proyecto-3.jpg')) center/cover no-repeat;
}
.article-hero > .wrap{ position: relative; z-index: 1; width: 100%; }

/* la tarjeta con margen y esquinas redondeadas solo se ve bien en escritorio
   ancho de verdad; en multitasking, tablet y movil vuelve a ancho completo,
   igual que el resto de subpaginas del sitio (sin margen, sin redondeo) */
@media (max-width: 1200px){
  .article-hero-bg{ left: 0; right: 0; border-radius: 0; }
}

.article-meta-credit{
  text-align: right;
  font-style: italic;
  font-size: 12px;
  color: rgba(250,249,246,0.45);
  margin-top: 8px;
}

.article-breadcrumb{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(250,249,246,0.6);
  margin: 0 0 20px;
}
.article-breadcrumb a{ color: rgba(250,249,246,0.75); }
.article-breadcrumb a:hover{ color: var(--paper); }
.article-breadcrumb span[aria-current]{ color: var(--paper); }

.article-hero .blog-row-tag{ display: inline-block; margin-bottom: 14px; color: rgba(250,249,246,0.85); }
.article-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 0 0 22px;
  max-width: none;
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.article-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(250,249,246,0.25);
}
.article-meta-date,
.article-meta-reading,
.article-meta-author{ font-size: 13px; color: rgba(250,249,246,0.75); }
.article-meta-sep{ color: rgba(250,249,246,0.4); font-size: 13px; }
.article-meta-actions{ margin-left: auto; display: flex; align-items: center; gap: 16px; }
.article-meta-actions .blog-row-fav,
.article-meta-actions .blog-row-like{ position: static; opacity: 0.75; color: rgba(250,249,246,0.85); }
.article-meta-actions .blog-row-fav:hover,
.article-meta-actions .blog-row-like:hover{ opacity: 1; }
.article-meta-actions .blog-row-fav.is-fav{ color: var(--accent-tint); }

.article-share{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
}
.article-share-label{
  font-size: 11.5px;
  color: rgba(250,249,246,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-share-list{ display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px){
  .article-share-label{ display: none; }
}
.article-share a, .article-share button{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(250,249,246,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,249,246,0.85);
  background: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.article-share a:hover, .article-share button:hover{
  background: var(--paper);
  color: var(--earth);
  border-color: var(--paper);
}
.article-share a svg, .article-share button svg{ width: 15px; height: 15px; }
.article-share .copy-btn{ animation: none; }

.article-content{ max-width: none; }
.article-content p{
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 22px;
  text-align: left;
}
.article-content p strong{ color: var(--ink); font-weight: 600; }

.article-content h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 25px);
  line-height: 1.3;
  color: var(--ink);
  margin: 44px 0 16px;
}
.article-content h2:first-child{ margin-top: 0; }

.article-content blockquote.pull-quote{
  margin: 40px 0;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--accent);
}
.article-content blockquote.pull-quote p{
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
  margin: 0;
}

.article-byline{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.article-byline strong{ color: var(--ink); font-weight: 600; }

/* layout de dos columnas: articulo + sidebar de sugeridos/publicidad */
.article-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}
.article-main{ min-width: 0; }

.article-sidebar{
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.article-sidebar-title{
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.article-sidebar-list{ display: flex; flex-direction: column; }
.article-sidebar-card{ display: flex; gap: 12px; align-items: flex-start; color: var(--ink); padding: 16px 0; }
.article-sidebar-card:first-child{ padding-top: 0; }
.article-sidebar-card:last-child{ padding-bottom: 0; }
.article-sidebar-card + .article-sidebar-card{ border-top: 1px solid var(--line); }
.article-sidebar-card--featured{ flex-direction: column; }
.article-sidebar-card--featured .article-sidebar-card-img{ width: 100%; aspect-ratio: 16/9; }
.article-sidebar-card--featured .article-sidebar-card-body{ padding-top: 6px; gap: 2px; }
.article-sidebar-card--featured h4{ font-size: 16.5px; }
.article-sidebar-card-img{
  width: 84px;
  aspect-ratio: 4/3;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.article-sidebar-card-body{ display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.article-sidebar-card-cat{
  font-size: 10.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-sidebar-card h4{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}
.article-sidebar-card:hover h4{ color: var(--accent); }

.article-ad-slot{
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-adjacent{
  display: flex;
  gap: 24px;
  margin-top: 12px;
}
.article-adjacent-link{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.article-adjacent-next{ text-align: right; align-items: flex-end; }
.article-adjacent-label{
  font-size: 11.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-adjacent-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
}
.article-adjacent-link:hover .article-adjacent-title{ color: var(--accent); }

@media (max-width: 900px){
  .article-layout{ grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar{ position: static; }
}
@media (max-width: 700px){
  .article-hero{ min-height: 360px; }
}
@media (max-width: 640px){
  .article-adjacent{ flex-direction: column; }
  .article-adjacent-next{ text-align: left; align-items: flex-start; }
}

.article-related{
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.article-related-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-related-card{ display: block; color: var(--ink); }
.article-related-img{
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.article-related-card h3{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  margin: 8px 0 0;
}
.article-related-card:hover h3{ color: var(--accent); }

@media (max-width: 900px){
  .article-related-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .article-related-grid{ grid-template-columns: 1fr; }
  .article-meta{ row-gap: 12px; }
}
