:root {
  /* Colores principales */
  --blanco: white;
  --blanco-2: rgba(255, 255, 255, 0.2);
  --gris-f: #757575;
  --negro: black;
  --negro-5: rgba(0, 0, 0, 0.5);
  --negro-7: rgba(0, 0, 0, 0.75);
  --texto-oscuro: #1e1e1ed9;
  --texto-sky: #558aff;
  --sombra-ppal: #c9c9c9;

  /* Tipografía */
  --tipo-titular: "Playfair Display", serif;
  --tipo-principal: "Inter", sans-serif;
  --tipo-alternativo: "Poppins", sans-serif;

  /* Espaciado */
  --espaciado-xs: 0.5rem;
  --espaciado-sm: 1rem;
  --espaciado-md: 2rem;
  --espaciado-lg: 3rem;
  --espaciado-xl: 5rem;

  /* Bordes */
  --border-radius: 5px;
  --border-radius-lg: 50%;
}

/*esto lo hago para cambiar colores en base a si esta activo o no el dark mode*/
@media screen and (prefers-color-scheme: dark) {
  :root {
    --blanco: #181818;
    --blanco-2: rgba(0, 0, 0, 0.2);
    --gris-f: grey;
    --negro: #e0e0e0;
    --negro-5: rgba(255, 255, 255, 0.5);
    --negro-7: rgba(255, 255, 255, 0.75);
  }
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  vertical-align: baseline;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: none;
}

video {
  max-width: 100%;
  width: 100%;
  display: flex;
  object-fit: cover;
  object-position: center center;
}

p a {
  display: inline;
}

li {
  list-style-type: none;
}

table,
tr,
td {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  scroll-behavior: smooth;
  /* Prevenir scroll bounce en iOS */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  /* Prevenir scroll bounce */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Reglas específicas para iOS - Solo overscroll */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  .main {
    -webkit-overflow-scrolling: touch;
  }
}

/* Scroll suave para navegación */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

form,
button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  -webkit-hyphens: auto;
  hyphens: auto;
  background-color: transparent;
  display: flex;

  color: inherit;
}

