/* ============================================
   BÁRBARA CARRASCO — Portfolio
   Paleta y tipografía
   ============================================ */
:root {
  --rosa: #FF8FE0;
  --rosa-suave: #FFA5E8;
  --rosa-claro-bg: #FFE8F8;
  --gris-header: #E6E4E5;
  --gris-bg: #ECEAEB;
  --negro: #0B0B0B;
  --blanco: #ffffff;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--negro);
  background: var(--gris-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(230, 228, 229, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 56px; width: auto; }

.nav-desktop { display: flex; gap: 44px; }
.nav-desktop a {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--negro);
  padding: 6px 2px;
  position: relative;
  transition: color .2s;
}
.nav-desktop a:hover { color: #5a005a; }
.nav-desktop a.is-active { color: var(--negro); }
.nav-desktop a.is-active::after,
.nav-desktop a:hover::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--negro);
}

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 28px; height: 3px;
  background: var(--negro);
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--gris-header);
  padding: 12px 32px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--negro);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--rosa);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-hola {
  font-size: clamp(32px, 3vw, 52px);
  font-weight: 500;
  margin: 0 0 0;
  letter-spacing: -0.5px;
}

.hero-name {
  font-size: clamp(70px, 9vw, 150px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -3px;
  margin: 6px 0 14px;
}

.hero-role {
  font-size: clamp(30px, 2.7vw, 48px);
  font-weight: 500;
  margin: 0 0 36px;
  letter-spacing: -0.5px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 18px 34px;
  background: var(--blanco);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 28px);
  color: var(--negro);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.cta-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--negro);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-flor {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-flor img {
  width: min(680px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.25));
}

/* ============================================
   SOBRE MÍ
   ============================================ */
.sobre-mi {
  background: var(--gris-bg);
  padding: 100px 0;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-title-pink {
  font-weight: 900;
  font-size: clamp(48px, 6.2vw, 104px);
  line-height: 1;
  color: var(--rosa-suave);
  -webkit-text-stroke: 0;
  text-shadow:
    0 4px 0 rgba(0,0,0,0.05),
    0 6px 14px rgba(255, 143, 224, 0.25);
  letter-spacing: -2px;
  margin: 0 0 36px;
}
.section-title-pink--left { text-align: left; }

.sobre-text p {
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 500;
  color: var(--negro);
  margin: 0 0 18px;
  max-width: 640px;
}
.sobre-text strong { font-weight: 800; }

.sobre-photo {
  display: flex;
  justify-content: center;
}
.sobre-photo img {
  width: 460px;
  height: 460px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rosa);
  box-shadow: 0 0 0 20px var(--rosa), 0 22px 44px rgba(0,0,0,0.18);
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
  background: var(--rosa);
  padding: 100px 0;
}

.section-title-white {
  font-weight: 900;
  font-size: clamp(56px, 8vw, 150px);
  line-height: 1;
  color: var(--blanco);
  text-shadow:
    0 6px 0 rgba(0,0,0,0.08),
    0 14px 30px rgba(0,0,0,0.16);
  letter-spacing: -3px;
  margin: 0 0 60px;
}

.serv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 60px;
}
.serv-item {
  display: flex;
  flex-direction: column;
}
.serv-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.flor-bullet {
  width: 52px; height: 52px;
  flex-shrink: 0;
}
.serv-item h3 {
  font-weight: 900;
  font-size: clamp(23px, 2.3vw, 34px);
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
}
.serv-desc {
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 500;
  margin: 0;
  max-width: 480px;
  padding-left: 70px;
}
@media (max-width: 720px) {
  .serv-desc { padding-left: 0; }
}

/* ============================================
   PROYECTOS / TRABAJOS — Carrusel
   ============================================ */
.proyectos {
  background: var(--gris-bg);
  padding: 100px 0;
}

