/* Variables de color y fuentes mejoradas */
:root {
  --primary-color: #1d9aaf; /* Azul más profesional y menos saturado */
  --primary-light: rgba(29, 154, 175, 0.1); /* Versión clara para fondos */
  --secondary-color: #23252d; /* Gris oscuro más distinguido */
  --accent-color: #e88c30; /* Color complementario para acentos */
  --text-color: #2d3142; /* Color de texto principal más suave */
  --text-light: #5d6070; /* Color de texto secundario */
  --light-color: #ffffff;
  --bg-light: #f8f9fa; /* Fondo claro para secciones */
  --bg-alt: #f1f5f9; /* Fondo alternativo */
  --dark-overlay: rgba(24, 26, 33, 0.75); /* Overlay más profesional */
  --border-color: #e2e8f0; /* Color para bordes */

  /* Tipografías refinadas */
  --font-primary: "Inter", "Montserrat", sans-serif; /* Inter como primera opción */
  --font-secondary: "Poppins", "Open Sans", sans-serif; /* Poppins para subtítulos */
  --font-accent: "Playfair Display", serif; /* Para textos destacados */

  /* Otras variables */
  --transition-speed: 300ms;
  --section-padding: 6rem 0;
  --border-radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Importar fuentes profesionales actualizadas */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap");

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-light);
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Encabezado y navegación mejorados */
.header {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.header-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(24, 26, 33, 0.9),
    rgba(24, 26, 33, 0.75)
  ); /* Gradiente más sofisticado */
  z-index: -1;
}

.header-content {
  position: relative;
  z-index: 1;
  height: 100%;
  color: var(--light-color);
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  position: relative;
  transition: all var(--transition-speed);
  z-index: 1000;
}

