/* ============================================
   PORTFOLIO RUSMERI CÁRDENAS
   styles.css — Todos los estilos
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── VARIABLES ── */
:root {
  --navy: #1e3a6e;
  --navy-mid: #2d5082;
  --cream: #f5f0e8;
  --cream-dark: hsl(39, 28%, 90%);
  --cream-light: #faf7f2;
  --blue-soft: #c8d9f0;
  --blue-pastel: #e4edf8;
  --text-dark: #1a2a45;
  --text-mid: #4a5f7a;
  --text-light: #8a9bb5;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text-dark); }

/* ── NAV ── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky; top: 0; z-index: 100;
  /* Necesario para anclar el dropdown al nav */
  flex-wrap: wrap;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-style: italic; font-weight: 600;
  color: var(--navy); letter-spacing: 0.5px;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 500;
  color: var(--text-mid); text-decoration: none;
  letter-spacing: 0.4px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

/* ── HAMBURGER TOGGLE ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none; cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown – fluye dentro del <nav> flex wrapping */
.nav-mobile-menu {
  display: none;
  flex-basis: 100%;          /* ocupa todo el ancho de la nav */
  flex-direction: column;
  align-items: stretch;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  box-shadow: 0 8px 24px rgba(30,58,110,0.10);
  margin: 0 -2.5rem -1rem;   /* compensa el padding del nav */
  padding: 0.5rem 0 1rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 17px; font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.85rem 2.5rem;
  border-bottom: 1px solid var(--cream-dark);
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { background: var(--cream-dark); color: var(--navy); }
.nav-mobile-menu .nav-cta-mobile {
  margin: 0.75rem 2.5rem 0;
  background: var(--navy); color: var(--cream);
  font-size: 15px; font-weight: 500;
  padding: 10px 22px; border-radius: 999px;
  text-align: center; display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-mobile-menu .nav-cta-mobile:hover { opacity: 0.85; border-bottom: none; background: var(--navy); }
.nav-cta {
  background: var(--navy); color: var(--cream);
  font-size: 14px; font-weight: 500;
  padding: 9px 22px; border-radius: 999px;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none; display: inline-block;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
}
.hero-left {
  background: var(--navy);
  padding: 3.5rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-left::before {
  content: 'R';
  font-family: 'Cormorant Garamond', serif;
  font-size: 320px; font-style: italic; font-weight: 600;
  color: rgba(255,255,255,0.04);
  position: absolute; right: -20px; bottom: -60px;
  line-height: 1; pointer-events: none; user-select: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,240,232,0.12);
  color: var(--cream);
  font-size: 10px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 1.5rem; width: fit-content;
  border: 1px solid rgba(245,240,232,0.2);
}
.hero-left h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2rem; font-weight: 600;
  color: var(--cream); line-height: 1.1; margin-bottom: 0.3rem;
}
.hero-left h1 em { font-style: italic; color: var(--blue-soft); }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-style: italic;
  color: rgba(245,240,232,0.6); margin-bottom: 1rem;
}
.hero-left p {
  color: rgba(245,240,232,0.65);
  font-size: 16px; line-height: 1.8;
  margin-bottom: 2rem; max-width: 420px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── BOTONES ── */
.btn-cream {
  background: var(--cream); color: var(--navy);
  font-size: 12px; font-weight: 500;
  padding: 10px 22px; border-radius: 999px;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block;
  transition: opacity 0.2s;
}
.btn-cream:hover { opacity: 0.85; }
.btn-outline {
  background: transparent; color: var(--cream);
  font-size: 12px; font-weight: 400;
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(245,240,232,0.3);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: rgba(245,240,232,0.6); }
.btn-navy {
  background: var(--navy); color: var(--cream);
  font-size: 12px; font-weight: 500;
  padding: 10px 22px; border-radius: 999px;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block;
  transition: opacity 0.2s;
}
.btn-navy:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent; color: var(--navy);
  font-size: 12px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--navy-mid); cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block;
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(30,58,110,0.06); }

/* ── HERO RIGHT ── */
.hero-right {
  background: var(--cream-dark);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}
.info-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: 12px; padding: 1rem 1.2rem;
}
.info-card-label {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 4px;
}
.info-card-value {
  font-size: 13px; font-weight: 500; color: var(--text-dark);
}
.info-card-value.script {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-style: italic; font-weight: 600;
}
.tags-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mini-tag {
  font-size: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-pastel); color: var(--navy-mid); font-weight: 400;
}

