/* =============================================
   LAYOUT: NAVEGACIÓN Y SECCIONES PRINCIPALES
   ============================================= */

/* ========== NAVEGACIÓN ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 165, 160, 0.08);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-dark);
}

.nav-brand img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--teal);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--teal-dark);
  padding: 8px;
  transition: transform 0.3s;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle.active {
  transform: rotate(90deg);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ========== MENÚ MÓVIL ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--teal-dark);
  padding: 8px;
  z-index: 10;
}

.mobile-menu .close-btn svg {
  width: 32px;
  height: 32px;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu.active ul li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active ul li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active ul li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active ul li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active ul li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active ul li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active ul li:nth-child(7) { transition-delay: 0.4s; }

.mobile-menu ul li a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  padding: 12px 20px;
  display: block;
  transition: color 0.3s;
}

.mobile-menu ul li a:hover {
  color: var(--teal);
}

.mobile-menu .mobile-cta {
  margin-top: 20px;
  background: var(--teal);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active .mobile-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.mobile-menu .mobile-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #FDFBFB 0%, #F4FAFA 50%, #FBF5FB 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}

.hero::before {
  width: 480px;
  height: 480px;
  background: var(--pink-soft);
  top: -120px;
  left: -120px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: var(--lavender-soft);
  bottom: -100px;
  right: -80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hero-text h1 .accent {
  color: var(--teal);
  display: inline-block;
}

.hero-text .subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 400;
}

.hero-text .sub-subtitle {
  font-size: 1.02rem;
  color: var(--pink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-text .sub-subtitle::before,
.hero-text .sub-subtitle::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink), transparent);
}

.hero-text p {
  font-size: 1.02rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(42, 165, 160, 0.15);
  flex-wrap: wrap;
}

.stat .number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}

.stat .label-s {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 6px;
}

/* ========== HERO VISUAL ========== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 520px;
}

.hero-visual .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--lavender) 100%);
  filter: blur(2px);
  animation: floatBlob 8s ease-in-out infinite;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(-15px, 15px) rotate(5deg); }
}

.hero-visual .main-img {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 340px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual .main-img picture {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.hero-visual .main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-visual .main-img svg {
  width: 75%;
}

.hero-visual .float-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3;
}

.hero-visual .float-card svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.float-card.c1 {
  top: 40px;
  left: -10px;
  animation: floatCard 6s ease-in-out infinite;
}

.float-card.c2 {
  bottom: 60px;
  right: -20px;
  animation: floatCard 7s ease-in-out infinite 0.5s;
}

.float-card.c3 {
  top: 50%;
  right: -30px;
  animation: floatCard 6.5s ease-in-out infinite 1s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== ABOUT ========== */
.about {
  background: white;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-card {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-soft), var(--lavender-soft));
  border-radius: 30px;
}

.about-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(31, 127, 123, 0.92) 0%, rgba(31, 127, 123, 0.6) 50%, transparent 100%);
  color: var(--pink);
  padding: 30px 24px 24px;
  text-align: center;
}

.photo-overlay h4 {
  font-size: 1.35rem;
  color: var(--pink);
  margin-bottom: 6px;
  font-weight: 600;
}

.photo-overlay p {
  color: var(--pink);
  font-weight: 500;
}

.about-visual .card {
  background: linear-gradient(135deg, var(--pink-soft), var(--lavender-soft));
  border-radius: 30px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-visual .card svg {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
}

.about-visual .card h4 {
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.about-visual .card p {
  color: var(--text);
  font-weight: 500;
}

.about-visual .badge {
  position: absolute;
  background: white;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9rem;
}

.about-visual .badge.b1 {
  top: 20px;
  right: -20px;
}

.about-visual .badge.b2 {
  bottom: 20px;
  left: -20px;
}

.about-visual .badge svg {
  width: 28px;
  height: 28px;
}

.about-text .feature-list {
  list-style: none;
  margin-top: 30px;
}

.about-text .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(42, 165, 160, 0.15);
}

.about-text .feature-list li:last-child {
  border-bottom: none;
}

.about-text .feature-list .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-text .feature-list .check svg {
  width: 14px;
  height: 14px;
  color: var(--pink);
}

.about-text .feature-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.about-text .feature-list span {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ========== GALLERY / HUMAN TOUCH ========== */
.gallery {
  background: linear-gradient(135deg, #F4FAFA 0%, #FBF5FB 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.gallery-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s;
}

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

.gallery-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--teal);
  color: white;
  padding: 16px 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

.gallery-badge svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.gallery-badge span {
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.88rem;
}

/* ========== EXPERIENCE ========== */
.experience {
  background: white;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.exp-card {
  background: linear-gradient(135deg, #FDFBFB, #FBF5FB);
  padding: 36px 30px;
  border-radius: 24px;
  border: 1px solid rgba(42, 165, 160, 0.1);
  transition: var(--transition);
}

.exp-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.exp-card .period {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.exp-card .org {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 600;
}

.exp-card .role {
  font-size: 0.92rem;
  color: var(--pink);
  font-weight: 500;
  margin-bottom: 16px;
}

.exp-card ul {
  list-style: none;
}

.exp-card ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 6px 0 6px 20px;
  position: relative;
}

.exp-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ========== FORMATION (TIMELINE) ========== */
.formation {
  background: white;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--lavender));
}

.tl-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 6px rgba(42, 165, 160, 0.1);
  z-index: 2;
}

.tl-item.year::before {
  background: var(--teal);
}

.tl-item .tl-year {
  font-size: 0.82rem;
  color: var(--pink);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.tl-item h4 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

.tl-item .tl-place {
  color: var(--teal);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.tl-item p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ========== CONTACT ========== */
.contact {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.15;
  top: -200px;
  right: -100px;
}

.contact::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--lavender);
  opacity: 0.15;
  bottom: -150px;
  left: -100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-text .section-label {
  color: var(--pink-soft);
}

.contact-text .section-title {
  color: white;
}

.contact-text .section-title .accent {
  color: var(--pink);
}

.contact-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}

.contact-info li .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.contact-info li .icon-box svg {
  width: 22px;
  height: 22px;
  color: var(--pink);
}

.contact-info li strong {
  display: block;
  color: white;
  font-weight: 500;
}

.contact-info li span {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== FOOTER ========== */
footer {
  background: #1F2937;
  color: rgba(255, 255, 255, 0.6);
  padding: 50px 0 30px;
  text-align: center;
}

footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: white;
  margin-bottom: 10px;
  font-weight: 600;
}

footer .footer-tag {
  font-size: 0.88rem;
  margin-bottom: 20px;
}

footer .footer-contact {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

footer .footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 0.3s;
}

footer .footer-contact a:hover {
  color: var(--pink);
}

footer picture,
footer img {
  display: block;
  max-width: 120px;
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
}

footer .copy {
  font-size: 0.82rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
