/* styles.css - HumanPoint+ */

/* Variables */
:root {
    --hp-primary: #0079c2;
    --hp-primary-light: #3ca3e0;
    --hp-primary-dark: #005b8f;
    --hp-bg: #f5f8fb;
    --hp-bg-alt: #ffffff;
    --hp-text: #1f2933;
    --hp-text-muted: #6b7785;
    --hp-border: #e1e7f0;
    --hp-radius-lg: 20px;
    --hp-radius-md: 14px;
    --hp-shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.07);
    --hp-transition-fast: 0.2s ease-out;
    --hp-transition-med: 0.3s ease-out;
}

/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 20%, #e6f3ff, #ffffff),
                radial-gradient(circle at 80% 80%, #f0f8ff, #ffffff);
    animation: bgMove 12s ease-in-out infinite alternate;
    color: var(--hp-text);
    line-height: 1.6;
}

@keyframes bgMove {
    0% {
        background-position: 20% 20%, 80% 80%;
    }
    100% {
        background-position: 10% 30%, 70% 60%;
    }
}

/* Layout general */
main {
    margin-top: 80px; /* altura aproximada del header */
}

/* Header */
.hp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(90deg, #ffffff 0%, #f7fbff 40%, #e6f3ff 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* AHORA USA EL 100% DEL ANCHO DEL VIEWPORT */
.hp-header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo pegado a la izquierda */
.hp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    flex: 0 0 auto;
}

/* Menú centrado */
.hp-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
}

.hp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.hp-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.hp-logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--hp-primary-dark);
}

/* Menú centrado en el espacio restante */
.hp-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex: 1;          /* ocupa el espacio central */
}

.hp-nav-link {
    position: relative;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--hp-text-muted);
    padding: 6px 0;
    transition: color var(--hp-transition-fast);
}

.hp-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--hp-primary), var(--hp-primary-light));
    border-radius: 999px;
    transition: width var(--hp-transition-med);
}

.hp-nav-link:hover {
    color: var(--hp-primary-dark);
}

.hp-nav-link:hover::after {
    width: 100%;
}

/* Acceso HumanPoint+ pegado a la derecha */
.hp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
}
.hp-icon-button {
    border: none;
    background: rgba(0, 121, 194, 0.08);
    border-radius: 999px;
    padding: 8px 14px; /* un poco más ancho para el texto */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--hp-transition-fast),
                transform var(--hp-transition-fast),
                box-shadow var(--hp-transition-fast);
    box-shadow: 0 0 0 rgba(0, 121, 194, 0);
}

.hp-login-button {
    font-size: 0.9rem;
    font-weight: 500;
}

.hp-login-text {
    margin-right: 6px;
    color: var(--hp-primary-dark);
}

.hp-icon-button:hover {
    background: rgba(0, 121, 194, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Quitar subrayado del botón de acceso */
#hp-login-access {
    text-decoration: none !important;
    color: var(--hp-primary-dark); /* para asegurar el color correcto */
}

#hp-login-access:hover {
    text-decoration: none !important;
}

.hp-icon-login {
    font-size: 1.1rem;
}

/* Botón hamburguesa */
.hp-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hp-menu-line {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--hp-primary-dark);
}

/* Menú móvil */
.hp-nav-mobile {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    display: none;
    flex-direction: column;
    padding: 12px 20px 16px;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    z-index: 90;
}

.hp-nav-mobile-link {
    padding: 8px 4px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--hp-text-muted);
    transition: background var(--hp-transition-fast), color var(--hp-transition-fast), transform var(--hp-transition-fast);
}

.hp-nav-mobile-link:hover {
    background: rgba(0, 121, 194, 0.08);
    color: var(--hp-primary-dark);
    transform: translateX(3px);
}

.hp-nav-mobile.open {
    display: flex;
}

/* Secciones */
.hp-section {
    max-width: 1320px;   /* antes 1160px */
    width: 100%;
    margin: 0 auto;
    padding: 70px 32px;  /* un poco más de padding interno, menos borde gris */
}

.hp-section-alt {
    background: radial-gradient(circle at top left, #edf6ff 0, #f6f9fc 30%, #ffffff 65%, #f1f7ff 100%);
    border-radius: 38px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: var(--hp-shadow-soft);
}

/* Títulos de sección */
.hp-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.hp-section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--hp-primary-dark);
}

