/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #9325A3; /* Púrpura principal */
    --secondary-color: #A44AD0; /* Púrpura secundario */
    --light-bg: #F8F4FA;
    --dark-color: #6E1D7A; /* Púrpura oscuro */
    --accent-color: #1A2E5E; /* Azul oscuro para acentos */
    --text-dark: #1A2E5E;
    --text-light: #5A698F;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --font-family: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-demo {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.btn-demo:hover {
    background: var(--dark-color);
}

.country-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.country-flag img {
    width: 24px;
    height: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0ebf5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle strong {
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 15px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Circle Diagram */
.circle-diagram {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 10;
}

.center-logo img {
    height: 60px;
}

.circle-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.circle-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.circle-item span {
    font-size: 0.7rem;
    margin-top: 4px;
}

/* Positioning circle items */
.reservas { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.almacenes { top: 25%; right: 15%; animation-delay: 0.5s; }
.franquicias { top: 50%; right: 5%; animation-delay: 1s; }
.procesos { bottom: 25%; right: 15%; animation-delay: 1.5s; }
.control { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 2s; }
.delivery { bottom: 25%; left: 15%; animation-delay: 2.5s; }
.mejoras { top: 50%; left: 5%; animation-delay: 3s; }
.caja { top: 25%; left: 15%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Stats Section */
.stats {
    background: white;
    padding: 80px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    background: var(--gray-light);
    padding: 100px 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.highlight {
    color: var(--primary-color);
}

.features p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-category h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: left;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Pricing Section */
.pricing {
    background: white;
    padding: 100px 0;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.plan {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
}

.plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.plan.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f4fa 0%, #f0ebf5 100%);
    transform: scale(1.05);
}

.plan.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.price {
    margin-bottom: 30px;
}

.currency {
    font-size: 1rem;
    color: var(--text-light);
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 5px;
}

.period {
    font-size: 1rem;
    color: var(--text-light);
}

.plan-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.plan-features {
    list-style: none;
    text-align: left;
}

.plan-features li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Demo Section */
.demo {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 100px 0;
    color: white;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.phone-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0 15px;
}

.phone-input img {
    width: 20px;
    height: 15px;
}

.phone-input input {
    border: none;
    padding: 15px 0;
    flex: 1;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--dark-color);
}

/* Footer */
.footer {
    background: var(--accent-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Social Floating Buttons */
.social-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.social-floating .social-icon {
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-floating .social-icon:hover {
    transform: scale(1.1);
    background-color: var(--dark-color);
}

.social-floating .social-icon img {
    width: 30px;
    height: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .circle-diagram {
        width: 400px;
        height: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .nav-menu {
        margin-top: 15px;
        gap: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demo-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .circle-diagram {
        width: 320px;
        height: 320px;
    }

    .circle-item {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }

    .circle-item span {
        font-size: 0.6rem;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .circle-diagram {
        width: 280px;
        height: 280px;
    }

    .social-floating {
        flex-direction: row;
        right: 50%;
        transform: translateX(50%);
        bottom: 10px;
    }
}