@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --pink: #d964d8;
  --pink-dark: #9a35c6;
  --pink-soft: #f7beec;
  --pink-light: #ede1ec;

  --yellow: #efffc9;

  --cream: #fffafc;
  --paper: #fbf1ff;

  --dark: #0d070d;
  --gray: #6b626a;

  --sidebar-width: 220px;

  --border: 2px solid var(--dark);

  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--pink) var(--paper);
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =====================================
   LANGUAGE SWITCH
===================================== */

.language-switch {
  position: absolute;
  top: 2rem;
  right: 6%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.language-switch button {
  border: none;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  font-weight: 700;
  padding: 0.3rem;
}

.language-switch button.active,
.language-switch button:hover {
  color: var(--pink-dark);
}

/* =====================================
   HERO SOCIAL LINKS
===================================== */
.btn {
  display: inline-block;
  border: var(--border);
  padding: 0.5rem 0.5rem;
  font-size: 1.3rem;
  border: 1.5px solid var(--dark);
  box-shadow: 3px 3px 0 var(--pink-soft);
  transition: var(--transition);
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-social .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  background: var(--yellow);
  transform: translateX(5px) rotate(0);
  box-shadow: 4px 4px 0 var(--dark);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--paper);
  border-right: 1px solid #ded5d9;
  z-index: 1000;
}

.sidebar-inner {
  width: 100%;
  height: 100%;
  padding: 2.5rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  position: relative;
  color: var(--pink);
}

.logo span {
  color: var(--dark);
}

.side-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--pink);
  transform: translateX(4px);
}

.nav-number {
  color: var(--pink);
  font-size: 0.9rem;
  min-width: 25px;
}

