/* Variables CSS */
:root {
    --primary-color: #C9A961;
    --secondary-color: #6B6B6B;
    --accent-color: #B8923D;
    --dark-color: #3A3A3A;
    --light-color: #EFEFEF;
    --text-color: #2C2C2C;
    --gradient-primary: linear-gradient(135deg, #C9A961 0%, #B8923D 100%);
    --gradient-secondary: linear-gradient(135deg, #6B6B6B 0%, #C9A961 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* Navegación */
.navbar {
    background: white;
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

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

/* Floating Icons Animation */
.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-icons {
    position: relative;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    animation: float 20s infinite;
}

.floating-icons i:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { left: 80%; top: 30%; animation-delay: 5s; }
.floating-icons i:nth-child(3) { left: 20%; top: 70%; animation-delay: 10s; }
.floating-icons i:nth-child(4) { left: 70%; top: 80%; animation-delay: 15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(10deg); }
    50% { transform: translateY(0) rotate(-10deg); }
    75% { transform: translateY(20px) rotate(5deg); }
}

/* Secciones */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* Servicios */
.services {
    padding: 80px 20px;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.btn-service {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-service:hover {
    transform: scale(1.05);
}

/* Planes de Precio */
.pricing {
    padding: 80px 20px;
    background: #E8E8E8;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.25rem;
    color: var(--text-color);
}

.amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 5px;
}

.period {
    color: var(--text-color);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #D0D0D0;
}

.pricing-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.btn-pricing {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pricing:hover,
.btn-pricing.featured {
    background: var(--primary-color);
    color: white;
}

/* Portfolio */
.portfolio {
    padding: 80px 20px;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* PDF Viewer */
.pdf-viewer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-download,
.btn-fullscreen {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.btn-download:hover,
.btn-fullscreen:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-fullscreen {
    background: var(--gradient-secondary);
}

.pdf-viewer {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 141.4%;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.pdf-viewer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .pdf-viewer {
        padding-bottom: 150%;
    }

    .pdf-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-download,
    .btn-fullscreen {
        justify-content: center;
    }
}

/* APIs Section */
.apis {
    padding: 80px 20px;
    background: #E8E8E8;
}

.api-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.api-intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.api-base-url {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    overflow-wrap: break-word;
}

.api-base-url code {
    background: var(--light-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--dark-color);
    font-size: 0.9rem;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.apis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.api-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.api-card.featured {
    border-top-color: var(--accent-color);
    background: linear-gradient(145deg, #FFFFFF 0%, #F9F9F9 100%);
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.api-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.api-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.api-icon i {
    font-size: 1.75rem;
    color: white;
}

.api-header h3 {
    flex: 1;
    margin: 0;
    padding-top: 0.5rem;
    color: var(--dark-color);
    font-size: 1.4rem;
}

.api-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.api-badge.free {
    background: #D4EDDA;
    color: #155724;
}

.api-badge.premium {
    background: var(--gradient-primary);
    color: white;
}

.api-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.api-endpoints {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.endpoint {
    background: var(--light-color);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.2s ease;
}

.endpoint:hover {
    background: #E5E5E5;
    border-left-color: var(--primary-color);
}

.endpoint .method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
}

.endpoint .method.get {
    background: #28A745;
    color: white;
}

.endpoint .method.post {
    background: #007BFF;
    color: white;
}

.endpoint code {
    font-family: 'Courier New', monospace;
    color: var(--dark-color);
    font-weight: 600;
}

.endpoint p {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-color);
}

.api-auth-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.api-auth-info h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-auth-info h3 i {
    color: var(--accent-color);
}

.api-auth-info pre {
    background: var(--dark-color);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 1rem;
}

.api-auth-info code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.api-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .api-intro {
        padding: 0 10px;
    }

    .api-base-url {
        padding: 1rem;
    }

    .api-base-url code {
        font-size: 0.75rem;
        padding: 6px 8px;
        line-height: 1.4;
    }

    .apis-grid {
        grid-template-columns: 1fr;
    }

    .api-cta {
        flex-direction: column;
    }

    .api-cta .btn {
        width: 100%;
        text-align: center;
    }
}

/* Contacto */
.contact {
    padding: 80px 20px;
    background: var(--dark-color);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: #A0A0A0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #C0C0C0;
    margin: 0;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #5A5A5A;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #2C2C2C;
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

.form-group select {
    color: white;
}

.form-group select option {
    background: #2C2C2C;
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #353535;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.contact-form .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #A0A0A0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4A4A4A;
}

/* Botones Flotantes */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.messenger {
    background: #006AFF;
}

.float-btn.payment {
    background: var(--accent-color);
}

.float-btn.qr {
    background: var(--dark-color);
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

.close:hover {
    color: var(--primary-color);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.payment-method {
    text-align: center;
}

.payment-method img {
    width: 100%;
    max-width: 150px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.qr-container {
    text-align: center;
    margin-top: 2rem;
}

.qr-container img {
    width: auto;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.15s ease;
}

/* Slightly larger on wide screens while still constrained */
@media (min-width: 1200px) {
    .qr-container img {
        max-width: 220px;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}