/* Estilos principales para el sitio web de José Germán Estrada Clavijo */

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Fira+Code:wght@400;500&display=swap');

/* Variables CSS */
:root {
  /* Colores principales */
  --color-primary: #2563eb;
  --color-secondary: #10b981;
  --color-accent: #8b5cf6;
  --color-dark: #1f2937;
  --color-light: #f3f4f6;

  /* Colores de acento */
  --color-energy: #fbbf24;
  --color-digital: #06b6d4;
  --color-passion: #ef4444;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-digital));

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Fuentes */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
}

/* Reset y estilos base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 4rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 1.6rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sección Hero */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--color-dark);
  color: var(--color-light);
  position: relative;
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: 7.2rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s var(--transition-normal) forwards;
}

.hero__subtitle {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s var(--transition-normal) 0.3s forwards;
}

.hero__roles {
  font-size: 2.4rem;
  height: 3.6rem;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero__roles-list {
  display: flex;
  flex-direction: column;
  animation: rotateRoles 10s infinite;
}

.hero__role {
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__cta {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--gradient-primary);
  color: var(--color-light);
  border-radius: 5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s var(--transition-normal) 0.6s forwards;
}

.hero__cta:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: var(--color-light);
}

/* Menú Orbital */
.orbital-menu {
  position: fixed;
  bottom: 8rem;
  right: 8rem;
  z-index: 100;
  width: 6rem;
  height: 6rem;
}

.orbital-menu__toggle {
  position: absolute;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-light);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.orbital-menu__toggle:hover {
  transform: scale(1.1);
}

.orbital-menu__toggle i {
  font-size: 2.4rem;
}

.orbital-menu__items {
  position: absolute;
  width: 30rem;
  height: 30rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-slow);
  opacity: 0;
  pointer-events: none;
}

