/* Professional Dark Investment Platform Styles */
:root {
    --primary-bg: #0f0f0f;
    --secondary-bg: #1a1a1a;
    --accent-bg: #2a2a2a;
    --card-bg: #1e1e1e;
    --primary-gold: #d4af37;
    --secondary-gold: #f4d03f;
    --success-green: #10b981;
    --accent-purple: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #6b7280;
    --border-color: #333333;
    --border-light: #404040;
    --shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(15, 15, 15, 0.98);
    box-shadow: var(--shadow-medium);
    border-bottom-color: var(--primary-gold);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.logo-text {
    margin-left: 0.5rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 1.3rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Professional Dark Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-plan {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-bg);
    box-shadow: var(--shadow-dark);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-bg);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.simple-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent);
    animation: simpleFloat 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent);
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 60%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent);
}

@keyframes simpleFloat {
    0%, 100% { transform: translateY(0px); opacity: 0.4; }
    50% { transform: translateY(-20px); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--primary-gold);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: simplePulse 2s ease-in-out infinite;
}

@keyframes simplePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.primary-text {
    color: var(--text-primary);
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Investment Plans - Dark Theme Card */
.investment-plans {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.recommended-plan {
    background: var(--card-bg);
    border: 2px solid var(--primary-gold);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-large);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 320px;
    position: relative;
    overflow: hidden;
}

.recommended-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold), var(--accent-purple));
}

.recommended-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.2);
    border-color: var(--secondary-gold);
}

.plan-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-bg);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.recommended-plan h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.plan-features i {
    color: var(--success-green);
    font-size: 0.9rem;
}

.btn-plan {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    box-shadow: var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.btn-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-plan:hover::before {
    left: 100%;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

.plan-divider {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
}

.plan-divider::before,
.plan-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--border-color);
}

.plan-divider::before {
    left: -40px;
}

.plan-divider::after {
    right: -40px;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary-hero, .btn-secondary-hero {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-bg);
    border: none;
    box-shadow: var(--shadow-dark);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

.btn-secondary-hero {
    background: var(--card-bg);
    color: var(--primary-gold);
    border: 1px solid var(--border-light);
}

.btn-secondary-hero:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-dark);
    background: rgba(212, 175, 55, 0.05);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--primary-bg);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--card-bg);
    border: 2px solid var(--primary-gold);
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-large);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold), var(--accent-purple));
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.auth-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-gold);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.full-width {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Estilos corregidos para el Panda Bot */

.bot-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bot-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.bot-icon.panda {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.bot-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bot-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bot-rental-info {
    text-align: center;
    margin-bottom: 2rem;
}

.rental-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    animation: glow-gold 2s ease-in-out infinite alternate;
}

@keyframes glow-gold {
    from { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
    to { box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6); }
}

.rental-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

.investment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.investment-note i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Hover effect para el bot icon */
.recommended-plan:hover .bot-icon {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

/* Hover effect para la nota de inversión */
.recommended-plan:hover .investment-note {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Balance validation message styles for index.html */
.balance-error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideInDown 0.3s ease-out;
}

.balance-error-message .error-content {
    text-align: center;
}

.balance-error-message .error-content i {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 10px;
}

.balance-error-message .error-content h4 {
    color: #ef4444;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.balance-error-message .error-content p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.balance-error-message .error-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.balance-info-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideInDown 0.3s ease-out;
}

.balance-info-message .balance-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.balance-info-message .balance-content i {
    color: var(--success-green);
    font-size: 1.2rem;
}

.balance-info-message .balance-content span {
    color: var(--text-primary);
    font-size: 1rem;
}

.balance-info-message .balance-content strong {
    color: var(--success-green);
    font-weight: 600;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: Mejoras para móviles pequeños */
@media (max-width: 600px) {
    .container {
        padding: 0 5px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .investment-plans {
        gap: 1rem;
        flex-direction: column;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
@media (max-width: 400px) {
    .container, .footer-content {
        padding: 0 2px !important;
        gap: 0.5rem !important;
    }
    .hero-title {
        font-size: 1.3rem;
    }
    .recommended-plan, .plan-badge, .btn-plan {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
}

/* Form enhancements for better validation feedback in index.html */
.bot-form input[type="number"]:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.bot-form input[type="number"]:valid {
    border-color: var(--success-green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* Submit button disabled state for index.html */
.bot-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.bot-form button[type="submit"]:disabled:hover {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    transform: none !important;
}

/*
   Balance validation styles added for index.html bot rental modal:
   - Error messages when insufficient balance
   - Info messages showing current balance  
   - Smooth animations and proper color coding
   - Responsive design that fits with existing modal styles
   Maintains consistency with the overall design system using CSS custom properties.
*/
/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .investment-plans {
        flex-direction: column;
        gap: 2rem;
    }
    
    .plan-divider::before,
    .plan-divider::after {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .recommended-plan {
        min-width: auto;
        padding: 2rem 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .bot-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .bot-header h3 {
        font-size: 1.5rem;
    }
    
    .rental-description {
        font-size: 0.9rem;
        max-width: 280px;
    }
    
    .investment-note {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

/* --- Modal Styles for Bot Info & Rent Form (copiados de bots.css) --- */
#botModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.96);
    backdrop-filter: blur(2px);
    transition: opacity 0.2s;
    overflow-y: auto;
    /* Centrado flex para asegurar que el modal no se salga */
    display: flex;
    align-items: flex-start; /* <-- Cambia esto */
    justify-content: center;
    padding-top: 40px;       /* <-- Agrega esto */
}

#botModal[style*="display: none"] {
    display: none !important;
}

#botModal .bot-modal-content {
    background: var(--card-bg);
    color: var(--primary-gold);
    border: 1.5px solid var(--primary-gold);
    max-width: 410px;
    width: 100%;
    margin: 0 auto 40px auto; /* <-- Cambia margin para quitar el margin-top y dejar solo margin-bottom */
    padding: 2.2em 1.7em 1.7em 1.7em;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(212, 175, 55, 0.08);
    animation: modalPopIn 0.25s cubic-bezier(.25,1.7,.5,1.3);
    overflow-y: auto;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 600px) {
    #botModal {
        align-items: flex-start;
        padding-top: 16px; /* Menos padding en móvil */
    }
    #botModal .bot-modal-content {
        max-width: 98vw;
        width: 98vw;
        margin: 0 auto 16px auto;
        padding: 1.2em 0.7em 1em 0.7em;
        max-height: 98vh;
    }
}

#botModal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2em;
    text-align: left;
    color: var(--primary-gold);
    letter-spacing: 0.5px;
}

#botModal .bot-modal-close,
#closeBotModal {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-gold);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
#botModal .bot-modal-close:hover,
#closeBotModal:hover {
    color: var(--danger-red);
}

#modalBotDetails ul {
    margin-bottom: 0.7em;
    padding-left: 1.2em;
}
#modalBotDetails li {
    color: var(--secondary-gold);
    margin-bottom: 0.4em;
    font-size: 1.01em;
    list-style: disc;
}
#modalBotDetails p {
    color: var(--text-muted);
    font-size: 0.98em;
    margin-bottom: 0.5em;
}

#modalBotExample {
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: #18140c;
    border-radius: 8px;
    border: 1.5px solid var(--primary-gold);
    padding: 0.8em 1em;
    margin-bottom: 1.1em;
    font-size: 1.04em;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(212,175,55,0.08);
}

/* Modal Form */
#botModal form {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    background: rgba(24, 20, 12, 0.92);
    border-radius: 12px;
    padding: 1.2em 1em 1em 1em;
    box-shadow: 0 2px 12px rgba(212,175,55,0.07);
    border: 1px solid #2a2210;
}

