:root{
  --bg: #0f0f10;
  --card: rgba(20,20,22,0.75);
  --soft: rgba(255,255,255,0.08);
  --text: #eaeaea;
  --muted: #b6b6b6;
  --brand: #ffc107; /* iTierra yellow vibe */
  --brand-700: #e0a800;
}

/* Fondo de video */
.video-background{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.video-background video{
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.15);
  pointer-events: none; /* evita pausas por taps */
}

/* Layout base */
*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* HERO */
.hero{
  text-align: center;
  margin-top: 1rem;
}
.perfil{
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center; /* centra tu cara */
  border: 2px solid var(--soft);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero h1{
  margin: 0.75rem 0 0.25rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: clamp(1.35rem, 3.2vw, 2.4rem);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.sub{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
}

/* Secciones */
section{ margin-top: 2.5rem; }
section h2{
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .3px;
  margin: 0 0 .75rem;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}

/* About */
.about p{
  max-width: 900px;
  margin: 0 auto;
  color: #e7e7e7;
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
}

/* Videos grid */
.grid{
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 1024px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
}
.video-card{
  background: var(--card);
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: .65rem .65rem .9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(5px);
}
.video-card h3{
  margin: 0 0 .35rem;
  font-size: clamp(.85rem, 1.2vw, .95rem);
  font-weight: 700;
  color: #f5f5f5;
}
.video-card video{
  width: 100%;
  height: 420px;
  max-height: 52vh;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Portafolio */
.portfolio .cards{
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 900px){
  .portfolio .cards{ grid-template-columns: 1fr; }
}
.card{
  background: var(--card);
  border: 1px solid var(--soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0,0,0,.34);
}
.card img{
  width: 100%;
  height: 180px;          /* vertical u horizontal, recortamos centrado */
  object-fit: cover;
  object-position: center;
  display: block;
}
.card-body{
  padding: 1rem;
  display: grid;
  gap: .65rem;
}
.card-body h3{
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Botón “Ver brochure” (transparente premium) */
.btn-outline{
  justify-self: start;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1.8px solid var(--brand);
  color: var(--brand);
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: inset 0 0 0 0 rgba(255,193,7,0);
}
.btn-outline:hover{
  background: var(--brand);
  color: #1b1b1b;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255,193,7,.25);
}

/* Agenda */
.agenda{
  text-align: center;
}
.agenda-sub{
  color: var(--muted);
  margin-top: .25rem;
  margin-bottom: 1rem;
}
.cta-row{
  display: inline-flex;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-cta{
  appearance: none;
  border: 0;
  background: linear-gradient(180deg, #ffd54d, #ffc107);
  color:#1b1b1b;
  text-decoration: none;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
  box-shadow: 0 12px 24px rgba(255,193,7,.25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-cta:hover{ transform: translateY(-1px); box-shadow: 0 16px 28px rgba(255,193,7,.3); filter: saturate(1.05); }
.btn-cta:active{ transform: translateY(0); box-shadow: 0 10px 20px rgba(255,193,7,.22); }

/* Footer */
footer{
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
footer a{ color: var(--text); text-decoration: none; }
footer a:hover{ text-decoration: underline; }
.copy{ margin-top: .25rem; font-size: .85rem; }

/* Tipos y tamaños más grandes en DESKTOP sin afectar móvil */
@media (min-width: 1200px){
  .hero h1{ font-size: 2.6rem; }
  .about p{ font-size: 1.08rem; }
  section h2{ font-size: 1.7rem; }
  .card img{ height: 200px; }
}


/* Centrar botones y colocar texto blanco debajo */
.agenda .cta-row{
  justify-content: center;
}
.agenda-note{
  margin-top: 0.8rem;
  text-align: center;
  color: var(--muted);
}

/* Aumentar tamaño del texto "Sobre mí" solo en desktop */
@media (min-width: 1024px){
  .about p{
    font-size: 1.15rem; /* antes 1.05 aprox */
  }
}
