/* ==========================================
   ESTILOS GENERALES Y TEMA AZUL MARINO DISCRETO
   ================================---------- */
:root {
    --bg-primary: #0a1128;      /* Azul marino muy oscuro (Fondo general) */
    --bg-card: #121c3b;         /* Azul marino ligeramente más claro para contenedores/tarjetas */
    --text-main: #f1f5f9;       /* Blanco suave/gris claro para lectura cómoda */
    --text-muted: #94a3b8;      /* Gris azulado para textos secundarios */
    --accent-color: #3b82f6;    /* Azul tecnológico para botones principales */
    --border-color: #1e293b;    /* Bordes sutiles oscuros */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido general horizontalmente */
    min-height: 100vh;
}

/* Encabezados */
.main-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.main-header h1 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin: 0;
}

/* Contenedores principales centrados y con un ancho máximo controlado */
main, .welcome-container, .anuncio-card, .form-container {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 480px; /* Limita el ancho máximo para que quede centrado como una app móvil */
    box-sizing: border-box;
    text-align: center; /* Centra los textos por defecto */
}

/* Alineaciones internas de formularios y tarjetas que deben ir a la izquierda */
form, .welcome-container form, div[style*="text-align: left;"] {
    text-align: left !important;
}

/* Títulos y textos dentro de las tarjetas */
h2, h3, p, label {
    color: var(--text-main);
}

.welcome-container p, .anuncio-info p, .anuncio-info span {
    color: var(--text-muted) !important;
}

/* Inputs, selects y campos de texto */
input[type="text"], 
input[type="number"], 
input[type="file"], 
select, 
textarea {
    background-color: #1a2744 !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
    padding: 0.75rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.3rem;
}

input::placeholder, textarea::placeholder {
    color: #64748b;
}

/* Botones centrados y con buen aspecto */
.btn-primary, .btn-telegram-grupo {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-back:hover {
    color: var(--text-main);
}

/* ==========================================
   ESTILOS OPTIMIZADOS PARA FOTO Y SELLO VIP
   ================================---------- */
#contenedor-foto-perfil {
    position: relative;
    width: 100%;
    max-width: 100%; /* Adaptable a la tarjeta */
    margin: 1rem auto;  /* Centrado automático */
    border-radius: 8px;
    overflow: hidden;   /* Evita que el sello sobresalga de las esquinas redondeadas */
}

#contenedor-foto-perfil .foto-principal {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

#contenedor-foto-perfil .sello-vip-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22%; /* 22% del ancho de la foto */
    height: auto;
    pointer-events: none; /* Permite hacer clic o acciones a través del sello sin bloquear */
    z-index: 10;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5)); /* Sombra sutil para resaltar sobre cualquier fondo */
}