/* ═══════════════════════════════════════════════════
   ALEXANDER SIFUENTES v3
   Estilo editorial / urbano — Naranja + Crema + Negro
   5 secciones con imagen de fondo independiente
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --orange:       #f05a00;
  --orange-dark:  #c94400;
  --orange-bright:#ff6b00;
  --cream:        #f0e8d8;
  --cream-dark:   #e0d0b8;
  --black:        #111111;
  --black-soft:   #1e1e1e;
  --white:        #ffffff;
  --grey:         #888888;

  --font-display:   'Oswald', cursive;
  --font-condensed: 'Oswald', sans-serif;
  --font-body:      'Barlow', sans-serif;
  --font-ui:        'Barlow Condensed', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  overflow-x: hidden;
}

/* ════════════════════════════════════════════
   SISTEMA DE FONDOS POR SECCIÓN
   ════════════════════════════════════════════ */
section, footer {
  position: relative;
  overflow: hidden;
}

/* Imagen de fondo de cada sección — proporcional, sin deformar */
.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Todo el contenido encima del fondo */
.section-content,
.navbar,
.hero-body,
.footer-inner {
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 80px 20px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--black);
}
.logo-surname {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--black);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ════════════════════════════════════════════
   SECCIÓN 1 — HERO
   Fondo: hero-bg.jpg (crema / beige texturado)
   ════════════════════════════════════════════ */
.s1-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--cream); /* fallback */
}

/* Overlay muy sutil para dar textura si la imagen es crema 
.s1-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240,232,216,0.1) 0%, rgba(240,232,216,0.25) 100%);
  z-index: 1;
  pointer-events: none;
}*/

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "left num photo";
  align-items: flex-end;
  padding: 20px 80px 0;
  gap: 0;
  position: relative;
}

/* ── Texto hero ── */
.hero-left {
  grid-area: left;
  padding-bottom: 60px;
  align-self: center;
}

.hero-breadcrumb {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--black);
  opacity: 0.6;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* ── Texto hero principal ── */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  line-height: 0.91;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 14px;
}

.hero-series {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0px;
  color: var(--black);
  opacity: 0.55;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 3px;
  padding: 13px 28px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

/* ── Número decorativo ── */
.hero-deco-num {
  grid-area: num;
  font-family: var(--font-display);
  font-size: clamp(12rem, 20vw, 22rem);
  line-height: 0.85;
  color: var(--orange);
  letter-spacing: -4px;
  align-self: flex-end;
  user-select: none;
  opacity: 0.95;
  /* Ligero overlap con la foto */
  position: relative;
  z-index: 1;
}

/* ── Foto del diseñador ── */
.hero-photo {
  grid-area: photo;
  align-self: flex-end;
  position: relative;
  z-index: 2;
  /* La foto sobresale del hero hacia abajo con overflow hidden en section */
  margin-bottom: 0;
}
.hero-photo-img {
  display: block;
  height: clamp(380px, 55vh, 580px);
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  /* Placeholder si no hay imagen */
  min-width: 200px;
}
/* Placeholder visual cuando no hay foto 
.hero-photo-img[src="foto-hero.png"] {*/
  /* background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
  border-left: 3px solid rgba(0,0,0,0.05);
}*/

/* ════════════════════════════════════════════
   SECCIÓN 2 — PORTAFOLIO
   Fondo: portfolio-bg.jpg (crema claro)
   ════════════════════════════════════════════ */
.s2-portfolio {
  padding: 60px 80px 70px;
  background: var(--cream-dark); /* fallback */
}

.s2-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0px;
  color: var(--black);
  margin-bottom: 36px;
}

.portfolio-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: start;
}