.logo img {
  height: 60px;
  transition: all var(--transition-speed);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-menu-item {
  position: relative;
  transition: all var(--transition-speed);
}

.nav-menu-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

.nav-menu-item:hover::after,
.nav-menu-item.active::after {
  width: 100%;
}

.nav-menu-link {
  font-weight: 600;
  transition: color var(--transition-speed);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  color: var(--light-color);
  text-transform: uppercase; /* Añadido para un aspecto más profesional */
}

.nav-menu-link:hover,
.nav-menu-item.active .nav-menu-link {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  width: 30px;
  height: 2px; /* Más delgado */
  background-color: var(--light-color);
  transition: all var(--transition-speed);
}

.caja-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logoP {
  text-align: center;
}

.logoP img {
  max-width: 300px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Secciones y encabezados refinados */
.section {
  padding: var(--section-padding);
  max-width: 1400px;
  margin: 0 auto;
  width: 90%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  font-family: var(
    --font-accent
  ); /* Fuente más distintiva para títulos de sección */
  letter-spacing: -0.5px;
}

.underline {
  height: 4px;
  width: 60px;
  background-color: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* Sección de servicios completamente renovada */
.services-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--light-color);
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.services-title {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.services-underline {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin-bottom: 3rem;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Cambiado a 3 columnas */
  gap: 2.5rem;
  width: 100%;
}

.services-column {
  display: flex;
  flex-direction: column;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-item:hover {
  transform: translateX(8px);
  color: var(--primary-color);
}

.service-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.service-text {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Servicios alternativos - estilo de tarjetas */
.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-card-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  margin-top: auto;
}

.service-card-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.service-card-link:hover i {
  transform: translateX(5px);
}

/* Proyectos y portafolio mejorados */
.projects-container {
  width: 100%;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
  background-color: var(--light-color);
  position: relative;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.image-wrap {
  height: 240px; /* Altura ligeramente mayor */
  overflow: hidden;
  position: relative;
}

.image-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover .image-wrap::after {
  opacity: 1;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project:hover .image-wrap img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.75rem;
}

.project-info a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  display: block;
  transition: color var(--transition-speed);
}

.project-info a:hover {
  color: var(--primary-color);
}

.project-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.project-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Paginación refinada */
#paginacion {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-link,
.page-link-next {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  background-color: var(--light-color);
  color: var(--text-color);
  font-weight: 600;
  transition: all var(--transition-speed);
  border: 2px solid transparent;
  min-width: 40px;
  box-shadow: var(--shadow-sm);
}

.page-link-next {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.8rem 1.5rem;
  gap: 0.5rem;
}

.page-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-link-next:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  color: var(--light-color);
  border-color: var(--primary-color);
}

/* Carrusel mejorado */
#carousel-section {
  padding: 0;
  max-width: 100%;
  width: 100%;
  background-color: var(--bg-alt);
  margin: 5rem 0;
}

.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius);
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-slides {
  display: flex;
  transition: transform 0.8s ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  background-color: var(--light-color);
}

.carousel-content {
  display: flex;
  align-items: center;
  padding: 5rem 3rem;
  height: 100%;
}

.carousel-text {
  flex: 1;
  padding-right: 4rem;
}

.carousel-text h2 {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.carousel-text p {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.carousel-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.carousel-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 30px; /* Más redondeado */
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.carousel-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.carousel-button:hover::before {
  transform: translateX(0);
}

.carousel-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
}

.carousel-control:hover {
  background-color: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Sección Sobre Mí mejorada */
.about-container {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 4rem;
  box-shadow: var(--shadow-md);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 2rem;
}

.about-image {
  position: relative;
}

.image-frame {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-frame:hover img {
  transform: scale(1.03);
}

.experience-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 110px;
  height: 110px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.experience-badge span:first-child {
  font-size: 2rem;
  font-weight: 900;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h3 {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.about-text h4 {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-family: var(--font-secondary);
  line-height: 1.7;
}

.about-intro {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.skills-container {
  margin: 1.5rem 0;
}

.skills-container h5 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  font-family: var(--font-secondary);
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.skill-text {
  font-size: 1rem;
  font-weight: 500;
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-cta {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background-color: var(--primary-color);
  color: white;
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--primary-color);
}

.about-cta:hover {
  background-color: transparent;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portfolio-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.portfolio-link:hover {
  color: var(--primary-color);
}

.portfolio-link:hover i {
  transform: translateX(5px);
}

/* Sección de Contacto mejorada */
.contact-container {
  text-align: center;
  padding: 3rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.icon-message {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 30px;
  font-weight: 600;
  transition: all var(--transition-speed);
  border: 2px solid var(--primary-color);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.icon-message i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* Sección de contacto profesional */
.contact-professional {
  background-color: var(--bg-alt);
  padding: 4rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 3rem;
}

.contact-info {
  display: flex;
  align-items: center;
}

.contact-details h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-accent);
}

.contact-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 500;
  font-family: var(--font-secondary);
}

.contact-methods {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-method:hover {
  transform: translateX(10px);
}

.contact-method i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1.5rem;
  width: 50px;
  text-align: center;
  background-color: var(--primary-light);
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-link:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.contact-form {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  background-color: var(--light-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 154, 175, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Botón de WhatsApp mejorado */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer mejorado */
#footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 5rem 2rem 2rem;
  margin-top: 5rem;
}

.wrap-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.logo-footer {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.logo-footer img {
  max-width: 200px;
  margin: 0 auto;
  opacity: 0.9;
}

.projectos-realizar {
  flex: 2;
  min-width: 300px;
}

.encabezo-prj-footer {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  font-family: var(--font-accent);
  color: var(--light-color);
}

.encabezo-prj-footer::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.proyectos-realizar-p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.clientes-mundo {
  flex: 1;
  min-width: 250px;
}

.clientes-mundo-p {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-accent);
  color: var(--light-color);
}

.clientes-mundo img {
  border-radius: var(--border-radius);
  max-width: 100%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.clientes-mundo img:hover {
  opacity: 1;
}

.politicas {
  max-width: 1200px;
  margin: 3rem auto 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.politicas ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.politicas a {
  transition: color 0.3s ease;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.politicas a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Animaciones y efectos adicionales */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos para navegación fija mejorada */
.nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.9rem 2.5rem;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.nav.fixed .logo img {
  height: 50px;
}

/* Estilos para menú móvil mejorado */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(3px);
}

.menu-backdrop.active {
  visibility: visible;
}

/* Estilos para la barra de desplazamiento personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #167a8b;
}

/* Animación para la entrada de slides */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-slide.active .carousel-text h2,
.carousel-slide.active .carousel-text p,
.carousel-slide.active .carousel-button {
  animation: fadeInRight 0.8s ease forwards;
  opacity: 0;
}

.carousel-slide.active .carousel-text p {
  animation-delay: 0.2s;
}

.carousel-slide.active .carousel-button {
  animation-delay: 0.4s;
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-content {
    padding: 4rem 2rem;
  }

  .carousel-text h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 4rem 0;
  }

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

  .caja-logo {
    width: 80%;
  }

  .logoP img {
    max-width: 250px;
  }

  .carousel-content {
    height: auto;
    padding: 4rem 5%;
    flex-direction: column-reverse;
  }

  .carousel-text {
    order: 2;
    padding-right: 0;
    margin-top: 2rem;
    text-align: center;
  }

  .carousel-image {
    order: 1;
  }

  .carousel-image img {
    max-height: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    max-width: 450px;
    margin: 0 auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-container {
    padding: 3rem 2rem;
  }

  .services-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }

  .section {
    width: 95%;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 100;
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .services-title {
    font-size: 1.8rem;
  }

  .services-container {
    padding: 2.5rem 1.5rem;
  }

  .about-container {
    padding: 2.5rem 1.5rem;
  }

  .cta-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .carousel-text h2 {
    font-size: 1.8rem;
  }

  .carousel-button {
    padding: 0.9rem 1.8rem;
  }

  .politicas ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-method i {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    margin-right: 1rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 2.5rem 0;
  }

  .logoP img {
    max-width: 200px;
  }

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

  .section-header {
    margin-bottom: 2.5rem;
  }

  .services-title {
    font-size: 1.6rem;
  }

  .services-container {
    padding: 2rem 1.2rem;
  }

  .service-text {
    font-size: 1rem;
  }

  .service-item {
    padding: 1rem 0;
  }

  .project-info a {
    font-size: 1.1rem;
  }

  .carousel-text h2 {
    font-size: 1.4rem;
  }

  .carousel-text p {
    font-size: 1rem;
  }

  .carousel-content {
    padding: 3rem 1.5rem;
  }

  .btn-contact,
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }

  .about-text h4 {
    font-size: 1.1rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .experience-badge {
    width: 90px;
    height: 90px;
    right: -10px;
    bottom: -10px;
    font-size: 0.7rem;
  }

  .experience-badge span:first-child {
    font-size: 1.5rem;
  }

  .wrap-footer {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .encabezo-prj-footer::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-details h3 {
    font-size: 1.8rem;
  }
}

/* Estilos adicionales para la sección de servicios actualizada */

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.services-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
  font-family: var(--font-secondary);
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-bottom: 4rem;
}

.services-subtitle {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--secondary-color);
  position: relative;
}

.services-subtitle::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.services-list-container {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.services-cta {
  text-align: center;
  background-color: var(--bg-alt);
  padding: 3rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

.services-cta h3 {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.services-cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Versión mejorada de los items de servicio */
.service-item {
  position: relative;
  padding-left: 1.5rem;
}

.service-item .service-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1rem;
}

.service-item .service-text {
  font-family: var(--font-secondary);
  font-weight: 500;
}

/* Efectos de hover refinados */
.service-card {
  cursor: pointer;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px);
}

.service-card:hover .service-card-icon {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.service-card-icon {
  transition: all 0.4s ease;
}

.service-card:hover h3 {
  color: var(--primary-color);
}

/* Media queries para los servicios */
@media (max-width: 992px) {
  .services-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .services-list-container {
    padding: 2.5rem 2rem;
  }

  .services-cta {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-intro p {
    font-size: 1.05rem;
  }

  .services-subtitle {
    font-size: 1.4rem;
  }

  .services-cta h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-list-container {
    padding: 2rem 1rem;
  }

  .services-cta {
    padding: 2rem 1rem;
  }

  .services-cta h3 {
    font-size: 1.4rem;
  }

  .services-cta p {
    font-size: 1rem;
  }
}

/* Estilos para la sección de Experiencia Profesional mejorada */

.experience-container {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

/* Métricas de experiencia */
.experience-metrics {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.metric-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.metric-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
}

.metric-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.4;
}

/* Línea de tiempo */
.experience-timeline {
  margin: 3rem 0;
}

.timeline-header h3 {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.timeline-header h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.timeline-entry:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-date {
  width: 20%;
  text-align: center;
  padding: 0.7rem 1rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.timeline-content {
  width: 75%;
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-entry:nth-child(odd) .timeline-content::before {
  left: -7.5px;
}

.timeline-entry:nth-child(even) .timeline-content::before {
  right: -7.5px;
}

.timeline-content h4 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.timeline-entry:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Áreas de especialización */
.expertise-areas {
  margin: 4rem 0 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.expertise-areas h3 {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.expertise-areas h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.expertise-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.expertise-info {
  flex: 1;
}

.expertise-info h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.expertise-bar {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.expertise-level {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
  width: 0;
}

/* Animación para las barras de nivel */
.animate-bars .expertise-level {
  animation: fillBar 1.5s ease-in-out forwards;
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--width, 90%);
  }
}

/* Testimonios */
.experience-testimonials {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.experience-testimonials h3 {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.experience-testimonials h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  margin-bottom: 1.5rem;
}

.testimonial-item::before {
  content: "\201C";
  font-family: serif;
  font-size: 6rem;
  color: rgba(26, 154, 175, 0.1);
  position: absolute;
  top: -15px;
  left: 10px;
  line-height: 1;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.author-info h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--secondary-color);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.testimonial-indicators {
  display: flex;
  gap: 8px;
}

.testimonial-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-indicators .indicator.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Estilos para la sección de Filosofía de Diseño (reemplazo de sobremi-minimal) */

.philosophy-container {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1e2a3a 100%);
  color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 4rem 0;
}

.philosophy-content {
  display: flex;
  align-items: stretch;
}

.philosophy-text {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.philosophy-text h2 {
  font-family: var(--font-accent);
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.philosophy-separator {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin-bottom: 2rem;
}

.philosophy-quote {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.philosophy-author {
  font-style: italic;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.philosophy-principles {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.principle-item {
  text-align: center;
}

.principle-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.principle-item:hover .principle-icon {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: white;
}

.principle-text {
  font-weight: 500;
  font-size: 0.9rem;
}

.philosophy-cta {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 5px 15px rgba(26, 154, 175, 0.3);
  border: 2px solid var(--primary-color);
}

.philosophy-cta:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-3px);
}

.philosophy-visual {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-frame {
  position: relative;
  z-index: 2;
}

.animated-logo {
  max-width: 250px;
  animation: float 6s ease-in-out infinite;
}

.design-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.design-element {
  position: absolute;
  background-color: var(--primary-color);
  opacity: 0.1;
  border-radius: 50%;
}

.element-1 {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 10%;
  animation: moveSlow 20s linear infinite;
}

.element-2 {
  width: 100px;
  height: 100px;
  bottom: 15%;
  right: 20%;
  animation: moveSlow 15s linear infinite reverse;
}

.element-3 {
  width: 70px;
  height: 70px;
  top: 60%;
  left: 20%;
  animation: moveSlow 12s linear infinite;
}

.element-4 {
  width: 50px;
  height: 50px;
  top: 30%;
  right: 10%;
  animation: moveSlow 10s linear infinite reverse;
}

@keyframes moveSlow {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(20px) translateX(10px);
  }
  50% {
    transform: translateY(0) translateX(20px);
  }
  75% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Media queries para responsividad */
@media (max-width: 992px) {
  .experience-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-container::before {
    left: 0;
  }

  .timeline-entry {
    flex-direction: column !important;
    margin-left: 20px;
  }

  .timeline-date {
    width: auto;
    margin-bottom: 1rem;
    align-self: flex-start;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-entry:nth-child(odd) .timeline-content::before,
  .timeline-entry:nth-child(even) .timeline-content::before {
    left: -27px;
  }

  .philosophy-content {
    flex-direction: column;
  }

  .philosophy-text {
    padding: 3rem 2rem;
  }

  .philosophy-visual {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .experience-container {
    padding: 2rem 1.5rem;
  }

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

  .philosophy-quote {
    font-size: 1.1rem;
  }

  .philosophy-principles {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .principle-item {
    width: 45%;
  }

  .testimonial-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .experience-metrics {
    grid-template-columns: 1fr;
  }

  .metric-item {
    padding: 1.2rem 1rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .timeline-header h3,
  .expertise-areas h3,
  .experience-testimonials h3 {
    font-size: 1.5rem;
  }

  .principle-item {
    width: 100%;
  }

  .philosophy-text h2 {
    font-size: 1.8rem;
  }

  .philosophy-text {
    padding: 2.5rem 1.5rem;
  }

  .animated-logo {
    max-width: 200px;
  }
}

/* Estilos mejorados para la línea de tiempo */

/* Contenedor principal de la línea de tiempo */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Línea central mejorada - con gradiente y efectos */
.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(
    to bottom,
    rgba(26, 154, 175, 0.1),
    var(--primary-color),
    rgba(26, 154, 175, 0.1)
  );
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 0 10px rgba(26, 154, 175, 0.2);
}

/* Añadir puntos decorativos a lo largo de la línea */
.timeline-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(26, 154, 175, 0.2);
}

/* Punto final de la línea */
.timeline-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(26, 154, 175, 0.2);
}

/* Entradas de la línea de tiempo */
.timeline-entry {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Añadir círculos decorativos para cada entrada */
.timeline-entry::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid white;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(26, 154, 175, 0.3);
  transition: all 0.3s ease;
}

/* Efecto hover para los círculos */
.timeline-entry:hover::before {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 5px rgba(26, 154, 175, 0.3),
    0 0 20px rgba(26, 154, 175, 0.4);
}

/* Alternar contenido izquierda/derecha */
.timeline-entry:nth-child(odd) {
  flex-direction: row-reverse;
}

/* Fecha */
.timeline-date {
  width: 120px;
  text-align: center;
  padding: 0.8rem 0;
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(26, 154, 175, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Animar las fechas al hacer hover */
.timeline-entry:hover .timeline-date {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(26, 154, 175, 0.4);
}

/* Contenido de la entrada */
.timeline-content {
  width: calc(50% - 50px);
  background-color: white;
  padding: 1.8rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

/* Efecto hover para el contenido */
.timeline-entry:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Título del puesto */
.timeline-content h4 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

/* Descripción */
.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Líneas conectoras */
.timeline-entry:nth-child(odd)::after,
.timeline-entry:nth-child(even)::after {
  content: "";
  position: absolute;
  top: 25px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-light);
  z-index: 1;
}

.timeline-entry:nth-child(odd)::after {
  left: 50%;
}

.timeline-entry:nth-child(even)::after {
  right: 50%;
}

/* Título principal de la sección */
.timeline-header h3 {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary-color);
  position: relative;
}

/* Línea decorativa bajo el título */
.timeline-header h3::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Animación de entrada para la línea de tiempo */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-entry {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-entry:nth-child(1) {
  animation-delay: 0.2s;
}

.timeline-entry:nth-child(2) {
  animation-delay: 0.4s;
}

.timeline-entry:nth-child(3) {
  animation-delay: 0.6s;
}

.timeline-entry:nth-child(4) {
  animation-delay: 0.8s;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 30px;
  }

  .timeline-entry {
    flex-direction: column !important;
    margin-left: 60px;
    margin-bottom: 2.5rem;
  }

  .timeline-entry::before {
    left: 30px;
    transform: translateX(-50%);
  }

  .timeline-entry:hover::before {
    transform: translateX(-50%) scale(1.2);
  }

  .timeline-entry::after {
    display: none;
  }

  .timeline-date {
    width: 120px;
    margin-bottom: 1rem;
  }

  .timeline-content {
    width: 100%;
  }
}

/* Estilos para validación del formulario de contacto */

/* Estilos base para campos del formulario */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  background-color: var(--light-color);
}

/* Estilos para campos válidos e inválidos */
.form-group input.is-valid,
.form-group select.is-valid,
.form-group textarea.is-valid {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.05);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

/* Mensaje de error */
.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: block;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

/* Iconos para estados de validación */
.form-group.has-validation {
  position: relative;
}

.form-group.has-validation::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.form-group input.is-valid + .is-valid-icon::after,
.form-group select.is-valid + .is-valid-icon::after,
.form-group textarea.is-valid + .is-valid-icon::after {
  color: #28a745;
}

.form-group input.is-invalid + .is-invalid-icon::after,
.form-group select.is-invalid + .is-invalid-icon::after,
.form-group textarea.is-invalid + .is-invalid-icon::after {
  content: "\f00d";
  color: #dc3545;
}

/* Botón de envío */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.btn-submit:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit i {
  margin-right: 0.5rem;
}

/* Mensaje de éxito */
.form-success {
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.form-success i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-family: var(--font-accent);
}

.form-success p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de carga */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s infinite linear;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
  }

  .btn-submit {
    padding: 0.9rem;
  }
}
