/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /*colores modo oscuro*/
  --bg: #030712;
  --bg-secondary: #111827;
  --card: rgba(30, 41, 59, 0.4);
  --primary: #6366f1;
  /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.2);
  --accent: #38bdf8;
  /* Sky */
  --text: #f9fafb;
  --text-secondary: #9ca3af;
  --border: rgba(255, 255, 255, 0.1);

  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, var(--primary-glow) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h3 {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  padding: 0 2rem;
  margin: auto;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
}

section {
  padding: 3rem 0;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Componentes Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.nav-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-container ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-container a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-container a:hover {
  color: white;
}

.nav-container a.active {
  color: var(--primary);
  position: relative;
}

.nav-container a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.cta a {
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.cta a.active {
  box-shadow: 0 0 15px var(--primary);
}

.cta a.active::after {
  display: none;
}

.cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

/* Seccion Hero */
.hero {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  text-align: left;
}

.hero-content {
  animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-image-wrapper {
  display: flex;
  justify-content: flex-end;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-image-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(3deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.5), transparent 40%);
  pointer-events: none;
}

.hero-image-card:hover {
  transform: rotate(0deg) scale(1.02) translateY(-5px);
  box-shadow: 0 35px 60px -15px rgba(99, 102, 241, 0.3);
  border-color: var(--primary);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-image-wrapper {
    justify-content: center;
  }

  .hero-image-card {
    max-width: 280px;
    transform: rotate(0deg);
  }
}

/* Buttons */
.primary-btn {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
}

.social-links a {
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid transparent;
}

.social-links a:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

.social-links i {
  font-size: 1.8rem;
}

/* Projects Gallery Section */
.projects-section {
  padding-bottom: 5rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 640px) {
  .projects-grid {
    gap: 1.5rem;
  }
}

.project-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

.project-links a,
.view-img-btn {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  transform: translateY(20px);
  cursor: pointer;
}

.project-card:hover .project-links a,
.project-card:hover .view-img-btn {
  transform: translateY(0);
}

.project-links a:hover,
.view-img-btn:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: white;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Lightbox Redesign (Bing Style) */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 640px) {
  .lightbox-backdrop {
    padding: 0;
  }
}

.lightbox-wrapper {
  width: 100%;
  max-width: 1400px;
  height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Header */
.lightbox-header {
  padding: 1.2rem 2rem;
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
}

.header-left {
  display: flex;
  flex-direction: column;
}

.project-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.header-title {
  font-size: 1.25rem;
  margin: 0;
  color: white;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.header-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Main Content Area */
.lightbox-main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.image-portal {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(3, 7, 18, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.6;
}

.nav-arrow:hover {
  opacity: 1;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
  left: 2rem;
}

.nav-arrow.next {
  right: 2rem;
}

/* Meta Sidebar */
.meta-sidebar {
  width: 350px;
  background: rgba(17, 24, 39, 0.5);
  border-left: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow-y: auto;
}

.sidebar-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.project-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d1d5db;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-link {
  padding: 1rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  transform: translateX(5px);
}

.sidebar-link.demo {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.sidebar-link.demo:hover {
  box-shadow: 0 10px 20px var(--primary-glow);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Thumbnails Strip */
.lightbox-footer {
  padding: 1.5rem 2rem;
  background: rgba(17, 24, 39, 0.9);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.thumbnail-strip {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
}

.thumb-btn {
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.5;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.thumb-btn.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .lightbox-wrapper {
    height: 100vh;
    border-radius: 0;
    max-width: none;
  }

  .lightbox-main {
    flex-direction: column;
  }

  .meta-sidebar {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.5rem;
  }

  .nav-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .lightbox-header {
    padding: 0.8rem 1.25rem;
  }

  .header-title {
    font-size: 1.1rem;
  }

  .meta-sidebar {
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }

  .nav-arrow.prev {
    left: 1rem;
  }

  .nav-arrow.next {
    right: 1rem;
  }

  .thumb-btn {
    width: 60px;
    height: 40px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  background: #020617;
  color: var(--text-secondary);
}

.footer-social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-social a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
  opacity: 0;
  /* Start hidden */
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .nav-container ul {
    gap: 1rem;
  }

  .nav-container li a {
    font-size: 0.9rem;
  }

  .cta a {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 1.2rem;
  }

  .nav-container ul {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-logo {
    height: 40px;
  }
}

/* About Page Specific Styles */
.section-title {
  text-align: center;
  margin-top: 2rem;
  /* Reduced top margin inside the grid */
  margin-bottom: 2rem;
  display: block;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

.education-section,
.experience-section {
  padding: 1rem 0;
}

.grid-1 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: rgba(3, 7, 18, 0.5);
  /* Darker/different than project card? Or same? Using semi-transparent */
  border: 1px solid rgba(30, 41, 59, 0.5);
  /* Subtle border */
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.info-card:hover {
  background: rgba(30, 41, 59, 0.4);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.info-card .year {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.info-card h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 1rem;
  margin: 0;
}

/* Skills */
.slider {
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
  position: relative;
  /* Optional: Mask to fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  gap: 4rem;
}

.skill-item {
  font-size: 4rem;
  color: white;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.skill-item span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.skill-item:hover span {
  color: var(--primary);
}

iconify-icon {
  font-size: 4rem;
  width: 1em;
  height: 1em;
  display: block;
}

/* Pause animation on hover */
.slider-track:hover {
  animation-play-state: paused;
}

.skill-item:hover {
  color: var(--primary);
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Move by half the width of the track (since it's duplicated) 
       We need to account for the total width of one set of items + gaps.
       If we have 5 items in a set and 5 duplicated, the track has 10 items + 9 gaps (ignoring outer/inner details).
       Actually, `translateX(-50%)` works perfectly if the two halves are identical and keyframes are 0% -> -50%.
    */
    transform: translateX(-50%);
  }
}

/* Objectives and Goals Section */
.objectives-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-image:
    radial-gradient(at 0% 0%, var(--primary-glow) 0px, transparent 40%),
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 20px,
      rgba(99, 102, 241, 0.05) 20px,
      rgba(99, 102, 241, 0.05) 21px);
}

.objectives-card {
  background: rgba(3, 7, 18, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 4rem;
  max-width: 1000px;
  width: 90%;
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.objectives-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(3, 7, 18, 0.6);
  transform: translateY(-8px);
}

.objectives-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.objectives-header .section-title {
  margin: 0 !important;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, #fff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

@media (max-width: 768px) {
  .objectives-header .section-title {
    font-size: 2.5rem;
  }

  .objectives-card {
    padding: 2.5rem 1.5rem;
  }

  .objectives-text {
    font-size: 1.1rem;
  }
}

.objectives-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.objectives-card.open .objectives-content {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 3rem;
}

.objectives-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  /* Back to center for premium look */
  letter-spacing: 0.01em;
}

.accordion-trigger {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.objectives-card:hover .accordion-trigger {
  opacity: 1;
  gap: 0.8rem;
}

/* CTA Section (Bottom) */
.cta-section {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.contact-item iconify-icon {
  font-size: 2rem;
  color: var(--primary);
}

.contact-item div h4 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item div p {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Form Styles */
.contact-form-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}

/* Fix for dark mode dropdown options */
.form-group select option {
  background-color: var(--bg-secondary);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 15px var(--primary-glow);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.submit-btn {
  display: flex;
  margin: 1rem auto 0 auto;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  /* Slightly reduced padding to make it more compact */
}

.submit-btn iconify-icon {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}