*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-image: var(--gradient-dark);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}



/* HERO */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-primary-dark));
  color: var(--color-white);
  padding: var(--space-16) var(--space-6);
}

/* Contenido principal */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
}

.hero-content h1 {
  font-size: var(--text-4xl);
  font-family: var(--font-title);
  margin-bottom: var(--space-4);
}

.hero-content p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Fondo con formas geométricas */
.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
}

.wave, .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  background: var(--color-primary-light);
  animation: float 10s ease-in-out infinite alternate;
}

/* Ondas geométricas */
.wave1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -100px;
  border-radius: 40% 60% 70% 30% / 30% 50% 50% 70%;
  background: var(--color-primary-light);
  animation-duration: 12s;
}

.wave2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -150px;
  border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
  background: var(--color-accent-light);
  animation-duration: 15s;
}

/* Círculos flotantes */
.circle1 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 10%;
  background: var(--color-accent);
}

.circle2 {
  width: 150px;
  height: 150px;
  bottom: 15%;
  right: 5%;
  background: var(--color-primary);
}


.hero-buttons{
    align-items: center;
    justify-content: center;
    gap: 20px;
    display: flex;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: var(--text-3xl);
  }
  .hero-content p {
    font-size: var(--text-base);
  }
  .wave1, .wave2, .circle1, .circle2 {
    display: none; /* Ocultar los círculos de desktop */
  }

  /* Nuevo fondo para mobile */
  .hero-background {
    display: block;
  }

  .hero-background::before,
  .hero-background::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-primary-dark));
    opacity: 0.15;
    transform: rotate(0deg);
    border-radius: 50% 50% 50% 50%;
    animation: mobileFloat 8s ease-in-out infinite alternate;
    z-index: 1;
  }

  .hero-background::after {
    animation-delay: 4s;
  }

  /* Líneas diagonales más notorias */
  .hero-background .line {
    position: absolute;
    width: 120%;
    height: 4px; /* Aumentamos el grosor */
    background: var(--color-accent); /* Color más visible */
    opacity: 0.3; /* Más notoria */
    top: 20%;
    left: -10%;
    transform: rotate(-25deg);
    animation: lineMove 6s ease-in-out infinite alternate;
    z-index: 2;
  }

  .hero-background .line:nth-child(2) {
    top: 50%;
    animation-delay: 3s;
  }

  .hero-background .line:nth-child(3) {
    top: 80%;
    animation-delay: 6s;
  }

  .hero-buttons{
    flex-direction: column;
  }
}

/* Animaciones */
@keyframes mobileFloat {
  0% { transform: rotate(0deg) translateX(0) translateY(0); }
  50% { transform: rotate(15deg) translateX(20px) translateY(-15px); }
  100% { transform: rotate(0deg) translateX(0) translateY(0); }
}

@keyframes lineMove {
  0% { transform: rotate(-25deg) translateX(0); }
  50% { transform: rotate(-25deg) translateX(20px); } /* Movimiento más notorio */
  100% { transform: rotate(-25deg) translateX(0); }
}







/* ABOUT ME */
.about {
  position: relative;
  padding: var(--space-16) var(--space-6);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg));
  color: var(--color-white);
  overflow: hidden;
  flex-direction: column;
  gap: 50px;
}

/* Fondo */
.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* ---- LÍNEAS PREMIUM PARA DESKTOP ---- */
.about-background .line {
  position: absolute;
  width: 140%;
  height: 2px;
  background: var(--color-accent-light);
  opacity: 0.08;
  transform-origin: left center;
  animation: lineDrift 9s ease-in-out infinite;
  backdrop-filter: blur(2px);
}

.about-background .line1 { top: 22%; animation-delay: 0s; }
.about-background .line2 { top: 50%; animation-delay: 2.5s; }
.about-background .line3 { top: 78%; animation-delay: 5s; }

@keyframes lineDrift {
  0% {
    transform: translateX(-5%) rotate(-22deg);
    opacity: 0.07;
  }
  50% {
    transform: translateX(8%) rotate(-27deg);
    opacity: 0.12;
  }
  100% {
    transform: translateX(-5%) rotate(-22deg);
    opacity: 0.07;
  }
}

/* ---- CÍRCULOS PREMIUM PARA MOBILE ---- */
.about-background .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  background: var(--color-primary-light);
  animation: floatPremium 14s ease-in-out infinite;
  filter: blur(1px);
}

.about-background .circle1 {
  width: 110px;
  height: 110px;
  top: 12%;
  left: 14%;
  animation-duration: 14s;
}

.about-background .circle2 {
  width: 85px;
  height: 85px;
  bottom: 18%;
  right: 12%;
  animation-duration: 18s;
}

