
/* === THEME (✏️ Colores y radios) — estilo "app" anterior === */
:root {
  --bg: #0b0b0b;         /* Fondo general */
  --fg: #f3f3f3;         /* Texto principal */
  --muted: #b5b5b5;      /* Texto secundario */
  --accent: #f3f3f3;     /* Enlaces/botones en monocromo */
  --line: rgba(255,255,255,0.08); /* Bordes sutiles */
  --maxw: 1100px;
  --radius: 18px;        /* Curvatura tarjetas/imagen */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* Enlaces (sin subrayado, look app) */
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px; }
.muted { color: var(--muted); }

/* ===== Header (estilo app con blur y sticky) ===== */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); background: rgba(11,11,11,0.6); border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: nowrap; }
.brand { font-family: Spectral, serif; font-weight: 700; letter-spacing: 0.5px; font-size: 18px; white-space: nowrap; }

/* Mantener menú en una sola línea (scroll horizontal si hace falta) */
.nav { display: flex; gap: 16px; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--fg); opacity: 0.86; }
.nav a:hover { opacity: 1; }

.lang { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.lang button { background: none; border: 1px solid rgba(255,255,255,0.15); color: var(--fg); padding: 6px 10px; border-radius: 999px; cursor: pointer; font: 600 13px/1 Inter, system-ui; letter-spacing: 0.2px; opacity: 0.85; }
.lang button[aria-current="true"] { border-color: rgba(255,255,255,0.5); opacity: 1; }

/* ===== Hero (estética app; mantenemos layout actual: imagen a la izquierda, texto a la derecha) ===== */
.hero { padding: 72px 0 18px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 36px; } }

.name { font-family: Spectral, serif; font-weight: 700; font-size: clamp(40px, 6.8vw, 72px); line-height: 1.05; margin: 4px 0 10px; letter-spacing: 0.2px; }
.roles { font-family: Spectral, serif; font-weight: 600; font-size: clamp(16px, 2.4vw, 24px); opacity: 0.92; }
.tagline { margin-top: 12px; max-width: 58ch; opacity: 0.95; }
.focus { margin-top: 8px; }

/* Imagen con marco sutil y feel app */
.hero-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,0.02); box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset; transition: transform .2s ease; }
.hero-img:hover { transform: translateY(-2px); }

/* Mobile: imagen más pequeña e integrada */
@media (max-width: 600px) {
  .hero { padding-top: 56px; }
  .hero-img { height: 220px; border-radius: 14px; }
  .name { font-size: clamp(32px, 9vw, 56px); }
}

/* ===== Botones estilo app (aplicado a .link-arrow para no tocar HTML) ===== */
.btn, .link-arrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.18); padding: 12px 16px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.2px; opacity: 0.95; text-decoration: none;
}
.btn:hover, .link-arrow:hover { transform: translateY(-1px); }
/* sin flecha añadida */
.link-arrow::after { content: ""; }

/* ===== Featured projects (tarjetas con fondo sutil) ===== */
.featured { padding: 36px 0 64px; }
.section-title { font-weight: 700; font-family: Spectral, serif; font-size: 20px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) { .grid { grid-template-columns: 1fr 1fr; gap: 18px; } }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 260px; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px; display: grid; gap: 8px; }
.card h3 { font-family: Spectral, serif; margin: 0; font-size: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

.all-projects { margin-top: 18px; display: inline-flex; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding: 20px 0 60px; color: var(--muted); font-size: 14px; }



/* ===== ABOUT PAGE ===== */
.page-title {
  font-family: Spectral, serif;
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 42px);
  margin: 6px 0 12px;
}

.about {
  padding: 40px 0 64px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr; 
    gap: 36px;
  }
}

.about-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}
@media (max-width: 640px) {
  .about-img { height: 240px; border-radius: 14px; }
}

.about-text {
  opacity: 0.95;
  max-width: 65ch;
}

.about-quote {
  margin: 14px 0 10px;
  padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,0.2);
  font-style: italic;
  color: var(--muted);
}

.about-cta { margin-top: 12px; }

/* About — CV link */
.about-cv {
  margin-top: 16px;
  font-size: 15px;
}
.about-cv .text-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.about-cv .text-link:hover {
  border-color: currentColor;
}

/* ===== PROJECTS ===== */
.page-title {
  font-family: Spectral, serif;
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 42px);
  margin: 6px 0 12px;
}

.projects { padding: 32px 0 64px; }
.projects-intro { margin-bottom: 16px; }

.projects-grid .card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}


/* ===== PROJECT1(VIDEOTEMPLATE) ===== */
.project { padding: 28px 0 64px; }


.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.yt-embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}


.project-header { margin: 18px 0 8px; }
.project-subtitle { color: var(--muted); font-style: italic; margin-top: 4px; }


.project-body .about-text { max-width: 72ch; margin-top: 10px; opacity: 0.95; }


.text-link {
  position: relative;
  display: inline-block;
  padding-right: 18px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  color: var(--fg);
}
.text-link::after {
  content: "→";
  position: absolute;
  right: 0; top: 0;
}
.text-link:hover { text-decoration-thickness: 2px; }
.project-links p { margin: 10px 0; }



/* ===== PROJECT GORILLA===== */
.video-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
  margin-bottom: 8px;
}

.video-card .video-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-card .video-link {
  position: relative;
  display: block;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--line);
  transition: transform .15s ease, background .15s ease;
}

.video-card:hover .play-badge {
  transform: translate(-50%,-50%) scale(1.05);
  background: rgba(0,0,0,0.65);
}

/* When replaced by iframe */
.video-card .yt-embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* ===== CONTACT ===== */

.contact-min { padding: 32px 0 64px; display: grid; gap: 16px; }
.contact-pitch { color: var(--muted); margin: -4px 0 6px; } 

.contact-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-two { grid-template-columns: auto 1fr; gap: 28px; }
}

.contact-label {
  font-family: Spectral, serif; font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  margin: 0 0 2px; 
}
.contact-value { font-size: 16px; margin: 0; }
.contact-block { display: grid; gap: 4px; } 

.map-chip {
  width: 240px;   
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.map-chip iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 899px) {
  .map-chip {
    width: 100%;
    max-width: 420px;
    height: 200px;
  }
}

.contact-right { display: grid; gap: 12px; }


html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