/* ── SKILLS STRIP ── */
.skills-strip {
  background: var(--navy);
  padding: 0.9rem 2.5rem;
  display: flex; gap: 0; overflow-x: auto; align-items: center;
}
.skills-strip::-webkit-scrollbar { display: none; }
.skill-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0 1.4rem; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; color: rgba(245,240,232,0.7);
  font-weight: 400;
}
.skill-item:first-child { padding-left: 0; }
.skill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-soft); flex-shrink: 0; }

/* ── SECCIONES ── */
.section { padding: 2.5rem 2.5rem; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 1.5rem;
}
.section-label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--navy-mid); margin-bottom: 4px; font-weight: 500;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 600; color: var(--text-dark);
}

/* ── GRID PROYECTOS (estilo Pinterest) ── */
.pinterest-grid { columns: 3; gap: 10px; }
.project-card {
  break-inside: avoid; margin-bottom: 10px;
  border-radius: 14px; overflow: hidden;
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(30,58,110,0.12);
}
.project-thumb {
  width: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 36px; position: relative;
  /*
    PARA AGREGAR TUS FOTOS:
    <img src="imagen.jpg" style="width:100%; height:100%; object-fit:cover;">
    PARA VIDEO:
    <video src="video.mp4" autoplay muted loop style="width:100%; height:100%; object-fit:cover;"></video>
  */
}
.project-thumb.h-sm { height: 120px; }
.project-thumb.h-md { height: 170px; }
.project-thumb.h-lg { height: 210px; }
.project-info { padding: 14px 16px 16px; }
.project-brand {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 3px;
}
.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 6px; line-height: 1.2;
}
.project-desc {
  font-size: 13px; color: var(--text-mid);
  line-height: 1.6; margin-bottom: 8px;
}
.project-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 10px; padding: 3px 9px; border-radius: 999px; }
.tag-blue { background: var(--blue-pastel); color: var(--navy-mid); }
.tag-navy { background: var(--navy); color: var(--blue-soft); }
.tag-cream { background: var(--cream-dark); color: var(--text-mid); }

/* ── EXPERIENCIA ── */
.exp-section {
  background: var(--cream-dark);
  padding: 2.5rem 2.5rem;
  border-top: 1px solid #ddd8ce;
}
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.exp-card {
  background: var(--cream-light);
  border: 1px solid #ddd8ce;
  border-radius: 14px; padding: 1.3rem;
}
.exp-date {
  font-size: 11px; letter-spacing: 1px; color: var(--text-light);
  text-transform: uppercase; margin-bottom: 6px;
}
.exp-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--navy);
  margin-bottom: 2px;
}
.exp-company {
  font-size: 13px; color: var(--text-mid);
  margin-bottom: 10px; font-style: italic;
}
.exp-clients { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.client-chip {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-pastel); color: var(--navy-mid);
}
.exp-bullets { list-style: none; }
.exp-bullets li {
  font-size: 13px; color: var(--text-mid); line-height: 1.7;
  padding-left: 14px; position: relative; margin-bottom: 5px;
}
.exp-bullets li::before { content: '–'; position: absolute; left: 0; color: var(--navy-mid); }