@keyframes floatPremium {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.20;
  }
  40% {
    transform: translate(12px, -18px) scale(1.04) rotate(3deg);
    opacity: 0.30;
  }
  75% {
    transform: translate(-10px, 8px) scale(0.98) rotate(-3deg);
    opacity: 0.22;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.20;
  }
}

/* ---- CONTENIDO ---- */
.about-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: var(--space-12);
  max-width: var(--container-xl);
  align-items: center;
}

.about-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-accent);
  box-shadow: var(--shadow-glow-accent);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  max-width: 500px;
}

.about-text h2 {
  font-family: var(--font-title);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.skill {
  background: var(--color-primary-light);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-primary);
}

/* ---- RESPONSIVE ---- */
@media screen and (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-8);
  }

  .about-image img {
    width: 150px;
    height: 150px;
  }

  .about-text h2 {
    font-size: var(--text-2xl);
  }

  .about-text p {
    font-size: var(--text-base);
  }

  .about-skills {
    justify-content: center;
  }

  /* MOBILE → mostrar círculos */
  .about-background .circle { display: block; }
  .about-background .line { display: none; }
}

@media screen and (min-width: 769px) {
  /* DESKTOP → mostrar líneas */
  .about-background .circle { display: none; }
  .about-background .line { display: block; }
}


/* Redes sociales About Me */
.about-socials {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  gap: var(--space-4);
  z-index: 10;
}

.about-socials a {
  color: var(--color-white);
  font-size: var(--text-xl);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-socials a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-socials {
    position: static;
    margin-top: var(--space-6);
    justify-content: center;
    gap: var(--space-6);
  }
}





/* ---------------------------
   SECCIÓN PROYECTOS
---------------------------- */
.projects-section {
  padding: var(--space-16) var(--space-16);
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

/* 🟦 LÍNEAS (desktop) */
@media (min-width: 768px) {
  .projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255,255,255,0.05) 100%
      ),
      repeating-linear-gradient(
        to right,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 1px,
        transparent 120px
      );
    opacity: 0.25;
    z-index: var(--z-back);
  }
}

/* 🟦 CÍRCULOS (mobile) */
@media (max-width: 767px) {


    .projects-section {
        padding: var(--space-16) var(--space-4);
    }


  .projects-section::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: var(--gradient-accent);
    filter: blur(130px);
    opacity: 0.25;
    z-index: var(--z-back);
    border-radius: 50%;
  }
}

.section-title {
  color: var(--color-text);
  font-family: var(--font-title);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-12);
  text-align: center;
}

/* ---------------------------
   GRID
---------------------------- */
.projects-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .projects-grid {
    flex-direction: column;
  }
}


@media (max-width: 1280px) {
  .projects-grid {
    flex-wrap: wrap;
    
  }
}



/* ---------------------------
   CARD
---------------------------- */
.project-card {
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  position: relative;
}

@media (max-width: 1280px) {
  .project-card {
    max-width: 45%;    
  }
}

@media (max-width: 768px) {
  .project-card {
    max-width: none;    
  }
}

/* Glow sutil */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(25px);
}

/* Hover */
.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: var(--shadow-glow-accent);
}

.project-card:hover::after {
  opacity: 0.12;
}

/* ---------------------------
   IMG
---------------------------- */
.project-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: var(--border-light);
}

/* ---------------------------
   CONTENT
---------------------------- */
.project-content {
  padding: var(--space-6);
}

.project-content h3 {
  font-family: var(--font-title);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

.project-content p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* ---------------------------
   TECH LIST
---------------------------- */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.tech-list span {
  padding: 4px 10px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-accent-light);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}

/* ---------------------------
   LINKS
---------------------------- */
.project-links {
  display: flex;
  gap: var(--space-3);
}

.project-links a {
  flex: 1;
  text-align: center;
  padding: var(--space-2) 0;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-text);
  transition: var(--transition-normal);
  text-decoration: none;
}

/* Demo */
.btn-demo {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-glow-accent);
}

.btn-demo:hover {
  opacity: 0.85;
}

.btn-demo i {
  margin-left: 6px;
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0.7;
}

/* Hover general del botón */
.btn-demo:hover i {
  transform: translateY(-2px) translateX(2px);
  opacity: 1;
}