body {
  min-height: 100vh;

  background-color: var(--negro);
  color: var(--blanco);
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

img {
  /* max-width: 100%; 
    width: 100%;*/
  display: block;
  object-fit: cover;
  object-position: center center;
  /* Optimización de imágenes */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Optimización específica para imágenes de proyectos */
.slider_img {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Optimización para iconos SVG */
.svg {
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 0.3s ease;
}

.svg:hover {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
li {
  list-style-type: none;
}

.circulos {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  filter: blur(40px);
  animation: circulo1 50s linear infinite both;
}

.circulos .circulo {
  position: absolute;
  width: 50%;
  height: 50%;

  animation: circulo1 50s linear infinite both;
}

.circulos .circulo1 {
  top: 0%;
  left: 0%;
}

.circulos .circulo1 .path {
  fill: var(--gris-f);
}

.circulos .circulo2 {
  top: 0%;
  right: 0%;
}

.circulos .circulo2 .path {
  fill: var(--negro);
}

.circulos .circulo3 {
  bottom: 0%;
  left: 0%;
}

.circulos .circulo3 .path {
  fill: #2e8b57;
}

.circulos .circulo4 {
  bottom: 0%;
  right: 0%;
}

.circulos .circulo4 .path {
  fill: skyblue;
}

.header {
  width: 100%;
  min-height: 5em;
  padding: 1em 2em;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  /* Header completamente transparente - sin franja visible */
  background: none;
  backdrop-filter: none;
}

.header .ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.3em;
}

.header .li {
  margin: 0 0.2em;
}

/* Logo en el header */
.header .logo {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  transition: transform 0.3s ease;
  object-fit: contain;
  /* Mejorar calidad de imagen - enfoque diferente */
  image-rendering: auto;
  image-rendering: smooth;
  /* Suavizar y mejorar calidad */
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  /* Evitar pixelado */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.header .logo:hover {
  transform: scale(1.05) translateZ(0);
  filter: contrast(1.2) brightness(1.1) saturate(1.2);
}

/* Enlaces del header en mayúsculas */
.header .a {
  color: var(--blanco);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5em 1em;
  position: relative;
  transition: all 0.3s ease;
}

.header .a:hover {
  color: var(--texto-sky);
}

/* Línea sutil debajo en hover - excluir logo */
.header .a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--texto-sky);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header .a:hover::after {
  width: 80%;
}

/* Excluir logo del efecto de línea */
.header .a:has(.logo)::after {
  display: none;
}

.main {
  background-color: var(--negro-7);
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
  /* Compensar header absoluto */
  padding-top: 5em;
  overflow-x: hidden;
  /* Prevenir scroll bounce */
  overscroll-behavior: none;
}

/* Override para sección contacto */
.contacto {
  text-align: left;
}

.contacto .p {
  text-align: left !important;
  margin: 0 0 1.5rem 0 !important;
}

/* Forzar alineación izquierda en toda la sección contacto */
.contacto * {
  text-align: left !important;
}
.main .p {
  margin: 30px 60px;
  text-align: center;
}

.seccion {
  width: 100%;
  min-height: 80vh;
  padding: 2em;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  font-family: var(--tipo-principal);
  /* Prevenir scroll bounce */
  overscroll-behavior: none;
}

.seccion .info {
  font-size: 1.2em;
  animation: aparecer1 2s ease 1 both;
}

.seccion-proyectos {
  animation: fadeInUp 1s ease-out;
}

.skills {
  animation: fadeInUp 1s ease-out;
}

.about {
  animation: fadeInUp 1s ease-out;
}

.seccion .ul {
  margin: 2em 0 0;

  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.seccion .ul .li {
  margin: 0 1em;
}

.seccion .ul .a {
  color: var(--texto-oscuro);
  font-weight: 600;
  border-top: 1px solid var(--blanco-2);

  padding: 1em 1em 1em;
  text-transform: uppercase;

  transition: all 0.5s ease;
  animation: aparecer1 2s ease 1 backwards;
}

.seccion .ul > :nth-child(2) .a {
  animation-delay: 0.2s;
}

.seccion .ul .a:hover {
  /*background-color: var(--negro-7);*/
  color: var(--blanco);
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seccion .h2 {
  font-family: var(--tipo-alternativo);
  font-weight: 600;
  font-size: 5rem;
  line-height: 1em;
  color: var(--blanco);
  mix-blend-mode: exclusion;
}

.seccion .h3 {
  font-family: var(--tipo-alternativo);
  font-size: 3rem;
  color: var(--texto-oscuro);
  /*font-style: italic;*/
  text-transform: uppercase;
}

/* .proyectos {
    color: var(--blanco);
}

.proyectos .h2 {
    margin: 0 0 1rem;
    color: inherit;
}

.proyectos .p {
    font-size: 1.1em;
    text-align: justify;
} */

/* etiquetas para lenguajes */
.tag {
  display: inline-block;
  margin-right: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* Aumentar contraste / visibilidad de las etiquetas sobre fondos oscuros y overlays */
.tag {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 5;
}


.react { background-color: #61dafb; color: #3d3b3b; }
.vite { background-color: #646cff; color: #ffffffc2; }
.material-ui { background-color: #0081cb; color: #ffffffc2; }
.vercel { background-color: #548daf; color: #3d2727c2; }
.mercado-pago { background-color: #85c9b5; color: #000000ac; }
.react-router-dom { background-color: #ca4245; color: #ffffffc2; }
.firebase { background-color: #f7c52b; color: #3d3b3b; }
.axios { background-color: #5a2d82; color: #ffffffc2; }
.formik { background-color: #f16061; color: #ffffffc2; }
.yup { background-color: #979038e6; color: #ffffffc2; }
.sweetalert { background-color: #7c4f4f; color: #ffffffc2; }
.uuid { background-color: #6abf69; color: #3d3b3b; }
.canvas-confetti { background-color: #38a68e; color: #ffffffc2; }
.css { background-color: #2965f1; color: #ffffffc2; }
.html { background-color: #e34c26; color: #ffffffc2; }
.json-server { background-color: #11938e; color: #ffffffc2; }
.login { background-color: #3b63de; color: #ffffffc2; }
.context { background-color: #9a30c7; color: #ffffffc2; }
.protected { background-color: #bc2763; color: #ffffffc2; }  
.vb-net { background-color: #5d8aa8; color: #ffffffc2; }
.postgresql { background-color: #336791; color: #ffffffc2; }
.eFactura { background-color: #2d998a; color: #ffffffc2; }
.mysql { background-color: #7c9c2c; color: #ffffffc2; }
.js { background-color: #f0db4f; color: #3d3b3b; }
.java { background-color: #e76f00; color: #ffffffc2; }
.spring { background-color: #6db33f; color: #ffffffc2; }
.aws { background-color: #ff9900; color: #3d3b3b; }
.ansible { background-color: #000000; color: #ffffffc2; }
.bash { background-color: #62b75c4e; color: #3d3b3b; }
.git { background-color: #cd664e; color: #ffffffc2; }
.github { background-color: #198393; color: #ffffffc2; }
.tailwind { background-color: #0db7ed; color: #ffffffc2; }  
.postman { background-color: #7952b3; color: #ffffffc2; }
.seo { background-color: #ff6b35; color: #ffffffc2; }
.firebase { background-color: #ffca28; color: #3d3b3b; }
.vercel { background-color: #000000; color: #ffffffc2; }
.jira { background-color: #0052cc; color: #ffffffc2; }
.trello { background-color: #0079bf; color: #ffffffc2; }
.notion { background-color: #000000; color: #ffffffc2; }
.spring-boot { background-color: #6db33f; color: #ffffffc2; }
.docker { background-color: #2496ed; color: #ffffffc2; }
.elasticsearch { background-color: #f5f5f5; color: #3d3b3b; }
.kafka { background-color: #231f20; color: #ffffffc2; }
.keycloak { background-color: #7c4dff; color: #ffffffc2; }
.nodejs { background-color: #339933; color: #ffffffc2; }
.express { background-color: #000000; color: #ffffffc2; }
.elasticsearch { background-color: #ba8f8f; color: #3d3b3b; }
.confluence { background-color: #333c4d; color: #ffffffc2; }



.h2 {
  font-family: var(--tipo-alternativo);
  font-weight: 600;
  font-size: 5rem;
  line-height: 1em;
  color: var(--blanco);
  mix-blend-mode: exclusion;
}
.p {
  font-family: var(--tipo-alternativo);
  font-size: 1.2em;
  text-align: justify;
  margin: 0 0 2rem;
}
.seccion-proyectos {
  padding: var(--espaciado-md) 0;
}

.slider {
  padding: 40px 0;
}
.container {
  width: 90%;
  min-height: 80vh;
  max-width: 1200px;
  margin: 0 auto; /* para centrar el contenedor*/
  overflow: visible; /* permitir que se expanda verticalmente si un slide es más alto */
}
.slider_container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 500px;
  height: auto;
  overflow: visible; /* permitir que textos largos no queden cortados */
  padding: 0 60px;
}


.slider_body {
  display: none;
  grid-template-columns: 1fr 400px; /* ancho fijo para la columna de imagen */
  align-items: center; /* centrar verticalmente el contenido */
  gap: 3rem; /* más espacio entre texto e imagen */
  min-height: 500px;
  height: auto;
  width: 100%;
  max-width: 1200px; /* limitar ancho máximo para mejor legibilidad */
  margin: 0 auto; /* centrar horizontalmente */
}

.slider_body--show {
  display: grid;
}

.slider_img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s;
}

/* ===== Simulación de flujo n8n (SVG + CSS) ===== */
.flow-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}
.flow-sim {
  width: 420px;
  max-width: 100%;
  height: 160px;
  overflow: visible;
}

/* Mover la simulación ligeramente a la izquierda para que no tape la flecha del carrusel */
.flow-wrap {
  transform: translateX(-80px);
}

@media (max-width: 768px) {
  .flow-wrap { transform: translateX(-30px); }
  .flow-sim { width: 320px; height: 140px; }
}
.flow-sim .node-bg { filter: drop-shadow(0 6px 8px rgba(0,0,0,0.12)); }
.flow-sim .node-label {
  font-family: var(--tipo-principal);
  font-size: 14px;
  fill: #ffffff;
  paint-order: stroke fill;
  stroke: rgba(0,0,0,0.35);
  stroke-width: 0.8px;
  pointer-events: none;
}
.n8n-bg { fill: #111827; }
.sheets-bg { fill: #16A34A; }
.gmail-bg { fill: #DB4437; }
.wa-bg { fill: #25D366; }
.wa-bg { fill: #25D366; }

/* color para WA cliente (antes del Sheets) */
.wa-client-bg { fill: #0891B2; }

.arrow {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  stroke-linecap: round;
  animation: drawArrow 0.6s ease forwards;
}
.arrow.a1 { animation-delay: 0.2s; }
.arrow.a2 { animation-delay: 0.8s; }
.arrow.a3 { animation-delay: 1.4s; }
.arrow.a4 { animation-delay: 1.8s; }
.arrow.a5 { animation-delay: 2.2s; }
.arrow.a6 { animation-delay: 2.6s; }

@keyframes drawArrow {
  to { stroke-dashoffset: 0; }
}

/* Dots that simulate conditional flows (yes/no) */
.flow-dot {
  transform-origin: 60px 90px;
  opacity: 0;
}

/* Dot animations for yes/no branches (positions calculated for the SVG layout) */
.dot-yes {
  animation: flowYes 4s linear infinite;
}
.dot-no {
  animation: flowNo 4s linear infinite;
  animation-delay: 2s;
}

.flow-sim .node-label.small { font-size: 11px; }

@keyframes flowYes {
  0% { transform: translate(0,0); opacity: 0; }
  6% { opacity: 1; }
  18% { transform: translate(90px,0); }    /* to WA cliente (moved further right) */
  38% { transform: translate(180px,0); }   /* to Sheets (center ~240) */
  58% { transform: translate(260px,-45px); }/* to WA yes (higher) */
  74% { transform: translate(370px,-25px); }/* to Gmail yes */
  90% { opacity: 0.8; }
  100% { transform: translate(0,0); opacity: 0; }
}

@keyframes flowNo {
  0% { transform: translate(0,0); opacity: 0; }
  6% { opacity: 1; }
  18% { transform: translate(90px,0); }    /* to WA cliente (moved further right) */
  38% { transform: translate(180px,0); }   /* to Sheets (center ~240) */
  58% { transform: translate(260px,45px); } /* to WA no (lower) */
  74% { transform: translate(370px,30px); } /* to Gmail no */
  90% { opacity: 0.8; }
  100% { transform: translate(0,0); opacity: 0; }
}

/* Respect user's preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .arrow, .flow-dot { animation: none; }
}

/* Tag colors específicos para este flujo */
.tag.n8n { background-color: #111827; color: #ffffff; }
.tag.google-sheets { background-color: #16A34A; color: #ffffff; }
.tag.gmail { background-color: #DB4437; color: #ffffff; }
.tag.whatsapp { background-color: #25D366; color: #ffffff; }

.image-overlay {
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;  
  transition: opacity 0.5s;
}

.image-overlay img {
    width: 100%;
  height: 100%;
  object-fit: contain;
}
.slider_body:hover .slider_img {
  transform: scale(1.05) rotate(2deg); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  cursor: pointer;
}

.slider_body:hover .slider_texts {
  transform: translateY(-5px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider_texts {
  max-width: 100%; /* permitir que use todo el espacio disponible */
  padding-right: 1rem; /* espacio para evitar que el texto toque el borde */
}
.subtitle {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: left; /* alinear títulos a la izquierda */
}
.slider_review {
  font-weight: 300;
  font-size: 20px;
  line-height: 1.7;
  text-align: left; /* alinear texto a la izquierda */
}

/* Estilos para el nuevo formato de servicios */
.servicios {
  padding: var(--espaciado-xl) 2rem;
}

.servicios-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.servicio-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  border-left: 4px solid var(--texto-sky);
  transition: all 0.3s ease;
  text-align: left;
}

.servicio-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.servicio-icono {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.servicio-titulo {
  font-family: var(--tipo-alternativo);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 1rem;
}

.servicio-descripcion {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--blanco);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.servicio-ejemplo {
  font-size: 1rem;
  color: var(--gris-f);
  font-style: italic;
  margin: 0;
}

.servicios-cta {
  text-align: center;
  margin-top: 3rem;
}

.servicios-cta p {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--texto-sky);
  color: var(--blanco);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-family: var(--tipo-alternativo);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--blanco);
  color: var(--texto-sky);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(85, 138, 255, 0.3);
}

/* Estilos para el nuevo formato de proyectos */
.project-details {
  text-align: left;
  margin-bottom: 20px;
}

.project-details p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--blanco);
}

.project-context {
  border-left: 3px solid var(--texto-sky);
  padding-left: 15px;
  background: rgba(85, 138, 255, 0.1);
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
}

.project-solution {
  border-left: 3px solid #4CAF50;
  padding-left: 15px;
  background: rgba(76, 175, 80, 0.1);
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
}

.project-tech {
  border-left: 3px solid #FF9800;
  padding-left: 15px;
  background: rgba(255, 152, 0, 0.1);
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
}

.project-results {
  border-left: 3px solid #9C27B0;
  padding-left: 15px;
  background: rgba(156, 39, 176, 0.1);
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
}
.slider_arrow {
  cursor: pointer;
  width: 50px;
  height: 50px;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.slider_arrow:nth-of-type(1) {
  left: 0;
}

.slider_arrow:nth-of-type(2) {
  right: 0;
}

.skills .rrss {
  display: flex;
  flex-flow: wrap;  
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.skills .li {
  flex-basis: calc(33.333% - 2em);
  margin: 1em 1em;
}

.skills .svg {
  width: 3em;
  height: 3em;
}

.columna {
 margin-bottom: 20px;
 display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;  
}

.columna .h3 {  
  margin: 20px 30px 10px;  
  font-size: 1rem;
  }

.about .h2 {
  margin: 0 0 2rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-story {
  margin-bottom: var(--espaciado-lg);
  padding: var(--espaciado-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--texto-sky);
}

.about-subtitle {
  font-family: var(--tipo-alternativo);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--texto-sky);
  margin-bottom: var(--espaciado-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about .p {
  max-width: none;
  margin: 0 0 1rem;
  font-size: 1.1em;
  text-align: justify;
  line-height: 1.6;
}

.about .p:last-child {
  margin-bottom: 0;
}

.about .rrss {
  width: 100%;

  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.about .li {
  margin: 0 1em;
}

.about .svg {
  width: 3em;
  height: 3em;
}

.footer {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
  /* Footer con fondo del main */
  background-color: var(--negro-7);
}

.scroll-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--blanco);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-to-top:hover {
  background-color: var(--texto-sky);
  color: var(--blanco);
  transform: translateY(-3px);
  border-color: var(--texto-sky);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.whatsapp-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.whatsapp-button:hover::before {
  left: 100%;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-button:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.8);
}

.footer .span {
  font-family: var(--tipo-alternativo);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--texto-oscuro);
  opacity: 0.5;
}

@keyframes circulo1 {
  from {
    transform: rotate(0deg) scale(2.5);
  }

  to {
    transform: rotate(360deg) scale(2.5);
  }
}

@keyframes aparecer1 {
  from {
    opacity: 0;
    transform: translateY(50%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

#cursor {
  width: 5em;
  height: 5em;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}

#cursor.mini {
  transform: scale(0.7);
}

/* Unificar tamaños de h2 en móvil */
@media (max-width: 768px) {
  .seccion .h2 {
    font-size: 3.5rem;
  }
}

@media (max-width: 515px) {
  .seccion .h2 {
    font-size: 3rem;
  }
}

@media (max-width: 433px) {
  .seccion .h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 494px) {
  .info .h3 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .slider_body {
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
    gap: 1em;
  }
  .slider_picture {
    grid-row: 1/2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .slider_img {
    width: 210px;
    height: 210px;
  }
}

@media (max-width: 425px) {
  .slider_container {
    grid-template-columns: 25px 1fr 25px;
  }
  .slider_arrow {
    width: 25px !important;
    height: 25px !important;
  }

  .slider_img {
    width: 180px;
    height: 180px;
  }

  .subtitle {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .slider_review {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Header responsive para mobile */
  .header {
    padding: 0.5em 1em;
    min-height: 3em;
  }
  
  .header .logo {
    width: 35px;
    height: 35px;
    filter: contrast(1.15) brightness(1.1) saturate(1.1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .header .a {
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
  }
  
  .header .ul {
    gap: 0.3em;
  }
  
  .header .li {
    margin: 0 0.2em;
  }
}

.metricas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
}

.metrica {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.metrica:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.metrica-numero {
  font-family: var(--tipo-alternativo);
  font-size: 3rem;
  font-weight: 700;
  color: var(--texto-sky);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metrica-label {
  font-family: var(--tipo-principal);
  font-size: 1rem;
  color: var(--gris-f);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* ===== SECCIÓN CV ===== */
.cv-section {
  margin-top: 2rem;
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-text {
  margin-bottom: 1rem !important;
  font-size: 1.1rem;
}

.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--texto-sky);
  color: var(--blanco);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-family: var(--tipo-alternativo);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cv-download:hover {
  background-color: var(--blanco);
  color: var(--texto-sky);
  transform: translateY(-2px);
}

.cv-icon {
  fill: currentColor;
}

/* ===== SECCIÓN FAQ ===== */

.faq {
  animation: fadeInUp 1s ease-out;
  padding: var(--espaciado-xl) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--texto-sky);
}

.faq-question h3 {
  font-family: var(--tipo-alternativo);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blanco);
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--texto-sky);
  transition: transform 0.3s ease;
  min-width: 20px;
  text-align: center;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-family: var(--tipo-principal);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--blanco);
  margin: 0;
  opacity: 0.9;
}

/* ===== SECCIÓN CONTACTO ===== */

.contacto {
  animation: fadeInUp 1s ease-out;
}

.contacto .h2 {
  margin-bottom: 2rem;
}

.contacto-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
  justify-items: start;
}

.contacto-texto {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.contacto-formulario {
  text-align: left;
  width: 100%;
  max-width: none;
}

.contacto-texto .p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contacto-texto a {
  color: var(--texto-sky);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contacto-texto a:hover {
  color: var(--blanco);
  text-decoration: underline;
}

.contacto-cta {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--texto-sky);
  text-align: center;
}

.contacto-cta h3 {
  font-family: var(--tipo-alternativo);
  font-size: 2rem;
  color: var(--texto-sky);
  margin-bottom: 1rem;
  font-weight: 600;
}

.contacto-cta p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--blanco);
  margin: 0 0 1rem;
}

.contacto-cta p:last-child {
  margin-bottom: 0;
}

.respuesta-rapida {
  font-size: 1rem !important;
  color: var(--gris-f) !important;
  font-weight: 500;
  margin-bottom: 1rem !important;
}

/* Formulario de contacto */
.formulario {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-family: var(--tipo-principal);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 100%;
  min-width: 500px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--texto-sky);
  background-color: rgba(255, 255, 255, 1);
  color: #000;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.7) !important;
  font-family: var(--tipo-alternativo);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 1 !important;
  font-size: 0.9rem;
}

/* Asegurar que el texto del usuario sea visible */
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  color: #000 !important;
  font-weight: 500;
}

.btn-enviar {
  padding: 1rem 2rem;
  background-color: var(--texto-sky);
  color: var(--blanco);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--tipo-alternativo);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-enviar:hover {
  background-color: var(--blanco);
  color: var(--texto-sky);
  transform: translateY(-2px);
}

/* Redes sociales inline */
.contacto-redes-inline {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
  align-self: flex-start;
}

.contacto-redes-inline a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--blanco);
  transition: all 0.3s ease;
  text-decoration: none;
  outline: none;
}

.contacto-redes-inline a svg,
.contacto-redes-inline a i {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.contacto-redes-inline a:hover {
  background-color: var(--texto-sky);
  color: var(--blanco);
  transform: translateY(-2px);
}

.contacto-redes-inline a:focus {
  outline: none;
  text-decoration: none;
}

.contacto-redes-inline a:active {
  outline: none;
  text-decoration: none;
}

/* Icono de WhatsApp con colores acordes */
.contacto-redes-inline .fab.fa-whatsapp {
  color: var(--blanco);
  font-size: 1.2rem;
}

.contacto-redes-inline a:hover .fab.fa-whatsapp {
  color: var(--blanco);
}

/* Responsive para contacto - Pantallas medianas */
@media (min-width: 900px) {
  .contacto-content {
    max-width: 1500px;
    gap: 2.5rem;
    grid-template-columns: 350px 1fr;
  }
}

/* Responsive para contacto - Pantallas grandes */
@media (min-width: 1200px) {
  .contacto-content {
    max-width: 1600px;
    gap: 3rem;
    grid-template-columns: 400px 1fr;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    min-width: 600px;
  }
  
  .btn-enviar {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
  }
  
  .contacto-texto .p {
    font-size: 1.2rem;
  }
}

/* Responsive para contacto - Pantallas extra grandes */
@media (min-width: 1400px) {
  .form-group input,
  .form-group textarea {
    min-width: 700px;
  }
}

/* Estilos para mensajes del formulario */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  display: block;
}

.form-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive para contacto - Mobile */
@media (max-width: 768px) {
  .contacto {
    padding: 2rem 1rem;
    min-height: auto;
  }
  
  .contacto-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    max-width: 100% !important;
    width: 100% !important;
    justify-items: stretch;
    margin: 0;
  }
  
  .contacto-texto {
    text-align: left !important;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .contacto-texto .p {
    text-align: left !important;
    margin: 0 0 1.5rem 0 !important;
    width: 100%;
    padding: 0;
  }
  
  .contacto-texto .p a {
    text-align: left !important;
    display: inline-block;
  }
  
  .contacto-redes-inline {
    justify-content: flex-start !important;
    gap: 1.2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .contacto-redes-inline a {
    width: 35px;
    height: 35px;
  }
  
  .contacto-redes-inline a svg,
  .contacto-redes-inline a i {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }
  
  .contacto-formulario {
    width: 100% !important;
    margin: 0;
    padding: 0;
  }
  
  .contacto-cta {
    padding: 1.5rem 1rem;
    margin: 0 1rem 2rem;
  }
  
  .contacto-cta h3 {
    font-size: 1.5rem;
  }
  
  .contacto-cta p {
    font-size: 1rem;
  }

  .formulario {
    gap: 1rem;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .form-group {
    width: 100%;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  .btn-enviar {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }

  .servicios {
    padding: var(--espaciado-md) 1rem;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .servicio-card {
    padding: 1.5rem;
  }
  
  .servicio-icono {
    font-size: 2.5rem;
  }
  
  .servicio-titulo {
    font-size: 1.3rem;
  }
  
  .servicios-cta p {
    font-size: 1.1rem;
  }

  .metricas {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }
  
  .metrica {
    padding: 1rem;
  }
  
  .metrica-numero {
    font-size: 2.5rem;
  }
  
  .metrica-label {
    font-size: 0.9rem;
  }
}

/* Responsive para FAQ */
@media (max-width: 768px) {
  .faq {
    padding: var(--espaciado-md) 0;
  }
  
  .faq-container {
    padding: 0 1rem;
  }
  
  .faq-question h3 {
    font-size: 1.1rem;
  }
  
  .faq-answer p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq {
    padding: var(--espaciado-sm) 0;
  }
  
  .faq-container {
    padding: 0 0.5rem;
  }
  
  .faq-question {
    padding: 1rem 0;
  }
  
  .faq-question h3 {
    font-size: 1rem;
    padding-right: 0.5rem;
  }
  
  .faq-icon {
    font-size: 1.2rem;
  }
}

/* Mobile muy pequeño */
@media (max-width: 480px) {
  .contacto {
    padding: 1rem 0.5rem;
  }
  
  .contacto-content {
    padding: 0 0.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
  .btn-enviar {
    width: 100% !important;
  }
  
  .contacto .h2 {
    margin-bottom: 1.5rem;
  }
  
  .contacto-texto .p {
    font-size: 1.1rem;
    margin: 0 0 1rem 0 !important;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .btn-enviar {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .scroll-to-top {
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* Mensajes del formulario */
.form-message {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  font-family: var(--tipo-principal);
  font-weight: 500;
  text-align: center;
}

.form-message-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ===== SECCIÓN HERO ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-text {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-greeting {
  font-family: var(--tipo-principal);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gris-f);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-name {
  font-family: var(--tipo-alternativo);
  font-size: 4rem;
  font-weight: 700;
  color: var(--blanco);
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-line {
  width: 80px;
  height: 4px;
  background-color: var(--texto-sky);
  margin: 0 0 2rem 0;
  border-radius: 2px;
}

.hero-title {
  font-family: var(--tipo-alternativo);
  font-size: 3rem;
  color: var(--texto-oscuro);
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Responsive para Hero */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-name {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 0 0.5rem;
  }
  
  .hero-greeting {
    font-size: 1rem;
  }
  
  .hero-name {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

/* Media queries para flechas del carrusel - Mobile responsive */
@media (max-width: 768px) {
  .slider_container {
    padding: 0 40px;
    height: auto;
    min-height: 400px;
  }
  
  .slider_body {
    height: auto;
    min-height: 400px;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .slider_img {
    width: 250px;
    height: 250px;
    margin: 0 auto 1rem;
  }
  
  .slider_arrow {
    width: 30px !important;
    height: 30px !important;
  }
  
  .slider_arrow:nth-of-type(1) {
    left: 5px;
  }
  
  .slider_arrow:nth-of-type(2) {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .slider_container {
    padding: 0 30px;
  }
  
  .slider_img {
    width: 200px;
    height: 200px;
  }
  
  .slider_arrow {
    width: 25px !important;
    height: 25px !important;
  }
  
  .slider_arrow:nth-of-type(1) {
    left: 2px;
  }
  
  .slider_arrow:nth-of-type(2) {
    right: 2px;
  }
}
