@font-face {
    font-family: "Sora";
    src: url("fuentes/Sora-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 100 800;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("fuentes/SpaceGrotesk-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 100 700;
    font-display: swap;
}


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

body {
    font-family: "Sora", Arial, sans-serif;
    overflow-x: hidden;

}

h1, h2, h3, .logo {
    font-family: "Space Grotesk", Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 60px;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
   
}
header nav a {
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

header nav a:hover {
  background-color: #2563EB;
  color: white;
}
.logo 
{
    font-size: 24px;
    font-weight: bold;
    
}
.logo:hover {
  color: #1256E8;
  cursor: pointer;
}
nav {
    display: flex;
    gap: 32px;
}
nav a 
{
    text-decoration: none;
    color: #333;
    
}
.btn-agendar
{
    background-color: #1256E8;
    color: white;
    padding: 9px 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;

}

.btn-agendar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 80px at var(--x) var(--y), rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-agendar:hover::after {
  opacity: 1;
}

.btn-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
   padding: 80px 60px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: sticky;
    z-index: 0;
}

.hero-texto {
    flex: 1;
    max-width: 600px;
}

.hero-diagrama {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    position: relative;
}

.textoarriba {
    display: inline-block;
    background-color: #E8EEFC;
    color: #1256E8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 32px;
}

.hero-botones {
    display: flex;
    gap: 16px;
}



.btn-servicio {
    border: 2px solid #1256E8;
    color: #1256E8;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.problema {
    padding: 80px 60px;
    background-color: #F7F9FC;
    text-align: center;
    position: relative;
    z-index: 1;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
}

.solucion,
.servicios,
.como-trabajamos,
.elegirnos {
    position: relative;
    z-index: 1;
    background-color: white;
}

.solucion {
    padding: 80px 60px;
    text-align: center;
    background: linear-gradient(to bottom, #EDF2FD, white 70%);
}

.tecnologias,
.contacto {
    position: relative;
    z-index: 1;
}

.problema h2 {
    font-size: 36px;
    margin-bottom: 16px;
    
}
.azul {
    color: #1256E8;
}

.subtitulo-problema {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.tarjetas-problema {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.tarjeta {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.tarjeta.visible:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.tarjeta-icono {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #F1F3F7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1256E8;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.tarjeta:hover .tarjeta-icono {
    background-color: #E8EEFC;
}

.tarjeta-icono svg {
    width: 22px;
    height: 22px;
}
.tarjeta h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.tarjeta p {
    color: #555;
    line-height: 1.5;
}

.solucion {
    padding: 80px 60px;
    text-align: center;
}

.comparacion {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
    text-align: left;
    
}

.caja-antes {
    background-color: #F5F6F8;
    border-radius: 16px;
    padding: 7px;
}

.interior-antes {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
}

.etiqueta-estado {
    display: block;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #888;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 16px;
}

.etiqueta-estado::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #B0B0B0;
    margin-right: 8px;
}

.etiqueta-ok::before {
    background-color: #1256E8;
}

.lista-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lista-items li {
    background-color: #F0F2F5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
}

.lista-items .item-error {
    background-color: #FDECEC;
    color: #C0392B;
}

.pie-caja {
    font-size: 13px;
    color: #888;
    padding: 12px 18px;
}

.pasos {
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
}

.paso {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.numero {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #1256E8;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paso h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.paso p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.caja-despues {
    background-color: #1256E8;
    border-radius: 16px;
    padding: 6px;
}

.interior-despues {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
}

.etiqueta-ok {
    color: #1256E8;
}

.lista-items .item-ok {
    background-color: #E8EEFC;
    color: #1256E8;
}

.pie-despues {
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 12px 18px;
}

.solucion h2 {
    font-size: 36px;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.servicios {
    padding: 80px 60px;
    text-align: center;
    background-color: #F5F7FA;
}

.servicios h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.tarjetas-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    text-align: left;
    margin-top: 48px;
}

.etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.etiqueta {
    background-color: #F0F2F5;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.como-trabajamos {
    height: 250vh;
    padding: 0;
    position: relative;
    z-index: 1;
    background-color: white;
}

.pasos-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    text-align: center;
}

.como-trabajamos h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.tarjetas-pasos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
    margin-top: 48px;
    width: 100%;
}

.paso-card {
    background-color: white;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.paso-card.mostrar {
    opacity: 1;
    transform: translateY(0);
}

.fila-paso {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.numero-paso {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1256E8;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 0;
}

.paso-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.paso-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.tecnologias {
    padding: 80px 60px;
    text-align: center;
    background-color: #F7F9FC;
}

.logo-tecnologia {
    color: #9AA0A6;
    transition: color 0.3s ease;
    margin-bottom: 12px;
}

.tarjeta:hover .logo-tecnologia {
    color: var(--color-marca);
}

.tecnologias h2 {
    font-size: 36px;
    margin-bottom: 16px;
}


.tarjetas-tecnologias .tarjeta {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 140px;
    flex-shrink: 0;
    text-align: center;
    margin-right: 100px;
}

.tarjetas-tecnologias h3 {
    font-size: 15px;
    margin: 0;
}

.tarjetas-tecnologias p {
    color: #555;
    font-size: 14px;
}

.elegirnos {
    padding: 80px 60px;
    display: flex;
    gap: 60px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.elegirnos-columna-izq {
    flex: 1;
}

.elegirnos-columna-izq h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.elegirnos-columna-izq p {
    color: #555;
    line-height: 1.5;
    font-size: 18px;
}

.elegirnos-columna-der {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.check-item {
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 24px;
}

.check-titulo {
    display: block;
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 8px;
}

.check-titulo::before {
    content: "✓ ";
    color: #1256E8;
}

.check-item p {
    color: #555;
    line-height: 1.5;
}

.badge-comun {
    background-color: #1256E8;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
}

.contacto {
    padding: 80px 60px;
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
    z-index: 2;
}

.contacto::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 350px at var(--x) var(--y), rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contacto:hover::after {
    opacity: 1;
}

.contacto-columna-izq {
    flex: 1;
    color: white;
}

.contacto-columna-izq h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.contacto-columna-izq p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.5;
}

.contacto-mail {
    display: inline-block;
    color: white;
    font-weight: bold;
    margin-top: 16px;
}

.contacto-separador {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 24px 0;
}

.contacto-nota {
    font-size: 14px;
    opacity: 0.85;
}

.contacto-form {
    flex: 1;
    background-color: white;
    border-radius: 16px;
    padding: 32px;
}

.contacto-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 16px;
}

.contacto-form label:first-child {
    margin-top: 0;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.contacto-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contacto-form button {
    width: 100%;
    margin-top: 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.contacto-respuesta {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

.btn-agendar-header .texto-corto {
    display: none;
}

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
        position: sticky;
        top: 0;
    }
    .btn-agendar-header .texto-completo {
        display: none;
    }

    .btn-agendar-header .texto-corto {
        display: inline;
    }    

    nav {
        display: none;
    }

    .hero {
        flex-direction: column;
        align-items: center; 
        position: static;
        padding: 40px 20px;
        gap: 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-texto {
        max-width: 100%;
    }

    .btn-menu {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: white;
        padding: 16px 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    nav.abierto {
        display: flex;
    }

    nav a {
        padding: 14px 0;
        border-bottom: 1px solid #EEE;
    }

   

    .problema,
    .solucion,
    .servicios,
    .tecnologias,
    .elegirnos,
    .contacto {
        padding: 60px 20px;
    }

    .tarjetas-problema,
    .comparacion,
    .tarjetas-servicios {
        grid-template-columns: 1fr;
    }

    .como-trabajamos {
        height: auto;
        padding: 60px 20px;
    }

    .pasos-sticky {
        position: static;
        height: auto;
        padding: 0;
    }

    .tarjetas-pasos {
        grid-template-columns: 1fr;
    }

    .paso-card {
        opacity: 1;
        transform: none;
    }

    .elegirnos,
    .contacto {
        flex-direction: column;
    }
    .elegirnos {
        position: static;
    }
}

@media (hover: none) {
    .logo-tecnologia {
        color: var(--color-marca);
    }
}

@media (min-width: 769px) and (max-width: 1024px) /* estas reglas solo aplican si la pantalla mide entre 769px y 1024px Tablet */ {
    header,
    .hero,
    .problema,
    .solucion,
    .servicios,
    .como-trabajamos,
    .tecnologias,
    .elegirnos,
    .contacto {
        padding-left: 32px;
        padding-right: 32px;
    }

    .elegirnos-columna-izq p,
    .check-item p {
        font-size: 15px;
    }
}

.hero-diagrama {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.nodo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nodo span {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 0 25px rgba(18, 86, 232, 0.3);
}
/* animacion ejemplo*/
.nodo p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.nodo-central span {
    background: linear-gradient(135deg, #1256E8, #0A3AA8);
    box-shadow: 0 0 30px rgba(18, 86, 232, 0.5);
}

.nodo-central p {
    color: #1256E8;
}



.fila-nodos {
    display: flex;
    gap: 40px;
}

.nodo-chico span {
    width: 56px;
    height: 56px;
    font-size: 22px;
}

.tarjeta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tarjeta.visible {
    opacity: 1;
    transform: translateY(0);
}

h2,
.subtitulo-seccion {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

h2.visible,
.subtitulo-seccion.visible {
    opacity: 1;
    transform: translateY(0);
}

.carrusel-tecnologias {
    overflow: hidden;
    margin-top: 48px;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tarjetas-tecnologias {
    display: flex;
    width: fit-content;
    animation: mover-carrusel 40s linear infinite;
}

.carrusel-tecnologias:hover .tarjetas-tecnologias {
    animation-play-state: paused;
}

.tecnologias .carrusel-tecnologias .tarjeta:hover {
    transform: none;
    box-shadow: none;
    background: none;
}

@keyframes mover-carrusel {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
.tarjetas-tecnologias .tarjeta {
    opacity: 1;
    transform: none;
}

.hero-diagrama > *:not(.conectores) {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-diagrama > .nodo {
  margin-bottom: 20px;
}

.fila-nodos {
  margin-bottom: 20px;
}

.hero-diagrama > *.visible {
    opacity: 1;
}


.badge {
    display: inline-block;
    background-color: #E8EEFC;
    color: #1256E8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.btn-secundario {
    border: 2px solid #1256E8;
    color: #1256E8;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.fila-nodos {
    position: relative;
    padding-top: 24px;
}

.nodo-chico {
    width: 90px;
}

.conectores {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
        -webkit-mask-image: linear-gradient(to right, transparent 13%, black 30%, black 70%, transparent 87%);
  mask-image: linear-gradient(to right, transparent 13%, black 30%, black 70%, transparent 87%);  
}
.nodo,
.fila-nodos {
    position: relative;
    z-index: 1;
}

.conectores line {
    stroke: #1256E8;
    stroke-width: 3;
}

.nodo .iconos {
  width: 26px;
  height: 26px;
  color: #2563EB;
}

.nodo-central .iconos-central {
  color: white;
}