.hp-section-header p {
    color: var(--hp-text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* HERO */
.hp-hero {
    position: relative;
}

.hp-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0079c233 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
}

.hp-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hp-hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--hp-primary-dark), var(--hp-primary-light));
    -webkit-background-clip: text;
    color: transparent;
}

.hp-hero-subtitle {
    font-size: 1.05rem;
    color: var(--hp-text-muted);
    max-width: 460px;
    margin-bottom: 24px;
}

.hp-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Botones */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--hp-transition-fast), box-shadow var(--hp-transition-fast), background var(--hp-transition-fast), color var(--hp-transition-fast);
}

.hp-btn-primary {
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-light));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 121, 194, 0.3);
}

.hp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 121, 194, 0.35);
}

.hp-btn-ghost {
    background: transparent;
    border: 1px solid rgba(0, 121, 194, 0.25);
    color: var(--hp-primary-dark);
}

.hp-btn-ghost:hover {
    background: rgba(0, 121, 194, 0.06);
    transform: translateY(-2px);
}

.hp-btn-full {
    width: 100%;
}

/* Hero visual */
.hp-hero-visual {
    display: flex;
    justify-content: center;
}

.hp-hero-card {
    background: radial-gradient(circle at top left, #e6f3ff, #ffffff);
    border-radius: 26px;
    padding: 24px 22px;
    box-shadow: var(--hp-shadow-soft);
    border: 1px solid rgba(0, 121, 194, 0.08);
}

.hp-hero-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--hp-primary-dark);
}

.hp-hero-card p {
    font-size: 0.95rem;
    color: var(--hp-text-muted);
    margin-bottom: 14px;
}

.hp-hero-card ul {
    list-style: none;
}

.hp-hero-card li {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Grid genérico */
.hp-grid {
    display: grid;
    gap: 24px;
}

/* Tarjetas */
.hp-card {
    background: var(--hp-bg-alt);
    border-radius: var(--hp-radius-lg);
    padding: 20px 18px;
    box-shadow: var(--hp-shadow-soft);
    border: 1px solid rgba(225, 231, 240, 0.9);
    transition: transform var(--hp-transition-med), box-shadow var(--hp-transition-med), border-color var(--hp-transition-med);
}

.hp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 121, 194, 0.4);
}

/* Tag de tarjeta */
.hp-card-tag {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* ocupa el 100% del card */
    padding: 6px 0;
    border-radius: 12px;
    background: rgba(0, 121, 194, 0.08);
    font-size: 1rem;
    font-weight: 500;
    color: var(--hp-primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

/* ============================
   Herramientas / Productos
   ============================ */

/* Contenedor general */
.hp-products-carousel {
    position: relative;
    margin-top: 10px;
}

/* ESCRITORIO (por defecto): grid de 3 columnas */
.hp-products-viewport {
    width: 100%;
    overflow: visible; /* sin scroll horizontal en desktop */
}

.hp-products-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columnas iguales */
    gap: 24px;
    padding: 4px 0 12px;
}

/* Cada card ocupa su columna completa */
.hp-product-card {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
}

/* Título centrado */
.hp-product-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
}

/* Descripción */
.hp-product-card p {
    font-size: 0.93rem;
    color: var(--hp-text-muted);
    margin-bottom: 12px;
}

/* Lista de bullets */
.hp-card-list {
    list-style: none;
    font-size: 0.9rem;
}

.hp-card-list li::before {
    content: "• ";
    color: var(--hp-primary);
}

/* La lista hace crecer la card y deja el botón abajo */
.hp-product-card .hp-card-list {
    flex-grow: 1;
    margin-bottom: 12px;
}

/* Botón Ver más centrado */
.hp-product-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    padding: 8px 20px;
    margin: 12px auto 0 auto;
    align-self: center !important;
}

.hp-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 121, 194, 0.20);
}