/* Card base */
.p-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.p-thumb {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.p-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Variantes de fondo por card */
.orange-dark   { background: var(--orange-dark); }
.orange-mid    { background: var(--orange); }
.cream-card    { background: var(--cream); border: 1px solid rgba(0,0,0,0.08); }
.orange-bright { background: var(--orange-bright); }
.black-card    { background: var(--black); }
.portrait-card { background: var(--cream-dark); border: 1px solid rgba(0,0,0,0.08); }

/* Tipografías en las cards */
.pt-line1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}
.pt-line2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}
.pt-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
  opacity: 0.9;
}
.pt-script {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  letter-spacing: 1px;
}
.pt-icon-c {
  width: 40px; height: 40px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  border-right-color: transparent;
  margin-top: 6px;
  transform: rotate(-30deg);
}
.pt-label-sm {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--white);
  opacity: 0.85;
}
.pt-concepts {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}
.pt-pro {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
}
.pt-pro-sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
}
.pt-portrait-bg {
  width: 60%;
  height: 65%;
  background: linear-gradient(180deg, #c8a882 0%, #a07850 100%);
  border-radius: 50% 50% 0 0;
  position: absolute;
  bottom: 0;
}
.pt-name-tag {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--black);
  text-align: center;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}

.p-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--black);
  text-align: center;
  line-height: 1.4;
  opacity: 0.8;
}

/* ════════════════════════════════════════════
   SECCIÓN 3 — ACERCA DE MÍ
   Fondo: about-bg.jpg (crema / beige)
   ════════════════════════════════════════════ */
.s3-about {
  padding: 70px 80px;
  background: var(--cream); /* fallback */
}

.about-inner {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  max-width: 1100px;
}

.about-text {
  flex: 1;
  padding-bottom: 10px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 5px;
  color: var(--black);
  margin-bottom: 18px;
}

.about-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--black);
  opacity: 0.75;
  max-width: 380px;
}

.about-photo-wrap {
  flex: 0 0 260px;
  align-self: flex-end;
}
.about-photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}
/* Placeholder cuando no hay foto */
.about-photo-img[src="foto-about.png"] {
  min-height: 280px;
  background: linear-gradient(180deg, var(--cream-dark) 0%, #c8a882 100%);
}

/* ════════════════════════════════════════════
   SECCIÓN 4 — CONTACTO
   Fondo: contact-bg.jpg (naranja sólido/texturado)
   ════════════════════════════════════════════ */
.s4-contact {
  padding: 70px 80px;
  background: #fd8740 ; /* var(--orange)fallback */
  text-align: center;
}

/* Overlay sutil para integrar imagen con el naranja 
.s4-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200,60,0,0.35);
  z-index: 1;
  pointer-events: none;
}*/

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 8px;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-info {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

.btn-contact {
  display: inline-block;
  margin-top: 20px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  padding: 14px 36px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-contact:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   SECCIÓN 5 — FOOTER
   Fondo: footer-bg.jpg (negro / muy oscuro)
   ════════════════════════════════════════════ */
.s5-footer {
  background: black; /* fallback */
  padding: 22px 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}



/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */


@media (max-width: 576px) {        
    .nav-logo {
        display: none;
    }
}



@media (max-width: 1100px) {
  .portfolio-row { grid-template-columns: repeat(3, 1fr); }
  .hero-deco-num { font-size: 14rem; }
}

@media (max-width: 900px) {
  .navbar { padding: 22px 36px 16px; }
  .nav-links { gap: 22px; }

  .hero-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "photo";
    padding: 20px 36px 0;
    text-align: left;
  }
  .hero-deco-num {
    display: none; /* oculto en móvil para no solapar */
  }
  .hero-photo { justify-self: center; }
  .hero-photo-img { height: 320px; }

  .s2-portfolio { padding: 50px 36px 60px; }
  .portfolio-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .s3-about { padding: 60px 36px; }
  .about-inner { flex-direction: column; gap: 30px; align-items: flex-start; }
  .about-photo-wrap { flex: none; width: 100%; max-width: 280px; }

  .s4-contact { padding: 60px 36px; }
  .s5-footer { padding: 20px 36px; }
}

@media (max-width: 600px) {
  .navbar {
    padding: 18px 24px 14px;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .nav-links { gap: 16px; flex-wrap: wrap; }

  .hero-body { padding: 16px 24px 0; }
  
  
  .hero-photo {
        justify-self: center;
    }
    .hero-photo-img {
        height: 260px;     /* puedes subir o bajar */
        max-width: 100%;
    }

  .hero-title { font-size: 3.2rem; }

  .s2-portfolio { padding: 40px 24px 50px; }
  .portfolio-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .s3-about { padding: 50px 24px; }
  .s4-contact { padding: 50px 24px; }
  .s5-footer { padding: 18px 24px; }
}
