:root {
    --primary-color: #1e3a8a;
    /* azul profundo, confiable */
    --secondary-color: #3b82f6;
    /* azul vivo, moderno */
    --accent-color: #10b981;
    /* verde brillante, acción positiva */
    --danger-color: #ef4444;
    /* rojo alerta */
    --warning-color: #facc15;
    /* amarillo cálido, atención */
    --dark-color: #111827;
    /* texto oscuro */
    --light-bg: #f9fafb;
    /* fondo suave para secciones claras */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: whitesmoke;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Header mejorado */
.hero-section {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.9), rgba(108, 92, 231, 0.9));
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;

    /* Fondo traslúcido */
    background: rgba(50, 50, 50, 0.6);
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    /* centrado horizontal */
    text-align: center;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-box {
    background: rgba(50, 50, 50, 0.6);
    /* gris semitransparente */
    border-radius: 15px;
    /* bordes redondos */
    padding: 30px;
    /* espacio interno */
    display: inline-block;
    /* se ajusta al contenido */
    max-width: 800px;
    /* no ocupa todo el ancho */
    margin: 0 auto;
    /* centrado */
}

.logo-twitch {
    width: 200px;
    height: 200px;
    margin-right: 15px;
    /* filter: brightness(0) invert(1); */
    /* comentar si desaparece */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards mejoradas */
.vulnerability-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: none;
    overflow: hidden;
    height: 100%;
}

.vulnerability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border: none;
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.card-text {
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-demo {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(145, 70, 255, 0.3);
}

/* Modales mejorados */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* Mini-web mejorada */
.mini-web {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border: 2px solid #dee2e6;
}

.mini-web h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(145, 70, 255, 0.25);
}

.output {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Packs mejorados */
.pack-card {
    background: linear-gradient(135deg, #fff5e6, #ffe8cc);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #f39c12;
    transition: var(--transition);
}

.pack-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.2);
}

.pack-card h6 {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.pack-card h6::before {
    content: '⭐';
    margin-right: 8px;
}

.pack-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(243, 156, 18, 0.2);
}

.pack-price:last-child {
    border-bottom: none;
}

.pack-price span {
    font-weight: 500;
    color: var(--dark-color);
}

.btn-pack {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.btn-pack:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
}

/* Botones de acción mejorados */
.btn-success {
    background: linear-gradient(135deg, var(--accent-color), #00a085);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 184, 148, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

/* Contenedor principal */
.main-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin: 0 auto 60px;
    max-width: 1200px;
}

/* Responsividad mejorada */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .main-container {
        padding: 20px;
        margin: 0 15px 40px;
    }

    .pack-price {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vulnerability-card {
    animation: fadeInUp 0.6s ease-out;
}

.vulnerability-card:nth-child(1) {
    animation-delay: 0.1s;
}

.vulnerability-card:nth-child(2) {
    animation-delay: 0.2s;
}

.vulnerability-card:nth-child(3) {
    animation-delay: 0.3s;
}

/**** WhatsApp Button******** */
/**************************/
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 1000;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

/* Pulse animation for WhatsApp button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn {
    animation: pulse 2s infinite;
}


.modal-sm {
    max-width: 400px;
}

.form-control-sm {
    font-size: 0.85rem;
    padding: 4px 8px;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.accordion-button {
    font-size: 0.9rem;
}