/* Flechas: OCULTAS por defecto (desktop) */
.hp-carousel-arrow {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.hp-carousel-arrow-left {
    left: -6px;
}

.hp-carousel-arrow-right {
    right: -6px;
}

/* Estado deshabilitado de flechas */
.hp-carousel-arrow.disabled,
.hp-carousel-arrow:disabled {
    opacity: 0.25;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

/* ===== MOBILE / TABLET: carrusel horizontal ===== */
@media (max-width: 900px) {

    .hp-products-viewport {
        overflow: hidden;              /* ventana del carrusel */
    }

    .hp-products-track {
        display: flex;                 /* fila horizontal */
        flex-wrap: nowrap;
        gap: 24px;
        padding: 4px 8px 12px;
    }

    .hp-product-card {
        flex: 0 0 80%;
        max-width: 80%;
    }

    /* Ahora SÍ mostramos flechas en móviles */
    .hp-carousel-arrow {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: rgba(255, 255, 255, 0.96);
        border-radius: 999px;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
        transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out, opacity 0.2s ease-out;
        color: var(--hp-primary-dark);
        z-index: 2;
    }

    .hp-carousel-arrow-left {
        left: 4px;
    }

    .hp-carousel-arrow-right {
        right: 4px;
    }
}

@media (max-width: 600px) {
    .hp-product-card {
        flex: 0 0 90%;
        max-width: 90%;
    }
}


/* About */
.hp-about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--hp-primary-dark);
}

.hp-about-card p {
    font-size: 0.94rem;
    color: var(--hp-text-muted);
}

/* Roadmap */
.hp-roadmap {
    position: relative;
    margin-top: 20px;
}

.hp-roadmap-line {
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--hp-primary-light), var(--hp-primary-dark));
    opacity: 0.3;
}

.hp-roadmap-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 26px;
}

.hp-roadmap-dot {
    position: absolute;
    left: 9px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid var(--hp-primary);
    box-shadow: 0 0 0 4px rgba(0, 121, 194, 0.15);
}

.hp-roadmap-content {
    background: #ffffff;
    border-radius: var(--hp-radius-md);
    padding: 14px 16px;
    border: 1px solid rgba(0, 121, 194, 0.14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.hp-roadmap-phase {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 121, 194, 0.06);
    font-size: 0.75rem;
    color: var(--hp-primary-dark);
    margin-bottom: 6px;
}

.hp-roadmap-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.hp-roadmap-content p {
    font-size: 0.9rem;
    color: var(--hp-text-muted);
}

/* Contacto */
.hp-contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.hp-contact-info h3 {
    margin-bottom: 10px;
    color: var(--hp-primary-dark);
}

.hp-contact-info p {
    font-size: 0.95rem;
    color: var(--hp-text-muted);
    margin-bottom: 12px;
}

.hp-contact-list {
    list-style: none;
    font-size: 0.93rem;
}

.hp-contact-list li {
    margin-bottom: 8px;
}

/* Formulario */
.hp-contact-form {
    background: radial-gradient(circle at top left, #e4f1ff, #ffffff);
}

.hp-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.hp-form-group {
    margin-bottom: 12px;
}

.hp-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.hp-form-group input,
.hp-form-group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--hp-transition-fast), box-shadow var(--hp-transition-fast), background var(--hp-transition-fast);
    background: rgba(255, 255, 255, 0.94);
}

.hp-form-group input:focus,
.hp-form-group textarea:focus {
    border-color: rgba(0, 121, 194, 0.7);
    box-shadow: 0 0 0 1px rgba(0, 121, 194, 0.2);
    background: #ffffff;
}

.hp-form-feedback {
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Scroll top */
.hp-scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-light));
    color: #ffffff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: transform var(--hp-transition-fast), box-shadow var(--hp-transition-fast), opacity var(--hp-transition-fast);
    opacity: 0;
    z-index: 50;
}

.hp-scroll-top.show {
    display: flex;
    opacity: 1;
}

.hp-scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

/* Footer */
.hp-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--hp-text-muted);
    padding: 18px 10px 26px;
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 900px) {
    .hp-hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-hero-text h1 {
        font-size: 2.2rem;
    }

    .hp-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .hp-nav {
        display: none;
    }

    .hp-menu-toggle {
        display: flex;
    }

    .hp-header-inner {
        padding-inline: 14px;
    }

    .hp-section {
        padding-inline: 16px;
    }

    .hp-products-grid,
    .hp-about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-section-alt {
        border-radius: 26px;
    }

    .hp-form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .hp-product-card {
        flex: 0 0 90%;
        max-width: 90%;
    }
}