/* Code */
.btn-code {
  background: var(--color-bg-light);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-code:hover {
  background: var(--color-bg-hover);
}


/* ---------------------------
   IMG con Blur
---------------------------- */
.project-img {
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: blur(3px) brightness(0.8);
  transition: filter 0.5s ease;
}

/* Al hacer hover en la card, reducir el blur */
.project-card:hover .project-img img {
  filter: blur(1px) brightness(0.95);
}


@media (max-width: 768px) {
    .project-img img {
        filter: blur(3px) brightness(0.8);
    }
}












/* ---------------------------
   SECCIÓN TECNOLOGÍAS
---------------------------- */
.tech-section {
  padding: var(--space-16) var(--space-4);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* ⭐ FONDO DESKTOP (Líneas + círculos geométricos + brillos) */
@media (min-width: 768px) {

  /* Capa principal */
  .tech-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255,255,255,0.04) 100%
      ),
      repeating-linear-gradient(
        to right,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 1px,
        transparent 120px
      );
    opacity: 0.25;
    z-index: 0;
  }

  /* 🔵 Círculo geométrico grande a la izquierda */
  .tech-section::after {
    content: "";
    position: absolute;
    top: 10%;
    left: -50px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.30);
    background: radial-gradient(
      circle,
      rgba(0, 120, 255, 0.10),
      transparent 70%
    );
    filter: blur(8px);
    z-index: 0;
  }

  /* 🔵 Segundo círculo más chico → estilo Hero */
  .tech-section .circle-small {
    content: "";
    position: absolute;
    bottom: 5%;
    right: 8%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,120,255,0.30);
    filter: blur(10px);
    z-index: 0;
  }
}

/* 🔵 CÍRCULO DIFUMINADO (MOBILE) */
@media (max-width: 767px) {
  .tech-section::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: var(--gradient-primary);
    filter: blur(200px);
    opacity: 1;
    border-radius: 50%;
    z-index: 0;
  }
}


/* ---------------------------
   GRID (FLEX)
---------------------------- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* 👉 centra horizontal */
  align-items: center;       /* 👉 centra vertical */
  gap: var(--space-6);
  margin-top: var(--space-12);

  /* Para que los items mantengan tamaño similar al grid original */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Cada item ocupa un espacio parecido al "minmax(130px, 1fr)" */
.tech-item {
  flex: 1 1 130px;  /* 👉 se comporta igual a minmax(130px, 1fr) */
  max-width: 200px; /* 👉 evita que se estiren demasiado */
  
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

/* HOVER */
.tech-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

/* ---------------------------
   ICON ANIMATION
---------------------------- */
@keyframes techFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.tech-item i {
  font-size: 2rem;
  color: var(--color-accent-light);
  margin-bottom: var(--space-3);
  animation: techFloat 3s ease-in-out infinite;
}

.tech-item span {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-text);
}










/* ---------------------------
   SECCIÓN SERVICIOS
---------------------------- */
.services-section {
  padding: var(--space-16) var(--space-4);
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

/* ---------------------------
   FONDO GEOMÉTRICO - SERVICES (reemplazar)
---------------------------- */
.services-section {
  padding: var(--space-16) var(--space-4);
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
  z-index: 1; /* asegura que el contenido quede por encima */
}

/* capa principal: líneas + diagonal sutil (desktop) */
@media (min-width: 768px) {
  .services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    /* capas combinadas: diagonal ligera + líneas finas */
    background-image:
      linear-gradient(130deg, rgba(37,99,235,0.04) 0%, rgba(37,99,235,0.00) 45%),
      repeating-linear-gradient(
        to right,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 140px
      );
    opacity: 0.30;
  }

  /* círculo grande difuminado (izq-arriba) */
  .services-section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -140px;
    left: -120px;
    border-radius: 50%;
    z-index: 0;
    background: radial-gradient(circle at 30% 30%, rgba(59,90,198,0.14), rgba(37,99,235,0.06) 40%, transparent 60%);
    filter: blur(36px);
    animation: float-shape-1 16s ease-in-out infinite alternate;
    opacity: 0.95;
  }

  /* círculo mediano con borde (der-abajo) - usa un pseudo-elemento visual via sombra */
  .services-section .shape-accent {
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -100px;
    border-radius: 50%;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.12), rgba(30,58,138,0.02) 50%, transparent 70%);
    box-shadow: 0 0 60px rgba(37,99,235,0.06);
    filter: blur(18px);
    transform: translate3d(0,0,0);
    animation: float-shape-2 18s ease-in-out infinite alternate-reverse;
    pointer-events: none;
  }
}

/* móvil: círculo grande arriba-izq más pronunciado y líneas invertidas */
@media (max-width: 767px) {
  .services-section::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -90px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    z-index: 0;
    background: radial-gradient(circle at 35% 35%, rgba(59,90,198,0.16), rgba(37,99,235,0.06) 45%, transparent 65%);
    filter: blur(120px);
    opacity: 0.95;
    pointer-events: none;
  }

  /* sutil banda diagonal en mobile para dar contraste */
  .services-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
  }
}

