@charset "UTF-8";
/* ==========================================================================
   1. CÓDIGO PARA ORDENADOR (BASE / DESKTOP)
   ========================================================================== */
/* --- 1.1 CONFIGURACIÓN BÁSICA --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #0f0c29;
  color: white;
  overflow-x: hidden;
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* --- 1.2 FONDO ANIMADO --- */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0f0c29;
  z-index: -1;
  transition: background-color 0.8s ease;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translateZ(0);
  transition: opacity 0.8s ease, mix-blend-mode 0.8s ease, background-color 0.8s ease;
}

.blob-1 {
  background-color: #6a3575;
  width: 600px;
  height: 600px;
  top: -20%;
  left: -20%;
  animation: moveBlob1 10s infinite ease-in-out alternate;
}

.blob-2 {
  background-color: #3e144f;
  width: 1200px;
  height: 900px;
  bottom: -10%;
  right: -10%;
  animation: moveBlob2 10s infinite ease-in-out alternate-reverse;
}

.blob-3 {
  background-color: #501ba5;
  width: 400px;
  height: 400px;
  top: 40%;
  left: 30%;
  animation: moveBlob3 50s infinite ease-in-out alternate;
}

@keyframes moveBlob1 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(100px, 150px) rotate(45deg) scale(1.1);
  }
  100% {
    transform: translate(-50px, 50px) rotate(-30deg) scale(0.9);
  }
}
@keyframes moveBlob2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-150px, -100px) scale(1.2);
  }
  100% {
    transform: translate(50px, -50px) scale(0.8);
  }
}
@keyframes moveBlob3 {
  0% {
    transform: translate(0, 0) scale(0.8);
  }
  50% {
    transform: translate(200px, -100px) scale(1.1);
  }
  100% {
    transform: translate(-100px, 150px) scale(0.9);
  }
}
/* --- 1.3 HERO --- */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding-bottom: 150px;
  padding-top: 150px;
}

.corner-link {
  position: absolute;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  transition: transform 0.3s ease, color 0.3s ease;
}

.corner-link:hover {
  transform: scale(1.1);
  color: #dcbdf5;
}

.top-left {
  top: 40px;
  left: 50px;
}

.top-right {
  top: 40px;
  right: 50px;
}

.bottom-left {
  bottom: 40px;
  left: 50px;
}

.bottom-right {
  bottom: 40px;
  right: 50px;
}

