/* ===== MODERN LANDING PAGE STYLE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores de módulos SYNKA */
    --product-todolist: #22c55e;
    --product-todolist-hover: #16a34a;
    --product-documents: #3b82f6;
    --product-documents-hover: #2563eb;
    --product-fichaje: #ef4444;
    --product-fichaje-hover: #dc2626;
    --product-tickets: #eab308;
    --product-tickets-hover: #ca8a04;
    
    /* Colores modernos adicionales */
    --green: #22c55e;
    --orange: #FF9800;
    --teal: #009688;
    --yellow: #eab308;
    --pink: #E91E63;
    --blue: #3b82f6;
    --light-blue: #03A9F4;
    --purple: #9C27B0;
    --red: #ef4444;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #F5F5F5;
    
    /* Tipografía */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== ANIMACIONES ===== */
[data-animate] {
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.js-ready [data-animate]:not(.animated) {
    opacity: 0;
}

body.js-ready [data-animate="fade-up"]:not(.animated) {
    transform: translateY(40px);
}

body.js-ready [data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--black);
    min-height: 38px;
}

.logo-img {
    display: block;
    height: 38px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav__item {
    display: flex;
    align-items: center;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--gray);
    text-decoration: none;
    font-weight: var(--weight-medium);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--black);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--black);
    color: var(--white);
    padding: 0 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--weight-medium);
    font-size: 0.95rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav__toggle span {
    width: 28px;
    height: 3px;
    background: var(--black);
    transition: 0.3s;
}

/* En escritorio: ocultar el enlace "Iniciar Sesión" dentro del menú (solo se usa en móvil) */
.nav__item--cta-mobile {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 4rem;
    background: var(--white);
}

.hero__wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 500px;
}

.hero__cta-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__cta {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--weight-medium);
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero__cta--secondary {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.hero__cta--secondary:hover {
    background: var(--black);
    color: var(--white);
}

.hero__graphic {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero__flow {
    width: 100%;
    height: 100%;
    display: block;
}

/* Capa de flechas encima del gráfico y de los badges (mismo viewBox) */
.hero__flow-arrows-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flow-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawPath 3s ease-in-out forwards;
}

/* Longitud y animación de flechas se aplican desde JS (getTotalLength + retardo escalonado) */
.hero__flow-path.hero__flow-path--animate {
    animation: drawPathSegment 1.2s ease-out forwards;
}

/* Flechas: ocultas hasta que la línea termina (JS las muestra en animationend) */
.hero__flow-arrow {
    opacity: 0;
    pointer-events: none;
}

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

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

.shape-label {
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

.shape-label:nth-child(2) { animation-delay: 0s; }
.shape-label:nth-child(3) { animation-delay: 0.5s; }
.shape-label:nth-child(4) { animation-delay: 1s; }
.shape-label:nth-child(5) { animation-delay: 1.5s; }
.shape-label:nth-child(6) { animation-delay: 2s; }
.shape-label:nth-child(7) { animation-delay: 2.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(10px);
    }
}

.shape-badge {
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: var(--weight-semibold);
    font-size: 0.875rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.shape-badge:hover {
    transform: scale(1.1);
}

.shape-badge--todolist { background: var(--product-todolist); }
.shape-badge--documents { background: var(--product-documents); }
.shape-badge--tickets { background: var(--product-tickets); }
.shape-badge--fichaje { background: var(--product-fichaje); }
.shape-badge--green { background: var(--green); }
.shape-badge--orange { background: var(--orange); }
.shape-badge--blue { background: var(--blue); }
.shape-badge--yellow { background: var(--yellow); }
.shape-badge--red { background: var(--red); }
.shape-badge--purple { background: var(--purple); }

/* ===== SERVICES PILLS SECTION ===== */
.services-pills {
    padding: 8rem 0;
    background: var(--white);
}

.services-pills__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.services-pills__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-bold);
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.services-pills__subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
}

.services-pills__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.pill {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--weight-semibold);
    font-size: 0.875rem;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pillFloat 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.pill__icon {
    font-size: 1rem;
    opacity: 0.9;
}

.pill__text {
    letter-spacing: 0.5px;
}