.orbital-menu.active .orbital-menu__items {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.orbital-menu__item {
  position: absolute;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-light);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.orbital-menu__item:hover {
  transform: scale(1.2);
  background: var(--gradient-primary);
}

.orbital-menu__item i {
  font-size: 2rem;
}

.orbital-menu__label {
  position: absolute;
  white-space: nowrap;
  background: var(--color-dark);
  color: var(--color-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.orbital-menu__item:hover .orbital-menu__label {
  opacity: 0.5;
}

/* Secciones */
.section {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.section__header {
  text-align: center;
  margin-bottom: 6rem;
}

.section__title {
  display: inline-block;
  position: relative;
  margin-bottom: 2rem;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 0.4rem;
  background: var(--gradient-primary);
  border-radius: 2rem;
}

.section__subtitle {
  font-size: 2rem;
  max-width: 60rem;
  margin: 0 auto;
  opacity: 0.8;
}

/* Animaciones */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateRoles {

  0%,
  20% {
    transform: translateY(0);
  }

  25%,
  45% {
    transform: translateY(-3.6rem);
  }

  50%,
  70% {
    transform: translateY(-7.2rem);
  }

  75%,
  95% {
    transform: translateY(-10.8rem);
  }

  100% {
    transform: translateY(0);
  }
}

/* Tarjetas con efecto 3D */
.card-3d {
  background: var(--color-light);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateX(5deg) rotateY(5deg);
  box-shadow: var(--shadow-xl);
}

/* Gráficos de habilidades */
.skill-chart {
  position: relative;
  width: 100%;
  height: 40rem;
}

.skill-hexagon {
  position: absolute;
  width: 12rem;
  height: 12rem;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--gradient-primary);
  transition: transform var(--transition-normal);
  cursor: pointer;
}

.skill-hexagon:hover {
  transform: scale(1.1);
}

.skill-hexagon__content {
  text-align: center;
  color: var(--color-light);
}

.skill-hexagon__icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.skill-hexagon__title {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Barras de progreso */
.progress-bar {
  width: 100%;
  height: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 1rem;
  width: 0;
  transition: width 1.5s var(--transition-normal);
}

/* Contadores */
.counter {
  text-align: center;
  margin-bottom: 4rem;
}

.counter__number {
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.counter__title {
  font-size: 1.8rem;
  color: var(--color-light);
  opacity: 0.8;
}

/* Línea de tiempo */
.timeline {
  position: relative;
  max-width: 120rem;
  margin: 0 auto;
  padding: 4rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.4rem;
  height: 100%;
  background: var(--gradient-primary);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 4rem;
  margin-bottom: 6rem;
}

.timeline__item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline__item:nth-child(even) {
  left: 50%;
}

.timeline__content {
  background: var(--color-light);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.timeline__dot {
  position: absolute;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.timeline__item:nth-child(odd) .timeline__dot {
  right: -1.5rem;
}

.timeline__item:nth-child(even) .timeline__dot {
  left: -1.5rem;
}

.timeline__date {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.timeline__description {
  font-size: 1.6rem;
}

/* Proyectos */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
}

.project-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: auto;
  margin-bottom: 3rem
}

.project-card:hover {
  transform: translateY(-1rem);
  box-shadow: var(--shadow-xl);
}

.project-card__image {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.project-card__content {
  padding: 2rem;
  background: var(--color-light);
}

.project-card__title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.project-card__description {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-card__tech-tag {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: 2rem;
  font-size: 1.2rem;
}

/* Contacto */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact__icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gradient-primary);
  color: var(--color-light);
  border-radius: 50%;
  font-size: 2rem;
}

.contact__text {
  font-size: 1.8rem;
}

.contact__social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact__social-link {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-dark);
  color: var(--color-light);
  border-radius: 50%;
  font-size: 1.8rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.contact__social-link:hover {
  transform: translateY(-5px);
  background: var(--gradient-primary);
}

/* Footer */
.footer {
  padding: 4rem 0;
  background: var(--color-dark);
  color: var(--color-light);
  text-align: center;
}

.footer__content {
  max-width: 60rem;
  margin: 0 auto;
}

.footer__logo {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__text {
  font-size: 1.6rem;
  opacity: 0.8;
  margin-bottom: 3rem;
}

.footer__copyright {
  font-size: 1.4rem;
  opacity: 0.6;
}

/* Botón volver arriba */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  left: 3rem;
  width: 5rem;
  height: 5rem;
  background: var(--gradient-primary);
  color: var(--color-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10rem);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
}

.back-to-top i {
  font-size: 2rem;
}

/* Media Queries */
@media (max-width: 1200px) {
  html {
    font-size: 58%;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 56%;
  }

  .timeline__item {
    width: 100%;
    padding-left: 7rem;
    padding-right: 2rem;
    text-align: left;
  }

  .timeline__item:nth-child(odd) {
    left: 0;
    text-align: left;
  }

  .timeline__item:nth-child(even) {
    left: 0;
  }

  .timeline::before {
    left: 3rem;
  }

  .timeline__item:nth-child(odd) .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot {
    left: 1.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 54%;
  }

  .hero__title {
    font-size: 5rem;
  }

  .hero__subtitle {
    font-size: 2.4rem;
  }

  .section {
    padding: 8rem 0;
  }

  .orbital-menu__items {
    width: 34rem;
    height: 34rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 52%;
  }

  .hero__title {
    font-size: 4rem; 
  }

  .hero__subtitle {
    font-size: 2rem;
  }

  .section {
    padding: 6rem 0;
  }

  .orbital-menu {
    bottom: 6rem;
    right: 6rem;
  }

  .back-to-top {
    bottom: 2rem;
    left: 2rem;
  }
}

/* Animaciones para elementos al hacer scroll */
.fade-in {
  opacity: 0;
  transform: translateY(5rem);
  transition: opacity 1s var(--transition-normal), transform 1s var(--transition-normal);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-5rem);
  transition: opacity 1s var(--transition-normal), transform 1s var(--transition-normal);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(5rem);
  transition: opacity 1s var(--transition-normal), transform 1s var(--transition-normal);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animación de escritura */
.typing-effect {
  border-right: 0.2rem solid var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--color-primary)
  }
}

/* Efecto de partículas */
.particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s var(--transition-normal), visibility 0.5s var(--transition-normal);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__spinner {
  width: 10rem;
  height: 10rem;
  border: 0.8rem solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-primary);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estilos para gráficos */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 300px;
  margin: 3rem auto;
}

canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.skills-radar {
  margin-top: 5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
}

.skill-details {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.skill-details.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.skill-tag {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Estilos para la sección de docencia */
.teaching {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.teaching__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.teaching__highlight {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 2rem;
}

.teaching__highlight-icon {
  font-size: 3rem;
  color: var(--color-energy);
}

.teaching__highlight-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-energy);
}

.teaching__institutions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.teaching__institution {
  color: var(--color-light);
}

.teaching__institution-name {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.teaching__institution-period {
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.teaching__institution-role {
  font-weight: 600;
  margin-bottom: 1rem;
}

.teaching__institution-description {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Ajustar tarjetas para modo oscuro */
.section--dark .card-3d {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section--dark .card-3d:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .teaching {
    grid-template-columns: 1fr;
  }

  .teaching__content {
    order: 2;
  }

  .teaching__institutions {
    order: 1;
  }
}

/* Estilos para la sección de Experiencia Profesional */
.experience {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.experience__item {
  background: var(--color-light);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.experience__item:hover {
  transform: translateY(-1rem);
  box-shadow: var(--shadow-xl);
}

.experience__date {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.experience__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.experience__company {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.experience__description {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Estilos para la sección de Estadísticas */
#stats {
  background-color: var(--color-dark);
  color: var(--color-light);
}

#particles-stats {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.counter {
  text-align: center;
  margin-bottom: 4rem;
}

.counter__number {
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.counter__title {
  font-size: 1.8rem;
  color: var(--color-dark);
  opacity: 0.8;
}

.stats-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.stats-chart {
  background: var(--color-light);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.stats-chart__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.real-time-stats {
  margin-top: 4rem;
}

.real-time-stats__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.real-time-stats__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.real-time-stats__label {
  font-size: 1.6rem;
  font-weight: 600;
}

.real-time-stats__value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Estilos para la sección de Contacto */
#contact {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact__info {
  background: var(--color-primary);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  color: var(--color-light);
}

.contact__item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.contact__icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gradient-primary);
  color: var(--color-light);
  border-radius: 50%;
  font-size: 2rem;
  margin-right: 2rem;
}

.contact__text {
  font-size: 1.8rem;
}

.contact__social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact__social-link {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-dark);
  color: var(--color-light);
  border-radius: 50%;
  font-size: 1.8rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.contact__social-link:hover {
  transform: translateY(-5px);
  background: var(--gradient-primary);
}

.contact__form {
  background: var(--color-light);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 1.6rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact__submit {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--gradient-primary);
  color: var(--color-light);
  border: none;
  border-radius: 5rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact__submit:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .contact__info {
    order: 2;
  }

  .contact__form {
    order: 1;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: var(--color-dark);
  color: var(--color-light);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.sidebar__header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar__title {
  font-size: 2rem;
  font-weight: 700;
}

.sidebar__content {
  padding: 2rem;
}

.sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar__item {
  margin-bottom: 1rem;
  text-decoration: none;
}

.sidebar__link {
  display: block;
  padding: 1rem 0;
  color: var(--color-light);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sidebar__link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar__link.active {
  background-color: var(--color-secondary);
  color: var(--color-dark);
  font-weight: 700;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}

/* Iframe */
.iframe {
  width: 100%;
  height: 600px;
  border: none;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
      transform: translateX(-250px);
  }

  .sidebar.active {
      transform: translateX(0);
  }

  .main-content {
      margin-left: 0;
  }

  .main-content.active {
      margin-left: 250px;
  }
}

sidebar {
  width: 280px;
  background: var(--color-dark);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  transform: translateX(0);
  transition: all var(--transition-normal);
}

.sidebar__header {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar__content {
  padding: 1rem 0;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar__list {
  list-style: none;
  list-style-type: none;
  padding-left: 0;
  margin: 0; /* Quitar márgenes por defecto */
}

.sidebar__item {
  position: relative;
  text-decoration: none;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  font-size: 1.5rem;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-light);
  padding-left: 2.5rem;
}

.sidebar__link.active {
  background: var(--gradient-primary);
  color: var(--color-light);
  font-weight: 600;
}

.sidebar__link i {
  width: 20px;
  text-align: center;
}

.sidebar__list,
.sidebar__list ul { /* Esto cubre también los submenús anidados */
    list-style: none !important;
    padding-left: 0 !important;
}

.sidebar__item,
.sidebar__item li { /* Esto cubre los items y subitems */
    list-style-type: none !important;
    margin-left: 0 !important;
}

/* Dropdown styles */
.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  font-size: 1.5rem;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-light);
}

.dropdown-toggle span {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-icon {
  transition: transform var(--transition-fast);
}

.dropdown-menu {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  padding-left: 1.5rem;
  animation: fadeIn var(--transition-normal);
}

.dropdown-menu .sidebar__link {
  padding-left: 3.5rem;
}

.dropdown-menu .sidebar__link:hover {
  padding-left: 4rem;
}

.sub-dropdown {
  background: rgba(0, 0, 0, 0.3) !important;
}

.sub-dropdown .sidebar__link {
  padding-left: 5rem;
}

.sub-dropdown .sidebar__link:hover {
  padding-left: 5.5rem;
}

/* Iframe responsive */
.iframe {
  width: 100%;
  height: calc(100vh - 60px);
  border: none;
  background: var(--color-light);
  transition: all var(--transition-normal);
}

/* Sidebar toggle para móviles */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: var(--gradient-primary);
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
      transform: translateX(-100%);
      position: fixed;
      z-index: 1000;
      height: 100vh;
  }
  
  .sidebar.active {
      transform: translateX(0);
  }
  
  .main-content {
      margin-left: 0;
  }
  
  .sidebar-toggle {
      display: flex;
  }
}

/* Animación para dropdowns */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