/* ── SOBRE MÍ ── */
.about-section {
  background: var(--navy);
  padding: 3rem 2.5rem;
  display: grid; grid-template-columns: auto 1fr;
  gap: 3rem; align-items: center;
}
.about-photo {
  width: 180px; height: 240px;
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}
.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  display: block;
}
.about-photo-emoji { font-size: 52px; }
.about-photo-label {
  font-size: 11px; color: rgba(255,255,255,0.4);
  text-align: center; padding: 0 12px; line-height: 1.4;
}
.about-tag {
  display: inline-block;
  background: rgba(245,240,232,0.1); color: var(--cream);
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 1rem;
  border: 1px solid rgba(245,240,232,0.15);
}
.about-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem; font-weight: 600;
  color: var(--cream); line-height: 1.15; margin-bottom: 0.8rem;
}
.about-content h2 em { font-style: italic; color: var(--blue-soft); }
.about-content p {
  color: rgba(245,240,232,0.65); font-size: 15px;
  line-height: 1.85; margin-bottom: 1.5rem; max-width: 520px;
}
.about-stats { display: flex; gap: 2.5rem; margin-bottom: 1.5rem; }
.astat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 600; color: var(--cream);
}
.astat-label { font-size: 13px; color: rgba(245,240,232,0.45); margin-top: 2px; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-pill {
  font-size: 12px; padding: 5px 13px; border-radius: 999px;
  background: rgba(200,217,240,0.15); color: var(--blue-soft);
  border: 1px solid rgba(200,217,240,0.2);
}

/* ── CONTACTO ── */
.contact-strip {
  background: var(--cream-dark);
  padding: 2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #ddd8ce;
}
.contact-left h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--navy);
}
.contact-left p { font-size: 14px; color: var(--text-mid); margin-top: 4px; }
.contact-right { display: flex; gap: 8px; align-items: center; }

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  padding: 1rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
footer span { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-style: italic; color: rgba(245,240,232,0.4);
}

/* ── ONDAS ── */
.wave-divider {
  display: block; width: 100%;
  overflow: hidden; line-height: 0;
  margin: 0; padding: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* ── ANIMACIONES DE SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    position: sticky; top: 0; z-index: 100;
  }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Skills strip → static grid on mobile */
  .skills-strip {
    overflow-x: hidden;
    flex-wrap: wrap;
    gap: 0;
    padding: 1.2rem 1.5rem;
    justify-content: flex-start;
  }
  .skill-item {
    white-space: normal;
    padding: 0.45rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 50%;
    font-size: 13px;
  }
  .skill-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .skill-item:nth-last-child(-n+2) { border-bottom: none; }

  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 2.5rem 1.5rem; }
  .hero-left h1 { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-left p { font-size: 15px; }
  .pinterest-grid { columns: 2; }
  .exp-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .about-photo { width: 100%; height: 220px; }
  .contact-strip { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .section { padding: 2rem 1.5rem; }
  .exp-section { padding: 2rem 1.5rem; }
  .section-title { font-size: 2rem; }
  .about-content h2 { font-size: 2.4rem; }
}
@media (max-width: 480px) {
  .pinterest-grid { columns: 1; }
  .skill-item { width: 100%; border-right: none !important; }
  .skill-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .skill-item:last-child { border-bottom: none; }
}

/* ══════════════════════════════════
   SISTEMA DE PÁGINAS DE PROYECTO
══════════════════════════════════ */

/* CTA en las tarjetas */
.project-cta {
  font-size: 11px;
  font-weight: 500;
  color: var(--navy-mid);
  margin-top: 10px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.project-card:hover .project-cta {
  color: var(--navy);
}

/* Página de proyecto */
.project-page {
  min-height: 100vh;
  background: var(--cream);
  animation: fadeInPage 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero de la página de proyecto */
.proj-hero {
  position: relative;
  padding: 2rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
  min-height: 280px;
  align-items: end;
}

.btn-back {
  grid-column: 1 / -1;
  align-self: start;
  background: transparent;
  color: rgba(245,240,232,0.8);
  border: 1px solid rgba(245,240,232,0.25);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.2px;
}
.btn-back:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.proj-hero-content {
  align-self: end;
}

.proj-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-bottom: 8px;
  font-weight: 500;
}

.proj-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.proj-hero h1 em {
  font-style: italic;
  color: var(--blue-soft);
}

.proj-hero-thumb {
  font-size: 72px;
  align-self: end;
  opacity: 0.6;
  padding-bottom: 0.3rem;
}

/* Cuerpo de la página */
.proj-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.proj-section {
  margin-bottom: 2.5rem;
}

.proj-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 0.4rem;
}

.proj-section p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* Galería */
.proj-gallery {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.proj-gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.gallery-placeholder {
  grid-column: 1 / -1;
  background: var(--cream-dark);
  border: 2px dashed var(--blue-soft);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.proj-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

/* Responsive proyecto */
@media (max-width: 768px) {
  .proj-hero {
    padding: 1.5rem;
    grid-template-columns: 1fr;
    min-height: 240px;
  }
  .proj-hero-thumb { display: none; }
  .proj-hero h1 { font-size: 2rem; }
  .proj-body { padding: 2rem 1.5rem; }
}