.pill:nth-child(1) { animation-delay: 0s; }
.pill:nth-child(2) { animation-delay: 0.3s; }
.pill:nth-child(3) { animation-delay: 0.6s; }
.pill:nth-child(4) { animation-delay: 0.9s; }
.pill:nth-child(5) { animation-delay: 1.2s; }
.pill:nth-child(6) { animation-delay: 1.5s; }
.pill:nth-child(7) { animation-delay: 1.8s; }
.pill:nth-child(8) { animation-delay: 2.1s; }
.pill:nth-child(9) { animation-delay: 2.4s; }
.pill:nth-child(10) { animation-delay: 2.7s; }

@keyframes pillFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.pill:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.pill:hover .pill__icon {
    transform: scale(1.2);
    transition: transform 0.3s;
}

.pill--todolist { background: var(--product-todolist); }
.pill--documents { background: var(--product-documents); }
.pill--tickets { background: var(--product-tickets); }
.pill--fichaje { background: var(--product-fichaje); }
.pill--todolist-alt { background: var(--product-todolist); }
.pill--green { background: var(--green); }
.pill--orange { background: var(--orange); }
.pill--teal { background: var(--teal); }
.pill--yellow { background: var(--yellow); }
.pill--pink { background: var(--pink); }
.pill--blue { background: var(--blue); }
.pill--light-blue { background: var(--light-blue); }
.pill--purple { background: var(--purple); }

/* ===== FEATURES GRID SECTION ===== */
.features-grid {
    padding: 8rem 0;
    background: var(--light-gray);
}

.features-grid__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.features-grid__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-bold);
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.features-grid__subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
}

.features-grid__wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--black);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--black);
}

.feature-card:hover::before {
    transform: scaleY(1);
}