.carousel {
  position: relative;
  padding-bottom: 56px;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
}
.carousel-track {
  display: flex;
  gap: 28px;
  transition: transform .45s cubic-bezier(.4,.2,.2,1);
  will-change: transform;
}
.carousel-card {
  margin: 0;
  flex: 0 0 calc((100% - 56px) / 3);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
  aspect-ratio: 1 / 1;
}
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 28px);
  width: 56px; height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--negro);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
  transition: transform .2s;
  z-index: 2;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.06); transform-origin: center; }
.carousel-arrow--prev { left: -24px; transform: translateY(-50%); }
.carousel-arrow--next { right: -24px; transform: translateY(-50%); }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.carousel-dots {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.carousel-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--negro);
  cursor: pointer;
  transition: background .2s;
}
.carousel-dot.is-active { background: var(--negro); }

/* ============================================
   CONTACTO
   ============================================ */
.contacto {
  background: var(--rosa);
  padding: 90px 0 0;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
}
.contacto-info { min-width: 0; }
.contacto-info .section-title-white {
  font-size: clamp(42px, 5.2vw, 88px);
  margin-bottom: 24px;
  white-space: nowrap;
}
.contacto-sub {
  font-size: clamp(19px, 1.55vw, 26px);
  font-weight: 500;
  margin: 0 0 30px;
}
.contacto-sub strong { font-weight: 900; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: clamp(17px, 1.35vw, 22px);
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--negro);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-line span:last-child { font-weight: 600; }

.contacto-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}
.contacto-form > * { min-width: 0; }
.contacto-form input,
.contacto-form textarea {
  background: var(--blanco);
  border: none;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--negro);
  padding: 22px 24px;
  border-radius: 8px;
  outline: none;
  transition: box-shadow .2s;
}
.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: var(--negro);
  font-weight: 800;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.18);
}
.contacto-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 150px;
}
.btn-enviar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 20px 36px;
  background: var(--negro);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform .2s;
}
.btn-enviar:hover { transform: translateY(-2px); }
.enviar-arrow {
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-status {
  grid-column: 1 / -1;
  font-weight: 600;
  margin: 4px 0 0;
  min-height: 1.2em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--negro);
  padding: 28px 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-footer img {
  height: 58px;
  width: auto;
  filter: invert(1);
}
.socials { display: flex; gap: 14px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 8px;
  background: transparent;
  transition: transform .2s, background .2s;
}
.social-link:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .sobre-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .serv-grid { gap: 40px; }
  .carousel-card { flex: 0 0 calc((100% - 28px) / 2); }
  .carousel-arrow--prev { left: 0; }
  .carousel-arrow--next { right: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }

  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .header-inner { padding: 12px 22px; }
  .logo img { height: 44px; }

  /* HERO */
  .hero { padding: 50px 0 60px; }
  .hero-name { letter-spacing: -2px; }
  .hero-flor img { width: min(320px, 80%); }

  /* SOBRE MÍ */
  .sobre-mi { padding: 60px 0; }
  .sobre-photo img {
    width: 280px; height: 280px;
    box-shadow: 0 0 0 12px var(--rosa), 0 16px 30px rgba(0,0,0,0.18);
  }

  /* SERVICIOS */
  .servicios { padding: 60px 0; }
  .serv-grid { grid-template-columns: 1fr; gap: 36px; }
  .flor-bullet { width: 48px; height: 48px; }

  /* PROYECTOS */
  .proyectos { padding: 60px 0; }
  .carousel-card { flex: 0 0 100%; }
  .carousel-arrow { width: 46px; height: 46px; }
  .carousel-arrow--prev { left: 6px; }
  .carousel-arrow--next { right: 6px; }

  /* CONTACTO */
  .contacto { padding: 50px 0 0; }
  .contacto-form { grid-template-columns: 1fr; }
  .contact-line { font-size: 16px; }

  /* FOOTER */
  .footer-inner { padding: 0 22px; }
  .logo-footer img { height: 46px; }
  .social-link { width: 44px; height: 44px; }
}
