/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #020b50;
    --cyan-blue: #66c8f9;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --yellow-400: #fbbf24;
    --green-500: #10b981;
    --green-100: #dcfce7;
    --green-700: #047857;
    --red-400: #f87171;
    
    --font-family: 'Inter', sans-serif;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-2xl: 2rem;
    --border-radius-3xl: 3rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

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

/* Utilidades */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

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

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-3px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-scale {
    animation: scale 0.3s ease-out;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--primary-blue) 90%, black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-blue) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--white) 0%, color-mix(in srgb, var(--gray-50) 30%, transparent) 50%, color-mix(in srgb, var(--cyan-blue) 10%, transparent) 100%);
    padding-top: 5rem;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-mockup {
    margin-top: 3rem;
}

.mockup-card {
    background-color: var(--white);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 2rem;
    max-width: 64rem;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

.mockup-content {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-blue) 100%);
    border-radius: var(--border-radius-xl);
    height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.mockup-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.mockup-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--cyan-blue);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .mockup-content {
        height: 20rem;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-blue) 100%);
    border-radius: var(--border-radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    box-shadow: var(--shadow-lg);
}

.feature-icon i {
    width: 2rem;
    height: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-blue) 100%);
    border-radius: var(--border-radius-3xl);
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.cta-banner h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-banner {
        padding: 3rem;
    }
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.benefit-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-0.5rem);
}

.benefit-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-blue) 100%);
    border-radius: var(--border-radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-icon i {
    width: 2rem;
    height: 2rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.implementation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: color-mix(in srgb, var(--cyan-blue) 10%, transparent);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    justify-self: center;
    margin: 0 auto;
}

.implementation-badge i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--cyan-blue);
}

.implementation-badge span {
    color: var(--primary-blue);
    font-weight: 500;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--white);
}

.companies-section {
    margin-bottom: 4rem;
}

.companies-text {
    text-align: center;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 2rem;
}

.companies-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0.6;
}

.company-logo {
    padding: 0.75rem 1.5rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius-lg);
    color: var(--primary-blue);
    font-weight: 600;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-2xl);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    width: 2rem;
    height: 2rem;
    color: var(--cyan-blue);
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
}

.star.filled {
    color: var(--yellow-400);
    fill: var(--yellow-400);
}

.testimonial-text {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    color: var(--primary-blue);
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.author-company {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.satisfaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--green-100);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    justify-self: center;
    margin: 0 auto;
}

.pulse-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.satisfaction-badge span {
    color: var(--green-700);
    font-weight: 500;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, color-mix(in srgb, var(--primary-blue) 90%, black) 100%);
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .section-header p {
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
}

.contact-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    color: var(--white);
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--cyan-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-blue);
}

.contact-label {
    font-weight: 500;
}

.contact-value {
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
}

.demo-features {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-2xl);
    backdrop-filter: blur(10px);
}

.demo-features h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-features ul {
    list-style: none;
    padding: 0;
}

.demo-features li {
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius-3xl);
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
}

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

.form-row {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary-blue);
    font-weight: 500;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
}

.input-container input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form textarea {
    padding: 0.75rem 1rem;
    resize: none;
}

.input-container input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan-blue);
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 28rem;
}

.footer-description {
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
    margin: 1.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--cyan-blue);
    color: var(--primary-blue);
}

.footer-links {
    display: grid;
    gap: 2rem;
}

.footer-column h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    width: 1rem;
    height: 1rem;
    color: var(--cyan-blue);
}

.footer-contact span {
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
}

.footer-love {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
}

.footer-love .heart {
    width: 1rem;
    height: 1rem;
    color: var(--red-400);
    fill: var(--red-400);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: color-mix(in srgb, var(--cyan-blue) 70%, white);
}

.footer-copyright a {
    color: var(--white);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        grid-column: 2 / 4;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-contact {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    max-width: 24rem;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.toast-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--green-500);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.toast-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.toast-message {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Smooth scroll offset for fixed header */
section {
    scroll-margin-top: 5rem;
}