.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card__icon--todolist { background: var(--product-todolist); }
.feature-card__icon--documents { background: var(--product-documents); }
.feature-card__icon--tickets { background: var(--product-tickets); }
.feature-card__icon--fichaje { background: var(--product-fichaje); }
.feature-card__icon--purple {
    background: var(--purple, #9C27B0);
    color: #fff;
}
.feature-card__icon--purple svg {
    color: #fff;
    stroke: #fff;
}
.feature-card__icon--green { background: var(--green); }
.feature-card__icon--blue { background: var(--blue); }
.feature-card__icon--red { background: var(--red); }
.feature-card__icon--yellow { background: var(--yellow); }

.feature-card__title {
    font-size: 1.25rem;
    font-weight: var(--weight-bold);
    color: var(--black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.feature-card__description {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.875rem;
    flex-grow: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 8rem 0;
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-bold);
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.cta-section__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-section__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0 2.5rem;
    min-height: 44px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--weight-medium);
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button--primary {
    background: var(--white);
    color: var(--black);
}

.cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.cta-button--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button--secondary:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 8rem 0;
    background: var(--white);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact__info {
    position: sticky;
    top: 120px;
}

.contact__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--weight-bold);
    color: var(--black);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.contact__text {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact__detail-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact__detail h4 {
    font-size: 1rem;
    font-weight: var(--weight-semibold);
    color: var(--black);
    margin-bottom: 0.25rem;
}

.contact__detail p {
    font-size: 0.95rem;
    color: var(--gray);
}

.contact__form-wrapper {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 16px;
}

.contact__feedback {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.contact__feedback--success {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

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

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 1.125rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 1rem;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form__input::placeholder {
    color: var(--gray);
    opacity: 0.6;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    min-height: 44px;
    font-size: 1rem;
    font-weight: var(--weight-medium);
    text-decoration: none;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn--primary {
    background: var(--black);
    color: var(--white);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
    background: var(--white);
    color: var(--black);
}

.btn--secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    margin-top: 4rem;
}

.footer__bar {
    background: var(--black);
    padding: 3rem 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer__brand {
    max-width: 320px;
}

.footer__logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer__logo {
    display: block;
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.footer__heading {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

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

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--white);
}

.footer__email {
    margin: 0;
}

.footer__email .footer__link {
    word-break: break-all;
}

.footer__bottom {
    background: rgba(0, 0, 0, 0.85);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin: 0;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero__graphic {
        width: 100%;
        max-width: 450px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
    
    .features-grid__wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .feature-card {
        min-height: 260px;
        padding: 1.25rem;
    }
    
    .feature-card__icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-card__title {
        font-size: 1.125rem;
    }
    
    .feature-card__description {
        font-size: 0.8125rem;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact__info {
        position: static;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__brand {
        max-width: none;
    }

    .footer__logo-link {
        display: inline-block;
    }

    .footer__tagline {
        text-align: center;
    }

    .footer__links .footer__list,
    .footer__contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-content: start;
        gap: 0;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__item {
        width: 100%;
    }

    /* Los enlaces normales ocupan toda la fila */
    .nav__item:not(.nav__item--cta-mobile) {
        grid-column: 1 / -1;
    }

    /* Iniciar Sesión y Registrarse en la misma línea, 50% cada uno */
    .nav__item--cta-mobile {
        display: flex;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        flex: 1;
        min-width: 0;
    }

    .nav__item--cta-mobile:first-of-type {
        margin-right: 0.5rem;
        padding-right: 0.5rem;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav__item--cta-mobile:last-of-type {
        margin-left: 0;
        padding-left: 0.5rem;
        border-top: none;
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .nav__item--cta-mobile .nav__link {
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav__link--cta {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background: var(--black, #000);
        color: var(--white, #fff);
        border-radius: 8px;
        font-weight: 600;
        text-align: center;
        transition: background 0.2s, transform 0.2s;
    }

    .nav__link--cta:hover {
        background: #333;
        color: #fff;
        transform: translateY(-1px);
    }

    .nav__link--cta-secondary {
        background: transparent;
        color: var(--black, #000);
        border: 2px solid var(--black, #000);
    }

    .nav__link--cta-secondary:hover {
        background: var(--black, #000);
        color: var(--white, #fff);
    }

    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

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

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

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 100px 1rem 3rem;
        min-height: auto;
    }
    
    .hero__title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero__cta-wrapper {
        flex-direction: column;
    }
    
    .hero__cta {
        width: 100%;
        text-align: center;
    }
    
    .hero__graphic {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }

    .features-grid__wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .feature-card {
        min-height: 260px;
        padding: 1.25rem;
    }
    
    .feature-card__icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-card__title {
        font-size: 1.125rem;
    }
    
    .feature-card__description {
        font-size: 0.8125rem;
    }
    
    .cta-section__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 575px) {
    .nav {
        padding: 0 1rem;
    }
    
    .hero__title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .services-pills__wrapper {
        gap: 0.75rem;
    }
    
    .pill {
        font-size: 0.75rem;
        padding: 0.75rem 1.5rem;
    }
    
    .features-grid__wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        min-height: auto;
        padding: 1.25rem;
    }
}

/* ===== PÁGINAS LEGALES (Política de privacidad / Condiciones de servicio) ===== */
.legal-page {
    padding: 0 0 5rem;
    min-height: 60vh;
    padding-top: 160px; /* Espacio para el header fijo */
}

.legal-page .container {
    padding-top: 1.5rem;
}

.legal-page__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: var(--weight-bold);
    color: var(--black);
    margin-bottom: 0.5rem;
}

.legal-page__updated {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.legal-page__intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    margin-bottom: 2.5rem;
}

.legal-page__section {
    margin-bottom: 2rem;
}

.legal-page__section h2 {
    font-size: 1.2rem;
    font-weight: var(--weight-semibold);
    color: var(--black);
    margin-bottom: 0.75rem;
    scroll-margin-top: 5rem;
}

.legal-page__section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    margin-bottom: 0.5rem;
}

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

.legal-page__list {
    margin: 0.75rem 0 1rem 1.25rem;
    padding-left: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
}

.legal-page__list li {
    margin-bottom: 0.35rem;
}

.legal-page__list li:last-child {
    margin-bottom: 0;
}

.legal-page__link {
    color: var(--blue);
    text-decoration: underline;
}

.legal-page__link:hover {
    color: var(--product-documents-hover);
}

.footer__link--bottom {
    opacity: 0.9;
}

.footer__link--bottom:hover {
    opacity: 1;
    text-decoration: underline;
}