.sidebar-social {
  border-top: 1.5px solid var(--dark);
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sidebar-social a {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.sidebar-social a:hover {
  color: var(--pink);
  transform: translateX(4px);
}

.sidebar-social i {
  font-size: 1.1rem;
}

.sidebar-social small {
  color: var(--pink);
  font-size: 1rem;
}

.main-content {
  margin-left: var(--sidebar-width);
}

.hero {
  height: 100vh;
  min-height: 650px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: min(1100px, 88%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  position: relative;
}

.mensaje {
  display: block;
  color: var(--pink);
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  transform: rotate(-2deg);
  width: fit-content;
}

.hero-text h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.82;
  letter-spacing: -4px;
  margin-bottom: 1.7rem;
}

.hero-text h1 span {
  display: block;
  color: var(--pink);
}

.role {
  display: inline-block;
  background: var(--yellow);
  border: var(--border);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  transform: rotate(-2deg);
  margin-bottom: 1.5rem;
}

.hero-text p,
.section-header p {
  max-width: 560px;
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 350px;
  height: 420px;
  object-fit: cover;
  border: 3px solid var(--dark);
  border-radius: 48% 52% 45% 55% / 45% 45% 55% 55%;
  box-shadow: 12px 12px 0 var(--pink-soft);
  transform: rotate(3deg);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.hero-image:hover {
  transform: rotate(0deg) translateY(-5px);
}

.photo-star {
  position: absolute;
  color: var(--pink);
  bottom: -35px;
  left: 5%;
  font-size: 3rem;
  transform: rotate(10deg);
  z-index: 4;
}

.photo-dots {
  position: absolute;
  top: 5px;
  right: 5%;
  font-size: 2.5rem;
  z-index: 4;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
  margin-bottom: 0.7rem;
}

.section-header h2::before {
  content: "+ ";
  color: var(--pink);
}

/* =====================================
   AREAS
===================================== */

.areas-section {
  padding: 5rem 0;
  background: var(--cream);
  border-bottom: var(--border);
}

.areas-content {
  width: min(1100px, 88%);
  margin: 0 auto;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.area-card {
  padding: 1.8rem;
  background: var(--paper);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--pink-soft);
}

.area-card i {
  color: var(--pink);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.area-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.area-card p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-filters button {
  border: 1.5px solid var(--dark);
  border-radius: 999px;
  background: transparent;
  color: var(--dark);
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.project-filters button:hover,
.project-filters button.active {
  background: var(--dark);
  color: var(--cream);
}

.projects {
  min-height: 100vh;
  height: auto;
  background: var(--paper);
  border-bottom: var(--border);
  overflow: hidden;
}

.projects-content {
  width: min(1100px, 88%);
  margin: 0 auto;
  padding: 3.5rem 0 6rem;
  display: flex;
  flex-direction: column;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  background: var(--cream);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--pink-soft);
  overflow: hidden;
  transition: var(--transition);
  min-width: 0;
  min-height: 280px;
  height: auto;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0 var(--dark);
}

.project-image {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--paper);
}

.project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-info {
  min-width: 0;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.project-info h3 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
  margin: 0;
}

.project-info h3::before {
  content: "+ ";
  color: var(--pink);
}

.project-info p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.3rem;
  margin-top: auto;
}

.project-tech span {
  background: var(--yellow);
  border: 1px solid var(--dark);
  padding: 0.3rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.project-tech span:nth-child(even) {
  transform: rotate(1deg);
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--dark);
  transition: var(--transition);
}

.project-link:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.project-link span {
  color: var(--pink);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.empty-projects {
  padding: 2rem 0;
  color: var(--gray);
}

.project-results {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border-left: 5px solid var(--pink-soft);
}

.results-title {
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.result-item {
  padding: 0.4rem 0;
  font-size: 0.75rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item span {
  color: var(--gray);
}

.contact {
  height: 100vh;
  min-height: 650px;
  background: radial-gradient(
    circle at 15% 25%,
    var(--yellow) 0 8px,
    transparent 3px
  );
  background-size: 72px 72px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.contact-content {
  width: min(1100px, 88%);
  flex: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.contact-text h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.contact-text p {
  max-width: 450px;
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--cream);
  border: var(--border);
  min-height: 210px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 7px 7px 0 var(--dark);
  transition: var(--transition);
}

.contact-card:first-child {
  transform: rotate(-2deg);
}

.contact-card:last-child {
  transform: rotate(2deg);
}

.contact-card:hover {
  background: var(--pink-soft);
  transform: translateY(-7px) rotate(0);
  box-shadow: 10px 10px 0 var(--dark);
}

.contact-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  background: var(--pink-soft);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  color: var(--dark);
}

.contact-label {
  display: block;
  color: var(--pink);
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.contact-card strong {
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-link {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.3rem;
  color: var(--pink);
}

.contact-card:hover .contact-label,
.contact-card:hover .contact-link {
  color: var(--pink-dark);
}

.contact-card:hover .contact-icon {
  background-color: var(--cream);
}

footer {
  width: 100%;
  padding: 1.2rem max(6%, calc((100% - 1100px) / 2));
  background: var(--dark);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
}

footer p {
  margin: 0;
}

footer > span {
  text-align: center;
  color: var(--pink-soft);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 27px;
  height: 3px;
  background: var(--dark);
  transition: var(--transition);
}

.projects-count {
  color: var(--gray);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 1rem;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.3rem;
  background: var(--pink-soft);
  color: var(--dark);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--pink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 var(--dark);
}

.load-more-btn span {
  color: var(--pink-dark);
}

.load-more-btn:hover span {
  color: white;
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 190px;
  }

  .sidebar-inner {
    padding: 2rem 1.3rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-image {
    width: 300px;
    height: 370px;
  }

  /* ------------------------------
     PROJECTS
  ------------------------------ */

  .projects {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .projects-content {
    height: auto;
    padding: 5rem 0;
  }

  .project-card {
    min-height: 0;
  }

  .project-horizontal {
    display: flex;
    flex-direction: column;
    transform: none;
  }

  .project-horizontal .project-image {
    min-height: 0;
  }

  .project-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .project-info {
    padding: 1.4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    overflow-x: hidden;
  }

  /* ------------------------------
     MOBILE HEADER
  ------------------------------ */

  .sidebar {
    width: 100%;
    height: 72px;
    border-right: none;
    border-bottom: 1px solid #ded5d9;
    background: rgba(255, 250, 252, 0.95);
    backdrop-filter: blur(12px);
  }

  .sidebar-inner {
    padding: 0 6%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    margin: 0;
    font-size: 1.25rem;
  }

  .logo::before {
    display: none;
  }

  .side-nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    height: auto;
    padding: 2rem 8%;
    background: var(--paper);
    border-bottom: var(--border);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: -1;
  }

  .side-nav.active {
    transform: translateY(0);
  }

  .nav-item {
    padding: 0.8rem 0;
  }

  .sidebar-social {
    margin-top: 2rem;
  }

  .sidebar-decoration,
  .sidebar-copyright {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* ------------------------------
     MAIN
  ------------------------------ */

  .main-content {
    margin-left: 0;
  }

  /* ------------------------------
     HERO
  ------------------------------ */

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 7rem 0 5rem;
  }

  .hero-content {
    width: 88%;
    height: auto;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 5rem;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: clamp(4rem, 18vw, 6rem);
    letter-spacing: -3px;
  }

  .hello {
    margin-left: -30%;
  }

  .hero-text p,
  .section-header p {
    font-size: 0.95rem;
  }

  .hero-image-container {
    margin-bottom: 2rem;
  }

  .hero-image {
    width: 250px;
    height: 310px;
  }

  .hero-dots,
  .hero-plus {
    display: none;
  }

  /* ------------------------------
     AREAS
  ------------------------------ */

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .language-switch {
    top: 5.5rem;
    right: 6%;
  }

  .hero-social {
    justify-content: center;
  }

  .project-filters {
    gap: 0.4rem;
  }

  .project-filters button {
    font-size: 0.76rem;
    padding: 0.48rem 0.68rem;
  }

  /* ------------------------------
     CONTACT
  ------------------------------ */

  .contact {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .contact-content {
    width: 88%;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .contact-text h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .contact-options {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 170px;
    width: 100%;
  }

  /* ------------------------------
     FOOTER
  ------------------------------ */

  footer {
    padding: 1.5rem 6%;
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer > span {
    order: 3;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 425px) {
  .hero-text h1 {
    font-size: 4rem;
  }

  .role {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }

  .hero-image {
    width: 220px;
    height: 280px;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .project-info h3 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .contact-card {
    min-height: 150px;
  }
}
