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

:root {
  /* ── Canva "Blue Light Pink Comedy" palette ── */
  --blue:        #3F50CD;
  --blue-deep:   #2E3CB0;
  --pink:        #F8D2D6;
  --pink-deep:   #F7B8BD;
  --pink-soft:   #FFE4E6;
  --coral:       #FF7A45;
  --coral-deep:  #E85A2A;
  --yellow:      #F0CB3A;
  --yellow-deep: #E3B81C;
  --red:         #E84A3F;
  --green:       #3CB874;
  --cream:       #FFF6F0;
  --ink:         #0F0F12;
  --ink-soft:    #2C2C30;

  --serif: 'DM Serif Display', 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--blue);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a, button, .project-card { cursor: pointer; }

/* ───────── NAV ───────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  transition: background .35s, padding .35s, color .35s;
}
nav.on-blue { color: #fff; }
nav.on-pink { color: var(--ink); }
nav.scrolled {
  padding: 12px 48px;
  background: rgba(63, 80, 205, 0.92);
  backdrop-filter: blur(14px);
  color: #fff;
}
nav.scrolled.on-pink {
  background: rgba(248, 210, 214, 0.94);
  color: var(--ink);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: currentColor;
  text-decoration: none;
  font-style: italic;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity .5s;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: currentColor;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  opacity: 0.85;
  transition: opacity .25s;
}
.nav-links a:not(.lang-switch):hover { opacity: 1; }
.nav-links a:not(.lang-switch)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 2px;
  background: currentColor;
  transition: right .3s;
}
.nav-links a:not(.lang-switch):hover::after { right: 0; }

.nav-right {
  display: none;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 9991;
}
.nav-contact-btn {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: currentColor;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity .25s;
  white-space: nowrap;
}
.nav-contact-btn:hover { opacity: 1; }

.lang-switch {
  border: 1.5px solid currentColor;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: background .25s, color .25s;
}
nav.on-blue .lang-switch:hover,
nav.scrolled:not(.on-pink) .lang-switch:hover {
  background: #fff; color: var(--blue);
}
nav.on-pink .lang-switch:hover,
nav.scrolled.on-pink .lang-switch:hover {
  background: var(--ink); color: var(--pink);
}

.nav-hamburger {
  display: none;
  background: none; border: none; padding: 8px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 9991;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  background: var(--blue);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 180px;
  text-align: center;
  overflow: hidden;
}
.hero-asterisk {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeIn .8s .2s forwards;
  user-select: none;
  position: relative;
  z-index: 2;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--pink);
  opacity: 0;
  animation: fadeDown 1s .35s forwards;
  max-width: 1200px;
  position: relative;
  z-index: 2;
}
.hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  color: #fff;
  margin-top: 4px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
  position: relative;
  z-index: 2;
}
.hero-arrow {
  width: 44px; height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  margin: clamp(36px, 6vh, 70px) 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s, background .25s;
  opacity: 0;
  animation: fadeIn .8s .8s forwards;
  text-decoration: none;
  color: #fff;
  position: relative;
  z-index: 2;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(4px);
}
.hero-arrow::after {
  content: '↓';
  font-size: 1.3rem;
  line-height: 1;
}
.hero-quote {
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
  max-width: 560px;
  font-style: italic;
  font-weight: 400;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.confetti {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-radius: 4px;
  opacity: 0;
  animation: confettiIn 1.2s ease-out forwards;
}
@keyframes confettiIn {
  0%   { opacity: 0; transform: translateY(-40px) rotate(0deg); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }
}

/* Curved bottom wave to pink section */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: -5%;
  width: 110%;
  height: 12vw;
  max-height: 160px;
  background: var(--pink);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 3;
}

/* ───────── PINK SECTION ───────── */
.pink-bg, #proyectos {
  background: var(--pink);
  color: var(--ink);
  position: relative;
}

#proyectos {
  padding: 30px 56px 80px;
}
.projects-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.projects-title-block { padding-top: 40px; }
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-block;
}
.projects-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.projects-title-arrow {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
}
.projects-tagline {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 480px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.project-card {
  position: relative;
  background: transparent;
  transition: transform .3s;
}
.project-card:hover { transform: translateY(-4px); }

.project-img-wrap {
  position: relative;
  aspect-ratio: 4/4.2;
  /* arch shape: rounded top, flat bottom */
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-deep), var(--coral) 90%);
}
.project-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.project-card:hover .project-img { transform: scale(1.06); }

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.project-card:hover .play-overlay { opacity: 1; }
.play-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.35);
}
.play-circle svg { width: 22px; height: 22px; fill: var(--coral); margin-left: 3px; }
@media (pointer: coarse) { .play-overlay { opacity: 1; } }

.project-info { padding: 18px 4px 0; }
.project-type {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 600;
  opacity: 0.7;
}
.project-title {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 6px;
}
.project-title .year {
  color: var(--coral);
  font-weight: 700;
  margin-left: 4px;
  white-space: nowrap;
}
.project-year {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
  opacity: 0.75;
}

.flores-negras-tba::after {
  content: 'TBA';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: #fff;
  letter-spacing: 0.18em;
}