#botModal label {
    font-size: 1em;
    color: var(--primary-gold);
    margin-bottom: 0.2em;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#botModal input[type="text"],
#botModal input[type="email"],
#botModal input[type="password"],
#botModal input[type="number"] {
    width: 100%;
    padding: 0.65em 1em;
    border-radius: 8px;
    border: 1.5px solid var(--primary-gold);
    background: #18140c;
    color: var(--primary-gold);
    font-size: 1em;
    margin-top: 4px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(212,175,55,0.05);
}
#botModal input:focus {
    border-color: var(--secondary-gold);
    box-shadow: 0 0 0 2px rgba(244,208,63,0.12);
    background: #23201a;
    color: var(--secondary-gold);
}

/* Submit Button */
#rentBotSubmitBtn {
    margin-top: 1.1em;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: #18140c;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.13em;
    padding: 0.95em 0;
    cursor: pointer;
    box-shadow: 0 4px 18px 0 rgba(212,175,55,0.18), 0 1.5px 6px 0 rgba(244,208,63,0.08);
    letter-spacing: 0.5px;
    transition: filter 0.18s, box-shadow 0.18s, transform 0.13s;
    text-shadow: 0 1px 8px rgba(244,208,63,0.13);
    outline: none;
    border-bottom: 2.5px solid #b89c2c;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#rentBotSubmitBtn:hover, #rentBotSubmitBtn:focus {
    filter: brightness(1.08) drop-shadow(0 0 8px #f4d03f88);
    box-shadow: 0 8px 32px 0 rgba(212,175,55,0.22), 0 2px 8px 0 rgba(244,208,63,0.13);
    transform: translateY(-2px) scale(1.03);
}
#rentBotSubmitBtn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.13);
    transition: width 0.3s, left 0.3s;
    z-index: 1;
}
#rentBotSubmitBtn:hover::after {
    width: 100%;
    left: 0;
}

/* Bot icon styles inside modal */
#modalBotIcon .bot-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin: 0;
    box-shadow: var(--shadow-medium);
}
#modalBotIcon .bot-icon.fox {
    background: linear-gradient(135deg, var(--fox-orange), #ff8c42);
    color: white;
}
#modalBotIcon .bot-icon.hawk {
    background: linear-gradient(135deg, var(--hawk-orange), #ffb366);
    color: white;
}
#modalBotIcon .bot-icon.panda {
    background: linear-gradient(135deg, var(--panda-blue), #6366f1);
    color: white;
}
#modalBotIcon .bot-icon.jaguar {
    background: linear-gradient(135deg, var(--jaguar-purple), #a855f7);
    color: white;
}
#modalBotIcon .bot-icon.turtle {
    background: linear-gradient(135deg, var(--turtle-amber), #fbbf24);
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    #botModal .bot-modal-content {
        max-width: 98vw;
        margin: 10px auto;
        padding: 1.2em 0.7em 1em 0.7em;
    }
    #botModal h2 {
        font-size: 1.1rem;
    }
}

.flash {
    padding: 12px 16px;
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}
.flash-error {
    background-color: #f87171;
    color: white;
}
.flash-success {
    background-color: #34d399;
    color: white;
}