.center-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-title {
  font-family: "Anton", sans-serif;
  font-size: 15vw;
  line-height: 0.8;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-family: "Nanum Pen Script", cursive;
  font-size: 3rem;
  margin-top: 320px;
  font-weight: 400;
  transform: rotate(-2deg);
  z-index: 3;
  position: relative;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.image-container {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 40vw;
  height: auto;
  z-index: 2;
  animation: flotar 4s ease-in-out infinite;
}

.avatar-base {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.avatar-pupils {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.social-icons {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 20;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: white;
  transform: translateY(-5px);
}

@keyframes flotar {
  0% {
    transform: translate(-50%, -60%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -60%) translateY(-15px);
  }
  100% {
    transform: translate(-50%, -60%) translateY(0px);
  }
}
/* --- 1.4 BENTO GRID --- */
.bento-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 100%;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 150px;
  gap: 60px;
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 2200px;
  padding-top: 50px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  border-radius: 35px;
  overflow: hidden;
  height: 400px;
  text-decoration: none;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.bento-card:hover {
  z-index: 10;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  transform: scale(1.02);
}

.card-text {
  padding: 40px;
  z-index: 2;
}

.bento-card h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
  margin-bottom: 5px;
  line-height: 1;
}

.subtext {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 500;
}

.card-img {
  padding: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 65%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: bottom center;
     object-position: bottom center;
  z-index: 1;
  transition: transform 0.4s ease;
}

.bento-card:hover .card-img {
  transform: scale(1.05);
}

/* Colores Bento */
.bg-dark {
  background: #1c1c1e;
}

.bg-purple {
  background: #4c1d95;
}

.bg-blue {
  background: #1e3a8a;
}

.bg-teal {
  background: #115e59;
}

.bg-indigo {
  background: #3730a3;
}

.bg-pink {
  background: #831843;
}

.bg-behance {
  background: #003ecb;
}

.bg-red {
  background: #7f1d1d;
}

.bg-linkedin {
  background: #0077b5;
}

/* Efecto Carpeta */
.card-folder-effect {
  background: transparent !important;
  box-shadow: none !important;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.folder-back {
  position: absolute;
  width: 100%;
  height: calc(100% - 60px);
  bottom: 0;
  left: 0;
  background-color: #3b82f6;
  border-radius: 0 35px 35px 35px;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.folder-back::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 60%;
  height: 60px;
  background-color: #3b82f6;
  border-radius: 35px 35px 0 0;
}

.paper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 60%;
  background: white;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s ease;
  z-index: 2;
  overflow: hidden;
}

.paper-1 {
  top: 8%;
  transform: translateX(-50%) rotate(-4deg);
  opacity: 0.9;
}

.paper-2 {
  top: 12%;
  transform: translateX(-50%) rotate(2deg);
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
}

.paper-text {
  color: #000000 !important;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: "Montserrat", sans-serif;
  z-index: 10;
  line-height: 1;
  margin-left: 20px;
}

.folder-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-radius: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.card-folder-effect:hover .paper-1 {
  top: 4%;
  transform: translateX(-50%) rotate(-8deg);
}

.card-folder-effect:hover .paper-2 {
  top: 6%;
  transform: translateX(-50%) rotate(0deg);
}

.card-folder-effect:hover {
  z-index: 20;
  transform: scale(1.02);
}

/* --- 1.5 RESEÑAS --- */
.reviews-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30vh;
  margin-top: 100px;
  margin-bottom: 50px;
  width: 100%;
}

.reviews-header h2 {
  font-family: "Nanum Pen Script", cursive;
  font-size: 3.5rem;
  color: white;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 90%;
  max-width: 2200px;
  margin-bottom: 50px;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px;
  position: relative;
  border-radius: 35px;
  overflow: hidden;
  height: 380px;
  min-width: 0;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
  color: white !important;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.review-quote {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  color: white !important;
  margin: 0;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
}

.author-details {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: white !important;
}

.author-info span {
  font-size: 0.9rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.8) !important;
  display: block;
  margin-top: 2px;
}

.review-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: rgb(149, 115, 240);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #1a1a1a;
  font-size: 1.3rem;
}

.review-card:hover .review-btn {
  transform: rotate(90deg);
  background-color: white;
}

/* --- 1.6 PORTFOLIO --- */
.portfolio-section {
  padding: 100px 20px;
  background-color: transparent;
}

.cards-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 100px;
}

.card {
  display: flex;
  height: 450px;
  border-radius: 40px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  margin-bottom: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform-origin: center top;
  transition: transform 0.3s ease;
  position: sticky;
  top: 100px;
}

.card:hover {
  transform: scale(1.02);
}

.card-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
}

.card-image {
  flex: 1.5;
}

.card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.card-tag {
  background: rgba(255, 255, 255, 0.2);
  width: -moz-fit-content;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.card p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 400px;
}