.btn-show-more {
  display: block;
  margin: 64px auto 0;
  padding: 16px 40px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.btn-show-more:hover {
  background: var(--coral);
  transform: translateY(-2px);
}

.projects-extra { margin-top: 56px; }

/* ───────── ABOUT (yellow) ───────── */
#sobre-mi {
  background: var(--yellow);
  color: var(--ink);
  padding: 140px 56px 120px;
  position: relative;
  overflow: hidden;
}
/* pink curve transition from proyectos above */
#sobre-mi::before {
  content: '';
  position: absolute;
  top: -1px; left: -5%;
  width: 110%;
  height: 8vw;
  max-height: 90px;
  background: var(--pink);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 460px;
  width: 100%;
  justify-self: end;
  border-radius: 50% / 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--coral), var(--blue));
}
.about-photo-inner {
  position: absolute;
  inset: 0;
  background: url('Syl.PNG') center/cover;
  z-index: 1;
}
.about-photo::before {
  content: 'foto';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.6);
  z-index: 0;
}

.about-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  margin-top: 8px;
}
.about-headline .blue  { color: var(--blue); display: block; }
.about-headline .coral { color: var(--coral); display: block; }

.about-text p {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.7;
  max-width: 600px;
}
.about-text p strong { font-weight: 700; color: var(--ink); }
.about-text p em {
  font-style: italic;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.06em;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  max-width: 600px;
}
.skill-tag {
  padding: 7px 16px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
  letter-spacing: 0.04em;
}
.skill-tag:hover                  { background: var(--ink);   color: var(--pink); }
.skill-tag:nth-child(3n+1):hover  { background: var(--coral); color: #fff; border-color: var(--coral); }
.skill-tag:nth-child(3n+2):hover  { background: var(--blue);  color: #fff; border-color: var(--blue); }

.imdb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1.5px dashed rgba(15,15,18,0.22);
  max-width: 600px;
}
.imdb-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.imdb-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid var(--coral);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.imdb-link:hover {
  color: var(--coral);
}
.imdb-link:hover .imdb-arrow {
  transform: translateX(6px);
}
.imdb-arrow {
  color: var(--coral);
  font-style: normal;
  transition: transform 0.25s ease;
}

/* ───────── CONTACTO ───────── */
.contact-section {
  background: var(--blue);
  color: #fff;
  padding: 130px 56px 100px;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -1px; left: -5%;
  width: 110%;
  height: 10vw;
  max-height: 120px;
  background: var(--yellow);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.contact-content {
  max-width: 720px;
  margin: 30px auto 0;
  position: relative;
  z-index: 2;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 5.4rem);
  line-height: 1;
  color: var(--pink);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  text-align: center;
}
.contact-title em {
  font-style: italic;
  color: #fff;
  display: block;
}
.contact-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 56px;
  max-width: 480px;
  text-align: center;
  line-height: 1.65;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 14px 18px;
  outline: none;
  transition: border-color .25s, background .25s;
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--pink);
  background: rgba(255,255,255,0.18);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}
.form-group select option { background: var(--blue-deep); color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.btn-submit {
  align-self: center;
  padding: 16px 48px;
  background: var(--coral);
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  transition: background .25s, transform .25s, color .25s;
  margin-top: 12px;
}
.btn-submit:hover { background: var(--pink); color: var(--ink); transform: translateY(-2px); }

/* ───────── FOOTER ───────── */
footer {
  background: var(--blue);
  color: rgba(255,255,255,0.7);
  padding: 32px 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-left {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--pink);
}
.footer-right a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1.5px solid var(--coral);
  padding-bottom: 1px;
  transition: color .25s;
}
.footer-right a:hover { color: var(--coral); }

/* ───────── VIDEO MODAL ───────── */
.video-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,15,18,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.video-modal-overlay.open { display: flex; }
.video-modal {
  position: relative;
  width: min(900px, 96vw);
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
}
.video-modal iframe { width: 100%; height: 100%; border: none; }
.video-modal-close {
  position: absolute;
  top: -42px; right: 0;
  background: none; border: none;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  padding: 6px;
}
.video-modal-close:hover { color: var(--coral); }
.modal-loader {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  z-index: 1;
}
.modal-loader::after {
  content: '···';
  font-family: var(--sans);
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  color: var(--pink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.mobile-menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(63,80,205,0.95);
  backdrop-filter: blur(14px);
  z-index: 9989;
}
.mobile-menu-overlay.open { display: block; }

/* ───────── ANIMATIONS ───────── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.project-card, .about-grid, .bio-block { opacity: 1 !important; transform: none !important; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 980px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { justify-self: center; max-width: 360px; }
  .projects-header { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  nav, nav.scrolled { padding: 18px 22px; }
  .hero { padding: 110px 20px 140px; min-height: 88vh; }
  #proyectos, #sobre-mi, .bio-section, .contact-section { padding-left: 22px; padding-right: 22px; }
  footer { padding: 28px 22px 36px; flex-direction: column; gap: 12px; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav-hamburger { display: flex; }
  .nav-right { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-end;
    padding: 88px 24px 0;
    gap: 28px;
    z-index: 9990;
    background: transparent;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; color: #fff !important; }
  .lang-switch { color: #fff !important; border-color: #fff !important; }

  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .hero-name { font-size: 2.8rem; }
  .hero-role { font-size: 1.2rem; }
  .projects-title { font-size: 2.4rem; }
  .about-headline { font-size: 2.2rem; }
  .contact-title { font-size: 2.4rem; }
  .bio-block-title { font-size: 2rem; }
}
