/* ══════════════════════════════════════════
   CARLA — PORTFOLIO · style.css
   ══════════════════════════════════════════ */

:root {
  --rose: #c8536e;
  --rose-light: #f2c4cf;
  --rose-pale: #fdf0f3;
  --rose-mid: #e8cdd3;
  --ink: #1a0a0e;
  --ink-60: rgba(26, 10, 14, 0.6);
  --ink-30: rgba(26, 10, 14, 0.3);
  --muted: #7a5a62;
  --bg: #faf7f8;
  --white: #ffffff;
  --gold: #c9a84c;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(250, 247, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 83, 110, 0.12);
  transition: box-shadow .3s;
}

nav.scrolled { box-shadow: 0 4px 30px rgba(26, 10, 14, 0.07); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--rose);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--rose); }

.nav-cv {
  background: var(--rose) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 100px;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-weight: 500 !important;
  transition: background .2s, transform .2s !important;
}
.nav-cv:hover { background: #a83f58 !important; transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 3rem 4rem;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-text h1 em {
  color: var(--rose);
  font-style: italic;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 40ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--rose);
  color: white;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #a83f58; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--rose);
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--rose);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}
.btn-outline:hover { background: var(--rose); color: white; transform: translateY(-2px); }

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  width: 340px;
  height: 420px;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--rose-light);
  border-radius: 220px 220px 180px 180px;
  z-index: 0;
}

.hero-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 220px 220px 180px 180px;
  filter: grayscale(10%);
}

.hero-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  z-index: 2;
  background: var(--white);
  border: 1.5px solid var(--rose-light);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  white-space: nowrap;
}



/* ── SECTIONS ── */
section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 3rem;
  line-height: 1.15;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--rose-light), transparent);
  margin: 0 3rem;
  max-width: calc(1200px - 6rem);
}

/* ── ABOUT ── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

#about p {
  font-size: 1rem;
  color: #5a3d45;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* ── SKILLS ── */
.skills-section {
  background: var(--rose-pale);
  padding: 6rem 3rem;
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.skill-chip {
  background: white;
  border: 1.5px solid var(--rose-light);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.skill-chip:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-3px); }

.skill-chip .icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.skill-chip .icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ── EXPERIENCE / TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.timeline-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rose);
  padding-top: 0.3rem;
  padding-right: 0.25rem;
  text-align: right;
  line-height: 1.6;
}

.timeline-content {
  border-left: 2px solid var(--rose-light);
  padding-left: 1.75rem;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--rose);
  box-sizing: border-box;
}

.timeline-content h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Premio destacado — discreto */
.timeline-item.highlight .timeline-content {
  background: var(--rose-pale);
  border-left: 2px solid var(--rose);
  border-radius: 10px;
  padding: 0.85rem 1.1rem 0.85rem 1.75rem;
}

.timeline-item.highlight .timeline-content::before {
  background: var(--rose);
  border-color: var(--rose);
  left: -5px;
}

.timeline-item.highlight .timeline-content h3 {
  color: var(--rose);
  font-size: 0.95rem;
}

.timeline-item.highlight .timeline-content p {
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-item.highlight .timeline-year { color: var(--rose); }

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--rose-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(200, 83, 110, 0.12);
}

.project-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

/* Colores por proyecto */
.project-thumb.signofy  { background: linear-gradient(135deg, #fef6f8, #f9dce4); }
.project-thumb.byteme   { background: linear-gradient(135deg, var(--ink), #3d1a25); color: var(--gold); }
.project-thumb.valencia { background: linear-gradient(135deg, #f5ede8, #e8f4fd); }
.project-thumb.viajes   { background: linear-gradient(135deg, #fff8ed, var(--rose-pale)); }
.project-thumb.autolog  { background: linear-gradient(135deg, #f0f8ff, var(--rose-pale)); }

.project-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.project-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: var(--rose-pale);
  color: var(--rose);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.project-links { display: flex; gap: 0.75rem; }

.project-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose);
  text-decoration: none;
  border-bottom: 1.5px solid var(--rose-light);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.project-link:hover { border-color: var(--rose); text-decoration: none; }

/* ── CONTACT ── */
#contact { text-align: center; }

#contact .contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(200, 83, 110, 0.08);
  border: 1.5px solid var(--rose-light);
}

#contact p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--rose-light);
  border-radius: 50px;
  transition: all 0.2s;
}
.contact-link:hover { background: var(--rose); color: white; border-color: var(--rose); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--rose-light);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 1;
  transform: none;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-cv { display: none; }

  #hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-image { order: -1; }
  .hero-img-wrap { width: 260px; height: 320px; }
  .hero-text p { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-badge { display: none; }
  .award-pill { font-size: 0.72rem; padding: 0.45rem 0.9rem; }

  section { padding: 4rem 1.5rem; }
  .skills-section { padding: 4rem 1.5rem; }
  .divider { margin: 0 1.5rem; }

  #about .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .timeline-item { grid-template-columns: 80px 1fr; gap: 1rem; }
  .timeline-year { font-size: 0.9rem; }
  .timeline-item.highlight .timeline-content::before { left: -1.8rem; }

  .projects-grid { grid-template-columns: 1fr; }

  .contact-links { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
}