/* ══════════════════════════════════════════════
   JAVIER PEZZOPANE — Estilos Principales
   Archivo: css/estilos.css
══════════════════════════════════════════════ */

/* ── VARIABLES DE COLOR ── */
:root {
  --cream:              #F9F3E8;
  --blush:              #F2C4C4;
  --sage:               #B5CCBA;
  --periwinkle:         #C2C9E8;
  --mauve:              #D6AECF;
  --gold:               #C9A96E;
  --brown:              #5C3D2E;
  --ink:                #2C2115;
  --light-sage:         #DFF0E2;
  --light-blush:        #FDE8E8;
  --light-periwinkle:   #E5E9F8;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── TEXTURA DE FONDO ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

p { margin-bottom: 1.1em; color: #4a3322; }

/* ══════════════════════════════
   HEADER / HERO
══════════════════════════════ */
header {
  text-align: center;
  padding: 60px 20px 30px;
  background: linear-gradient(180deg, #fbeee0 0%, var(--cream) 100%);
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.header-ornament {
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 12px;
  margin-bottom: 8px;
  display: block;
}

.header-subtitle {
  font-family: 'Pinyon Script', cursive;
  font-size: 22px;
  color: var(--mauve);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -1px;
  line-height: 1.1;
}

header h1 em {
  font-style: italic;
  color: var(--gold);
}

.header-tagline {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #7a5c45;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 400px;
  color: var(--gold);
  font-size: 18px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* ══════════════════════════════
   NAVEGACIÓN — MENÚ VINTAGE
══════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 0 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

nav ul li { position: relative; }

nav ul li a {
  display: block;
  padding: 16px 22px;
  color: var(--cream);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.25s, background 0.25s;
}

nav ul li a::after {
  content: '✦';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 9px;
  opacity: 0.5;
}
nav ul li:last-child a::after { display: none; }

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
}

/* ══════════════════════════════
   SECCIONES — GENERAL
══════════════════════════════ */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 70px 30px;
}

.section-label {
  font-family: 'Pinyon Script', cursive;
  font-size: 1.5rem;
  color: var(--mauve);
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--brown);
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.15;
}

.section-sep {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  border-radius: 2px;
  margin-bottom: 30px;
}

/* ══════════════════════════════
   SOBRE MÍ
══════════════════════════════ */
#sobre-mi {
  background: var(--light-blush);
  max-width: 100%;
  border-top: 1px solid #e8c9c9;
  border-bottom: 1px solid #e8c9c9;
}

#sobre-mi .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 70px 30px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}

.avatar-frame {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.avatar-frame .avatar-bg {
  width: 100%;
  padding-bottom: 100%;
  background: linear-gradient(135deg, var(--blush), var(--mauve));
  border-radius: 50%;
  border: 6px solid var(--gold);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(92,61,46,0.2);
}

.avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Para usar foto real: reemplaza .avatar-bg con una imagen */
.avatar-frame img {
  width: 100%;
  border-radius: 50%;
  border: 6px solid var(--gold);
  box-shadow: 0 8px 30px rgba(92,61,46,0.2);
  display: block;
}

.badge-vintage {
  display: inline-block;
  background: var(--brown);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-family: 'Libre Baskerville', serif;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.fact-chip {
  background: white;
  border: 1px solid var(--blush);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ══════════════════════════════
   PORTAFOLIO
══════════════════════════════ */
#portafolio { background: var(--cream); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: white;
  border-radius: 4px;
  border: 1px solid #e0d2c2;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 6px 12px 30px rgba(92,61,46,0.15);
}

.card-thumb {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.08) 100%);
}

/* Para imágenes reales en las tarjetas */
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body { padding: 18px 20px 22px; }

.card-tag {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brown);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.84rem;
  color: #7a6150;
  margin: 0;
  line-height: 1.5;
}

/* ══════════════════════════════
   REPARACIÓN DIGITAL
══════════════════════════════ */
#reparacion {
  background: var(--light-sage);
  max-width: 100%;
  border-top: 1px solid #b5ccb5;
  border-bottom: 1px solid #b5ccb5;
}

#reparacion .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 70px 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.service-item {
  background: white;
  border: 1.5px solid var(--sage);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.service-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.service-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--brown);
  font-weight: 700;
  margin-bottom: 6px;
}

.service-desc { font-size: 0.78rem; color: #5a7460; margin: 0; line-height: 1.4; }

/* ══════════════════════════════
   DATOS CURIOSOS
══════════════════════════════ */
#datos-curiosos { background: var(--cream); }

.curiosity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.curiosity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--light-periwinkle);
  border: 1px solid var(--periwinkle);
  border-radius: 6px;
  padding: 20px 22px;
}

.curiosity-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--periwinkle);
  font-weight: 700;
  line-height: 1;
  min-width: 44px;
  opacity: 0.7;
}

.curiosity-text {
  font-size: 0.88rem;
  color: #3a3a5c;
  line-height: 1.55;
  margin: 0;
}

/* ══════════════════════════════
   VACACIONES
══════════════════════════════ */
#vacaciones {
  background: linear-gradient(135deg, #fde8e8 0%, #e8edf8 100%);
  max-width: 100%;
  border-top: 1px solid #e0d0e8;
  border-bottom: 1px solid #e0d0e8;
}

#vacaciones .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 70px 30px;
}

.vacation-timeline {
  position: relative;
  padding-left: 40px;
}

.vacation-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--mauve), var(--periwinkle));
}

.vacation-entry {
  position: relative;
  margin-bottom: 36px;
}

.vacation-entry::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mauve);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--mauve);
}

.vacation-year {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mauve);
  font-weight: 700;
  margin-bottom: 4px;
}

.vacation-place {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--brown);
  font-weight: 700;
  margin-bottom: 6px;
}

.vacation-note { font-size: 0.86rem; color: #5a4055; margin: 0; }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
#contacto {
  background: var(--brown);
  max-width: 100%;
  color: var(--cream);
}

#contacto .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 70px 30px;
  text-align: center;
}

#contacto .section-label { color: var(--blush); }
#contacto .section-title { color: var(--cream); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--cream);
  text-decoration: none;
  padding: 12px 28px;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  border-radius: 3px;
  transition: background 0.25s, color 0.25s;
}

.contact-btn:hover {
  background: var(--gold);
  color: var(--brown);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--ink);
  color: #9a8870;
  text-align: center;
  padding: 28px 20px;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
}

footer span { color: var(--gold); }

/* ══════════════════════════════
   ANIMACIONES
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

header h1               { animation: fadeUp 0.9s ease 0.1s both; }
header .header-subtitle { animation: fadeUp 0.9s ease 0.25s both; }
header .header-tagline  { animation: fadeUp 0.9s ease 0.4s both; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 700px) {
  #sobre-mi .inner { grid-template-columns: 1fr; }
  .curiosity-list  { grid-template-columns: 1fr; }
  nav ul li a      { padding: 13px 14px; font-size: 0.74rem; }
}
