:root {
    --primary: #5c77e0;
    --primary-dark: #4d67d6;
    --secondary: #418ce3;
    --dark-blue: #0a1759;
    --light-gray: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --green: #2ecc71;
    --red: #e74c3c;
    --telegram: #2AABEE;
    --whatsapp: #25D366;
    --orange: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header img.logo {
    height: 50px;
    width: auto;
}

.header h1 {
    font-size: 2.2em;
    color: var(--dark-blue);
    margin: 0;
}

.header p {
    color: var(--text-light);
    font-size: 1.1em;
    margin: 0;
}

.main-content-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(92, 119, 224, 0.2);
}

.countries-grid {
    display: grid;
    gap: 25px;
}

.country-section {
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.country-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.country-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.country-flag {
    font-size: 2em;
    margin-right: 15px;
}

.country-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-dark);
}

.carriers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.carrier-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.carrier-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- ESTILOS PARA LA NUEVA SECCIÓN --- */
.services-section h2, .video-section h2 {
    font-size: 1.8em;
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    text-align: center;
}

.service-buttons, .video-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.service-btn, .video-category-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.service-btn:hover, .video-category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-btn:nth-child(1) { background: linear-gradient(135deg, var(--green), #56ab2f); }
.service-btn:nth-child(2) { background: linear-gradient(135deg, var(--orange), #e67e22); }
.service-btn:nth-child(3) { background-color: var(--whatsapp); }
.service-btn:nth-child(4) { background-color: var(--telegram); }
/* --- FIN DE ESTILOS NUEVOS --- */

.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); overflow-y: auto; padding: 20px 0;
}
.modal-content {
    background: white; margin: 5% auto; padding: 0; border-radius: 15px; width: 90%; max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); animation: modalAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modalAppear { from { opacity: 0; transform: translateY(-50px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary)); color: white; padding: 20px;
    border-radius: 15px 15px 0 0; position: sticky; top: 0; z-index: 10;
}
.modal-header h2 { margin: 0; font-size: 1.8em; }
.close-btn {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    color: white; font-size: 28px; cursor: pointer; transition: transform 0.2s ease;
}
.close-btn:hover { transform: scale(1.2); }
.modal-body { padding: 30px; }
.imsi-info { background: var(--light-gray); padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.imsi-code {
    font-family: 'Courier New', monospace; font-size: 1.5em; font-weight: bold; color: #e74c3c; background: white;
    padding: 15px; border-radius: 8px; border: 2px dashed #e74c3c; text-align: center; margin: 15px 0; letter-spacing: 2px;
}
.gid-info { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.gid-box { background: white; padding: 15px; border-radius: 8px; border-left: 4px solid var(--primary); }
.gid-label { font-weight: 600; color: var(--text-light); font-size: 14px; }
.gid-value { font-family: 'Courier New', monospace; font-size: 18px; font-weight: bold; color: var(--text-dark); }
.action-buttons { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.action-btn { flex: 1; min-width: 150px; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
    transition: all 0.3s ease; color: white; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.copy-btn { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.instructions-btn { background: linear-gradient(135deg, #f39c12, #e67e22); }
.suggestion-btn { background: linear-gradient(135deg, var(--primary-dark), var(--secondary)); }
.telegram-btn { background-color: var(--telegram); }
.whatsapp-btn { background-color: var(--whatsapp); }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.online-indicator {
    width: 10px; height: 10px; background-color: var(--green); border-radius: 50%; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.instruction-image { width: 100%; max-width: 500px; height: auto; border-radius: 10px; margin: 20px auto; display: block; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.step-by-step { background: var(--light-gray); padding: 20px; border-radius: 10px; margin: 20px 0; }
.step { margin: 15px 0; padding: 15px; background: white; border-radius: 8px; border-left: 4px solid var(--primary); }
.step-number { display: inline-block; width: 25px; height: 25px; background: var(--primary); color: white; border-radius: 50%;
    text-align: center; line-height: 25px; font-weight: bold; margin-right: 10px; }
.success-message { background: #d4edda; color: #155724; padding: 10px 15px; border-radius: 5px; margin-top: 10px;
    text-align: center; display: none; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#videoModal .modal-content { max-width: 900px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.footer { text-align: center; padding: 20px; margin-top: 30px; color: #fff; font-weight: bold; }
@media (max-width: 768px) {
    .header h1 { font-size: 1.5em; } .header p { font-size: 1em; }
    .header-title { flex-direction: column; text-align: center; gap: 10px; }
}