/* animaciones suaves para los círculos */
@keyframes float-shape-1 {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(18px,-30px,0) rotate(6deg); }
}
@keyframes float-shape-2 {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(-20px,30px,0) rotate(-4deg); }
}


/* 🔵 Animation movement */
@keyframes floating {
  0%   { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-40px) translateX(40px); }
}

/* ---------------------------
   GRID FLEX
---------------------------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  margin-top: var(--space-12);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------
   CARD
---------------------------- */
.service-card {
  flex: 1 1 260px;
  max-width: 320px;

  background: rgba(255,255,255,0.03);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);

  text-align: center;
  backdrop-filter: blur(12px);

  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Icono */
.service-card i {
  font-size: 2.3rem;
  color: var(--color-accent-light);
  margin-bottom: var(--space-4);
  text-shadow: var(--shadow-glow-accent);
}

/* Título */
.service-card h3 {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

/* Descripción */
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* HOVER */
.service-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

/* LUZ EN HOVER */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-slow);
  mix-blend-mode: overlay;
}

.service-card:hover::after {
  opacity: 0.15;
}












.cta-section {
  background: var(--gradient-dark);
  padding: var(--space-16) var(--space-4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: var(--container-md);
  width: 100%;
  text-align: center;
  color: var(--color-text);
}

.cta-text h2, .contact-info h3 {
  font-family: var(--font-title);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
  color: var(--color-primary-light);
}

.cta-text p {
  font-family: var(--font-text);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  width: 100%;
}

.cta-form input,
.cta-form textarea {
  background: var(--color-bg-light);
  border: var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-family: var(--font-text);
  color: var(--color-text);
  transition: var(--transition-normal);
}

.cta-form input:focus,
.cta-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow-accent);
  outline: none;
}

.cta-form button.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  border: none;
  padding: var(--space-3);
  font-size: var(--text-lg);
  font-family: var(--font-title);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cta-form button.btn-primary:hover {
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-2px);
}

@media (min-width: var(--bp-md)) {
  .cta-container {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-12);
  }

  .cta-text, .cta-form {
    flex: 1;
  }
}


.cta-section {
  position: relative;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

/* Formulario */
.cta-form {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Información de contacto */
.contact-info {
margin-top: 50px;
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--color-white);
}

/* Redes sociales en contacto */
.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-socials a {
  color: var(--color-white);
  font-size: 1.5rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-socials a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    align-items: center;
    text-align: center;
  }
}


/* Links de contacto estilo página */
.contact-info a {
  color: inherit;        /* hereda el color del párrafo */
  text-decoration: none; /* quita subrayado */
  transition: all 0.6s ease;
}

.contact-info a:hover {
  color: var(--color-accent);  /* color de acento al pasar el mouse */
  text-shadow: 0 0 6px var(--color-accent-light);
}

.form-message{
    font-family: var(--font-text);
    font-size: var(--text-lg);
}


.form-loader {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-rojo); /* o el color que uses para acentos */
}




/* ---------------------------
   SECCIÓN DESCARGAR CV
---------------------------- */
.cv-section {
  position: relative;
  padding: var(--space-16) var(--space-6);
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-dark);
  color: var(--color-white);
}

.cv-content {
  position: relative;
  z-index: 10;
  max-width: var(--container-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cv-content p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Botón elegante */
.btn-cv {
  display: inline-block;
  padding: var(--space-3) var(--space-10);
  font-family: var(--font-title);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
  background: var(--gradient-accent);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-glow-accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-cv:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

/* ---------------------------
   FONDO ANIMADO
---------------------------- */
.cv-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Círculos flotantes */
.cv-circle1, .cv-circle2 {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: var(--color-accent-light);
  animation: float 12s ease-in-out infinite alternate;
}

.cv-circle1 {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -100px;
}

.cv-circle2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: -80px;
  animation-duration: 15s;
}

/* Onda geométrica */
.cv-wave {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 40% 60% 70% 30% / 30% 50% 50% 70%;
  background: var(--color-primary-light);
  opacity: 0.1;
  animation: waveFloat 20s ease-in-out infinite alternate;
}

/* Animaciones */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes waveFloat {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -55%) rotate(15deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

/* ---------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 768px) {
  .cv-circle1 {
    width: 150px;
    height: 150px;
    top: -40px;
    left: -50px;
  }

  .cv-circle2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    right: -40px;
    animation-duration: 20s;
  }

  .cv-wave {
    width: 300px;
    height: 300px;
    opacity: 0.07;
    animation-duration: 25s;
  }

  .cv-content p {
    font-size: var(--text-sm);
  }

  .btn-cv {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
}
