/* ============= Variables CSS ============= */
:root {
    /* Colores principales */
    --primary-color: #fbbf24;
    --primary-dark: #f59e0b;
    --primary-light: #fcd34d;
    --secondary-color: #1e293b;
    --secondary-dark: #0f172a;
    
    /* Colores de texto */
    --title-color: #1e293b;
    --text-color: #475569;
    --text-light: #94a3b8;
    
    /* Colores de fondo */
    --body-color: #ffffff;
    --container-color: #f8fafc;
    --card-color: #ffffff;
    
    /* Bordes y sombras */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Tipografía */
    --body-font: 'Inter', sans-serif;
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    
    /* Peso de fuente */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Espaciado */
    --header-height: 4.5rem;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* ============= Reset y Base ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--title-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

input,
textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ============= Clases Reutilizables ============= */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--title-color);
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
    margin-bottom: 1rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.text__gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: var(--font-semibold);
    transition: all 0.3s ease;
    font-size: var(--normal-font-size);
}

.btn__primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn__primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn__secondary {
    background: var(--container-color);
    color: var(--title-color);
}

.btn__secondary:hover {
    background: var(--border-color);
}

.btn__full {
    width: 100%;
    justify-content: center;
}

.btn__icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

/* ============= Header & Navigation ============= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: all 0.3s ease;
}

.header.scroll {
    box-shadow: var(--shadow-md);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-bold);
    font-size: 1.25rem;
    color: var(--title-color);
}

.logo__icon {
    font-size: 1.75rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-dark);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
}

/* ============= Hero Section ============= */
.hero {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__number {
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--primary-dark);
}

.stat__label {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero__blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob 7s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.hero__printer {
    font-size: 10rem;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============= Services Section ============= */
.services {
    padding: 5rem 0;
    background: var(--body-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--title-color);
}

.service__description {
    color: var(--text-color);
    line-height: 1.6;
}

/* ============= Platform Section ============= */
.platform {
    padding: 5rem 0;
    background: var(--container-color);
}

.platform__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.platform__description {
    margin: 1.5rem 0 2rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.platform__features {
    margin-bottom: 2rem;
}

.feature__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.platform__visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform__card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    position: absolute;
}

.card__1 {
    width: 300px;
    top: 20%;
    left: 10%;
    animation: cardFloat1 4s ease-in-out infinite;
}

@keyframes cardFloat1 {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

.card__2 {
    width: 280px;
    bottom: 20%;
    right: 10%;
    animation: cardFloat2 5s ease-in-out infinite;
}

@keyframes cardFloat2 {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.card__header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card__dot {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    border-radius: 50%;
}

.card__line {
    height: 10px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.card__line.short {
    width: 60%;
}

.upload__icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.upload__text {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: var(--font-medium);
}

.upload__bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.upload__progress {
    height: 100%;
    width: 70%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    border-radius: 4px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 30%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 30%;
    }
}

/* ============= Tracking Section ============= */
.tracking {
    padding: 5rem 0;
    background: var(--body-color);
}

.tracking__subtitle {
    color: var(--text-color);
    margin-top: 0.5rem;
}

.tracking__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.tracking__form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tracking__input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: var(--normal-font-size);
    transition: all 0.3s ease;
}

.tracking__input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.tracking__result {
    background: var(--card-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: none;
}

.tracking__result.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= Contact Section ============= */
.contact {
    padding: 5rem 0;
    background: var(--container-color);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__description {
    margin: 1rem 0 2rem;
    font-size: 1.125rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
}

.contact__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact__text h4 {
    color: var(--title-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact__text p {
    color: var(--text-color);
    line-height: 1.6;
}

.social__links {
    display: flex;
    gap: 1rem;
}

.social__link {
    color: var(--primary-dark);
    font-weight: var(--font-semibold);
    transition: color 0.3s ease;
}

.social__link:hover {
    color: var(--primary-color);
}

.contact__form-wrapper {
    background: var(--card-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-semibold);
    color: var(--title-color);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: var(--normal-font-size);
    transition: all 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============= Footer ============= */
.footer {
    background: var(--title-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer__description {
    color: var(--text-light);
    line-height: 1.6;
}

.footer__subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: white;
}

.footer__text {
    color: var(--text-light);
    line-height: 1.6;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    color: var(--text-light);
    font-size: var(--small-font-size);
}

.footer__terms {
    color: var(--text-light);
    font-size: var(--small-font-size);
    transition: color 0.3s ease;
}

.footer__terms:hover {
    color: white;
}

/* ============= Scroll to Top ============= */
.scroll__top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-fixed);
}

.scroll__top.show {
    opacity: 1;
    visibility: visible;
}

.scroll__top:hover {
    transform: translateY(-4px);
    background: var(--primary-color);
    color: var(--title-color);
}

/* ============= Responsive ============= */
@media screen and (max-width: 968px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
    }
    
    .hero__container,
    .platform__container,
    .contact__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero__image,
    .platform__visual {
        height: 300px;
    }
    
    .hero__printer {
        font-size: 6rem;
    }
    
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-xl);
        padding: 4rem 2rem;
        transition: right 0.4s ease;
    }
    
    .nav__menu.show {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        cursor: pointer;
    }
    
    .toggle__bar {
        width: 1.5rem;
        height: 2px;
        background: var(--title-color);
        transition: all 0.3s ease;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        cursor: pointer;
        color: var(--title-color);
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tracking__form {
        flex-direction: column;
    }
    
    .platform__visual {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

