/* ===== Reset básico / layout general ===== */

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  border: 20px solid #ffffff;
  font-family: "Poppins", sans-serif;
  background-color: #f6f6f6;
  color: #0f0f0f;
}

a {
  color: #0f0f0f;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Contenedor interno para compensar el borde blanco */
.page-frame {
  min-height: 100vh;
}

/* Navbar */

.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-profile {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* ===== Hero ===== */

.hero-section {
  position: relative;
  padding-top: 7rem; /* por la navbar */
  padding-bottom: 4rem;
  overflow: hidden;
}

/* contenedor de la spline como fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.8;
}

/* el viewer ocupa todo el fondo */
.hero-bg spline-viewer {
  width: 100%;
  height: 100%;
}

/* contenido por encima */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Opcional: dar fondo blanco suave al bloque de texto */
.hero-copy {
  max-width: 780px;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
}
.script{
  font-size: 18px;
}
#hello-emoji {
  font-size: 24px;
  margin-left: 0.3rem;
}
.hero-hello{
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: 2.6rem;
  line-height: 1.3;
  color: #111;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-back {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15em 0.35em;
  margin: 0 0.15em;
}

.gradient-back {
  background: linear-gradient(
    90deg,
    rgba(255, 155, 251, 1) 0%,
    rgba(130, 208, 255, 1) 100%
  );
}

.gradient-back > span {
  background: linear-gradient(
    90deg,
    rgba(255, 155, 251, 1) 0%,
    rgba(130, 208, 255, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text {
  font-weight: 700;
  background: linear-gradient(
    90deg,
    rgba(255, 155, 251, 1) 0%,
    rgba(130, 208, 255, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.5rem;
}

.hero-subtitle.small {
  font-size: 0.9rem;
  color: #666;
}

/* Visual de hero */

.hero-visual-wrapper {
  border-radius: 20px;
  overflow: hidden;
  background-color: #111;
  backdrop-filter: blur(120px);
  border: 1px solid #222;
  min-height: 260px;
}

.spline-hero {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

/* ===== Secciones genéricas ===== */

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #888;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
}

.section-helper {
  font-size: 0.9rem;
  color: #666;
}

/* ===== Proyectos ===== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.project-link {
  display: block;
  height: 100%;
  position: relative;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.project-description {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* overlay.css seguirá controlando el efecto hover */

/* ===== Process / Approach ===== */

.process-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-copy {
  font-size: 0.95rem;
  color: #555;
}

/* ===== Contacto ===== */

.contact-section {
  background-color: #1e1e1e;
  color: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.contact-section .section-title {
  color: #ffffff;
}


.mail {
  display: inline-block;
  color: #d8d8d8;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mail:hover {
  color: #ffffff;
}

.handcraft {
  font-size: 0.75rem;
  color: #afafaf;
  margin-top: 0.75rem;
}

.social-box {
  background-color: #2a2a2a;
  border-radius: 16px;
  height: 80px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.social-box:hover {
  transform: translateY(-4px);
  background-color: #333333;
}

.social-icon {
  max-width: 32px;
  height: auto;
}

.location{
  font-size: .9rem;
  text-transform:uppercase;
  font-weight: 600;
  color: #c9c9c9;
  margin-bottom: 1.5rem;

}

/* ===== Utilidades ===== */

.padding-social {
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== Responsive ===== */

@media (min-width: 576px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

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

  .hero-visual-wrapper {
    min-height: 320px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.1rem;
  }

  .navbar {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1200px) {
  .navbar {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

/* About hero image - smaller size */
.about-hero .hero-photo {
  max-width: 80%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .about-hero .hero-photo {
    max-width: 70%;
  }
}

/* =========================================
   CASE STUDY TEMPLATE
   ========================================= */

.case-hero {
  padding-top: 8rem; /* navbar offset */
  padding-bottom: 2rem;
}

.case-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin-bottom: 0.6rem;
}

.case-title {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  color: #111;
  font-weight: 700;
}

.case-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.6rem;
}

.case-summary {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555;
  max-width: 60ch;
}

.case-hero-visual {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.06);
}

.case-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* mini TOC pills */
.case-toc .toc-pill {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem;
  color: #111;
}

.case-toc .toc-pill:hover {
  background: rgba(255,255,255,1);
}

/* Snapshot card */
.case-snapshot {
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.snapshot-item {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
}

.snapshot-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #777;
  margin-bottom: 0.25rem;
}

.snapshot-value {
  font-size: 1rem;
  color: #111;
  line-height: 1.4;
}

/* Impact cards */
.case-impact .impact-grid,
.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.impact-card {
  padding: 1.2rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(0,0,0,0.04);
}

.impact-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  margin-bottom: 0.4rem;
}

.impact-metric {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}

.impact-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.35rem;
}

/* Alternating section background */
.case-section-alt {
  background: rgba(0,0,0,0.02);
}

/* Body text */
.case-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}

.case-h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.case-list {
  padding-left: 1.1rem;
  color: #333;
}

.case-list li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

/* Figures */
.case-figure {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
}

.case-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.case-caption {
  font-size: 0.9rem;
  color: #666;
  padding: 0.8rem 1rem;
  margin: 0;
  background: rgba(255,255,255,0.85);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.case-table {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
}

.case-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
  color: #333;
}

.case-table-head {
  border-top: none;
  background: rgba(0,0,0,0.03);
  font-weight: 600;
  color: #111;
}

.case-divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.12);
}

.case-next {
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
}

.case-next-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Responsive */
@media (min-width: 768px) {
  .case-title { font-size: 3.1rem; }

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .impact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