.card-arrow {
  margin-top: 40px;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card:hover .card-arrow {
  background: white;
  color: black;
}

.card-dark {
  background-color: #1a1a1a;
}

.card-purple {
  background-color: #5a2a99;
}

.card-red {
  background-color: #8a3324;
}

.card-blue {
  background-color: #24568a;
}

.card-green {
  background-color: #248a4a;
}

.card:nth-child(1) {
  top: 100px;
  z-index: 1;
}

.card:nth-child(2) {
  top: 130px;
  z-index: 2;
}

.card:nth-child(3) {
  top: 160px;
  z-index: 3;
}

.card:nth-child(4) {
  top: 190px;
  z-index: 4;
}

.card:nth-child(5) {
  top: 220px;
  z-index: 5;
}

/* --- 1.7 POPUPS --- */
.contact-popup-overlay, .resume-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.contact-popup-overlay.active, .resume-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contacto */
.contact-popup-content {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 35px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-popup-overlay.active .contact-popup-content {
  transform: translateY(0) scale(1);
}

.popup-close-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.popup-header {
  background-color: #243b33;
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.popup-avatar {
  width: auto;
  height: 180px;
  position: relative;
  bottom: -5px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.popup-body {
  padding: 40px 30px;
  text-align: center;
  background: white;
}

.popup-body h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  margin: 0;
  margin-bottom: 35px;
  color: #1a1a1a;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-option-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 25px;
  background: white;
  border: 2px solid #eaeaea;
  border-radius: 50px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-option-btn i {
  font-size: 1.4rem;
  margin-right: 15px;
  width: 25px;
  text-align: center;
}

.whatsapp-icon {
  color: #25D366;
}

.contact-option-btn:hover {
  border-color: #1a1a1a;
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Resume */
.resume-popup-overlay {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.resume-popup-content {
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  max-height: 90vh;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.resume-popup-overlay.active .resume-popup-content {
  transform: scale(1);
}

.cv-internal-container {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  padding: 80px;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch;
  color: white;
}

.cv-internal-container::-webkit-scrollbar {
  width: 8px;
}

.cv-internal-container::-webkit-scrollbar-thumb {
  background: #4c1d95;
  border-radius: 4px;
}

.cv-internal-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.cv-header-popup {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cv-name-popup {
  font-family: "Anton", sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  margin: 0;
}

.cv-title-popup {
  font-family: "Montserrat", sans-serif;
  color: #a5b4fc;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.cv-bio-popup {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 500px;
  line-height: 1.5;
}

.header-contact-popup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.header-contact-popup a {
  color: white;
  text-decoration: none;
  opacity: 0.6;
  font-size: 0.9rem;
  transition: 0.3s;
}

.header-contact-popup a:hover {
  opacity: 1;
  color: #a5b4fc;
}

.cv-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.cv-heading {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.cv-item {
  margin-bottom: 30px;
}

.cv-item-head h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.cv-item-head span {
  color: #a5b4fc;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.cv-item p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 8px;
}

.edu-item {
  margin-bottom: 20px;
}

.edu-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.edu-item p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.lang-list {
  list-style: none;
  padding: 0;
}

.lang-list li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.lang-list li span {
  font-weight: 700;
}

.download-cv-btn {
  position: absolute;
  bottom: 30px;
  right: 40px;
  background: #4c1d95;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(76, 29, 149, 0.3);
  transition: all 0.3s ease;
  z-index: 20;
}

.download-cv-btn i {
  font-size: 1.1rem;
}

.download-cv-btn:hover {
  background: #6d28d9;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(76, 29, 149, 0.5);
}

/* Mapa Popup */
.map-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.map-popup-content {
  width: 95%;
  max-width: 1100px;
  height: 80vh;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  backface-visibility: hidden;
  transform: translateZ(0) scale(0.95);
  will-change: transform;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  overflow: hidden;
  color: white !important;
}

.map-popup-overlay.active .map-popup-content {
  transform: translateZ(0) scale(1);
}

.map-container {
  flex: 1;
  background: #151515;
  position: relative;
  min-height: 100%;
}

.map-container iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(90%);
  opacity: 0.8;
  transition: all 0.5s ease;
}

.map-text-content {
  flex: 1;
  padding: 60px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.map-text-content::-webkit-scrollbar {
  width: 6px;
}

.map-text-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.map-text-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.map-text-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.map-title {
  font-family: "Anton", sans-serif;
  font-size: 4rem;
  line-height: 0.9;
  margin-bottom: 20px;
  margin-top: 10px;
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.map-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 40px;
  border-left: 3px solid #a5b4fc;
  padding-left: 15px;
}

.map-description p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9) !important;
}

.map-form-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 30px;
  padding-bottom: 20px;
}

.map-form-wrapper h3 {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.6;
  color: white !important;
}

.mini-contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mini-contact-form input, .mini-contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 15px;
  padding: 15px;
  color: white !important;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
}

.mini-contact-form input::-moz-placeholder, .mini-contact-form textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.mini-contact-form input::placeholder, .mini-contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.mini-contact-form input:focus, .mini-contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #a5b4fc !important;
}

.form-send-btn {
  margin-top: 10px;
  background: #4c1d95;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-send-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(76, 29, 149, 0.3);
}

/* --- 1.8 HEADER FLOTANTE --- */
.floating-header {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  width: auto;
  height: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 30px;
  gap: 0;
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  opacity: 0;
}

.floating-header.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.header-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  padding-right: 0;
  transition: padding 0.5s ease;
}

.header-links li a {
  text-decoration: none;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.header-links li a:hover {
  color: #4c1d95;
  text-shadow: none;
}

.header-socials {
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 0;
  margin-left: 0;
  transition: all 0.5s ease;
}

.header-socials a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.header-socials a:last-child {
  margin-right: 0;
}

.header-socials a:hover {
  color: #4c1d95;
  transform: scale(1.1);
}

.floating-header.show-icons .header-socials {
  max-width: 150px;
  opacity: 1;
  padding-left: 25px;
}

/* --- 1.9 TRANSICIONES HERO --- */
.main-title, .hero .subtitle, .hero .image-container, .hero .corner-link {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero .social-icons {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.hero-fade-out {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  pointer-events: none !important;
}

.hero .social-icons.hero-fade-out {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-20px) !important;
  pointer-events: none !important;
}

/* --- 1.10 MODO CLARO --- */
body.light-mode {
  color: #1a1a1a;
}

body.light-mode .animated-background {
  background-color: #ffffff;
  background-image: radial-gradient(#e5e5e5 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 1;
  z-index: -1;
}

body.light-mode .blob {
  display: none;
}

body.light-mode .corner-link {
  color: #1a1a1a;
}

body.light-mode .social-icons a {
  color: #1a1a1a;
}

body.light-mode .reviews-header h2 {
  color: #1a1a1a;
  text-shadow: none;
}

body.light-mode .review-card {
  background: rgba(0, 0, 0, 0.85) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .floating-header {
  background: rgba(28, 28, 30, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.light-mode .header-links li a {
  color: rgba(255, 255, 255, 0.9);
}

body.light-mode .header-links li a:hover {
  color: #a5b4fc;
}

body.light-mode .header-socials a {
  color: rgba(255, 255, 255, 0.9);
}

body.light-mode .header-socials a:hover {
  color: #a5b4fc;
}

/* ==========================================================================
   2. CÓDIGO PARA MÓVILES (RESPONSIVE)
   ========================================================================== */
/* --- 2.1 TABLETS & PEQUEÑOS PORTÁTILES (Hasta 1200px) --- */
@media (max-width: 1200px) {
  .bento-container, .reviews-container {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
}
/* --- 2.2 TABLETS (Hasta 900px) --- */
@media (max-width: 900px) {
  /* Hero */
  .main-title {
    font-size: 15vw;
  }
  /* Reseñas */
  .reviews-header h2 {
    font-size: 2.5rem;
    padding: 0 20px;
  }
  /* Popups */
  .map-popup-content {
    flex-direction: column-reverse;
    height: 90vh;
    overflow-y: auto;
  }
  .map-container {
    flex: none;
    height: 300px;
    width: 100%;
  }
  .map-text-content {
    flex: none;
    padding: 40px 30px;
  }
  .map-title {
    font-size: 3rem;
  }
  .map-popup-content .popup-close-btn {
    background: rgba(0, 0, 0, 0.6);
    top: 15px;
    right: 15px;
    left: auto;
    z-index: 20;
  }
}
/* --- 2.3 MÓVILES (Hasta 768px) --- */
@media (max-width: 768px) {
  /* HERO */
  .main-title {
    font-size: 18vw;
    margin-bottom: 30px;
  }
  .subtitle {
    font-size: 1.8rem;
    margin-top: 160px;
  }
  .image-container {
    width: 80%;
    align-items: center;
    justify-content: center;
  }
  /* Ocultamos enlaces de esquina para limpiar la vista */
  .corner-link {
    display: none;
  }
  /* HEADER FLOTANTE - SIEMPRE VISIBLE */
  .header-socials {
    display: none;
  }
  .floating-header {
    width: 90%;
    padding: 0 20px;
    justify-content: space-around;
    /* CÓDIGO AÑADIDO PARA FORZAR VISIBILIDAD */
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    top: 20px;
  }
  .floating-header ul {
    font-size: 0.5rem !important;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .floating-header ul a {
    font-size: 1.3em;
  }
  /* BENTO GRID */
  .bento-container {
    grid-template-columns: 1fr; /* 1 columna */
  }
  .bento-card, .parallax-card {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    margin-bottom: 20px;
    height: 400px;
  }
  /* RESET DE HOVER: Forzamos estado normal en tarjetas bento */
  .bento-card:hover {
    transform: none !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  }
  /* Efecto carpeta simplificado para móvil */
  .card-folder-effect {
    overflow: hidden;
    background-color: #3b82f6;
  }
  .folder-back {
    height: 90%;
  }
  .folder-back::before {
    height: 40px;
    top: -40px;
  }
  .paper {
    transition: none !important;
    width: 90%;
  }
  .paper-1 {
    top: 15% !important;
    transform: translateX(-50%) rotate(-2deg) !important;
  }
  .paper-2 {
    top: 20% !important;
    transform: translateX(-50%) rotate(1deg) !important;
    padding-top: 10px;
  }
  .paper-text {
    font-size: 1.4rem;
  }
  .folder-front {
    height: 60%;
    z-index: 5;
  }
  .card-folder-effect:hover .paper-1, .card-folder-effect:hover .paper-2 {
    top: auto !important;
    transform: inherit !important;
  }
  .bento-card:hover {
    transform: none !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  }
  /* RESEÑAS */
  .reviews-header {
    text-align: center;
  }
  .reviews-container {
    grid-template-columns: 1fr; /* 1 columna */
  }
  .review-card {
    height: auto;
    min-height: 300px;
  }
  .review-quote {
    font-size: 1.3rem;
  }
  /* PORTFOLIO */
  .card {
    flex-direction: column-reverse;
    height: auto;
    position: relative;
    top: auto !important; /* Quitar sticky para evitar bugs en scroll */
    margin-bottom: 30px;
  }
  .card-image {
    height: 250px;
  }
  .card-content {
    padding: 30px;
  }
  .card h3 {
    font-size: 2rem;
  }
  /* POPUPS */
  .resume-popup-content {
    height: 95vh;
  }
  .cv-body-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .header-contact-popup {
    align-items: flex-start;
    margin-top: 10px;
  }
  .cv-internal-container {
    padding: 30px;
    padding-bottom: 90px;
  }
  .cv-name-popup {
    font-size: 2.5rem;
  }
  .download-cv-btn {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    width: auto;
    white-space: nowrap;
    padding: 12px 30px;
  }
  .download-cv-btn:hover {
    transform: translateX(50%) translateY(-3px);
  }
}
/* =========================================
   PAGE TRANSITION (fade to black + reveal)
   ========================================= */
.page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-transition.is-active {
  opacity: 1;
  transform: translateY(0);
}

.page-transition.is-reveal {
  opacity: 0;
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    transition: none;
  }
}/*# sourceMappingURL=style.css.map */