/* =====================================================
   ESTILOS UNIFICADOS - Sistema Carta Astral
   Inspirado en aula-astrologica.cat
   ===================================================== */

:root {
    /* Colores principales - Paleta Astrológica */
    --primary-dark: #2C3E50;      /* Azul oscuro profundo */
    --primary: #5D7B8F;           /* Azul grisáceo */
    --primary-light: #8BA5B8;     /* Azul suave */
    
    --accent: #C89F6F;            /* Dorado tierra */
    --accent-light: #E5D4B8;      /* Beige cálido */
    --accent-dark: #A67C52;       /* Marrón dorado */
    
    --secondary: #7B6B93;         /* Púrpura místico */
    --secondary-light: #B8A8C9;   /* Lila suave */
    
    --success: #6B8E7F;           /* Verde salvia */
    --warning: #D4A574;           /* Ámbar */
    --error: #C17B7B;             /* Rojo suave */
    
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #95A5A6;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-cream: #FAF8F3;
    
    --border-color: #E5E7EB;
    --shadow: rgba(44, 62, 80, 0.1);
    --shadow-dark: rgba(44, 62, 80, 0.2);
    
    /* Fuentes */
    --font-main: 'Source Code Pro', monospace;
    --font-heading: 'Alfa Slab One', cursive;

    /* Tamaño fuentes */
    --font-size-small: 16px;
    --font-size-medium: 20px;
    --font-size-large: 24px;
    
    /* Colores de elementos astrológicos */
    --color-fire: #ea3223;        /* Fuego: Aries, Leo, Sagitario */
    --color-earth: #7f8026;       /* Tierra: Tauro, Virgo, Capricornio */
    --color-air: #5cc8c6;         /* Aire: Géminis, Libra, Acuario */
    --color-water: #0000f4;       /* Agua: Cáncer, Escorpio, Piscis */
}

/* =====================================================
   RESET Y ESTILOS GLOBALES
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', monospace;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--primary-light) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Fuente Astronomicon para símbolos astrológicos */
@font-face {
    font-family: 'Astronomicon';
    src: url('../fonts/astronomicon.woff2') format('woff2'),
         url('../fonts/astronomicon.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* =====================================================
   CONTENEDOR PRINCIPAL
   ===================================================== */

.container {
    max-width: 95%;
    margin: 40px auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-dark);
    overflow: hidden;
}

.container.auth {
    max-width: 60%;
}

.container.big {
    max-width: 95%;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-family: 'Alfa Slab One', cursive;
    font-size: 44px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header p {
    opacity: 0.95;
    font-size: 19px;
    color: var(--accent-light);
}

.header .button,
.header a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header .button:hover,
.header a:hover {
    color: white;
}

/* Selector de idioma */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-selector select {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.language-selector select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector select option {
    background: var(--primary-dark);
    color: white;
}

/* Botones del header */
.header-button {
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    margin-top: 30px;
}

/* =====================================================
   SECCIONES DE CONTENIDO
   ===================================================== */

.content,
.form-section {
    padding: 40px;
}

.section-title {
    color: var(--primary-dark);
    font-family: 'Alfa Slab One', cursive;
    font-size: 30px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title span:first-child {
    font-size: 44px;
}

/* =====================================================
   FORMULARIOS
   ===================================================== */

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: var(--text-medium);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 21px;
}

label .required {
    color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 21px;
    font-family: var(--font-main);
    transition: all 0.3s;
    background: var(--bg-white);
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 123, 143, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

small {
    color: var(--text-medium);
    display: block;
    margin-top: 6px;
    font-size: 19px;
    font-style: italic;
}

/* Grupo de búsqueda */
.search-group {
    display: flex;
    gap: 12px;
}

.search-group input {
    flex: 1;
}

/* =====================================================
   BOTONES
   ===================================================== */

button,
.button,
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 21px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

button:hover,
.button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 159, 111, 0.4);
}

button:active,
.button:active,
.btn:active {
    transform: translateY(0);
}

button:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

button.secondary,
.button.secondary,
.btn.btn-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

button.secondary:hover,
.button.secondary:hover,
.btn.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(93, 123, 143, 0.4);
}

button.tres,
.button.tres {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

button.tres:hover,
.button.tres:hover {
    box-shadow: 0 6px 20px rgba(93, 123, 143, 0.4);
}

button.danger,
.button.danger,
.btn.danger {
    background: linear-gradient(135deg, var(--error) 0%, #A05E5E 100%);
}

.btn.btn-primary {
    background: linear-gradient(135deg, var(--success) 0%, #557566 100%);
}

.btn.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(107, 142, 127, 0.4);
}

.btn.btn-clear {
    background: transparent;
    color: var(--error);
    border: 2px solid var(--error);
}

.btn.btn-clear:hover {
    background: var(--error);
    color: white;
    transform: translateY(-2px);
}

/* =====================================================
   ESTADOS DE CARGA
   ===================================================== */

.loading {
    text-align: center;
    color: var(--primary);
    padding: 30px;
    display: none;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   RESULTADOS DE BÚSQUEDA
   ===================================================== */

.results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.result-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 3px 12px var(--shadow);
}

.result-item.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
}

.city-name {
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 5px;
}

.city-location {
    font-size: 19px;
    opacity: 0.85;
}

/* =====================================================
   UBICACIÓN SELECCIONADA
   ===================================================== */

.selected-location {
    background: rgba(107, 142, 127, 0.1);
    border: 2px solid var(--success);
    border-radius: 10px;
    padding: 16px;
    margin-top: 15px;
    display: none;
}

.selected-location.active {
    display: block;
}

.selected-location strong {
    color: var(--success);
}

.selected-location p {
    margin-top: 8px;
    color: var(--text-dark);
}

/* =====================================================
   AJUSTE DE ZONA HORARIA
   ===================================================== */

.time-adjustment {
    background: rgba(212, 165, 116, 0.1);
    border-left: 4px solid var(--warning);
    padding: 16px;
    margin-top: 15px;
    border-radius: 10px;
    display: none;
}

.time-adjustment.active {
    display: block;
}

.time-adjustment strong {
    color: var(--accent-dark);
}

.time-adjustment p {
    margin-top: 8px;
    color: var(--text-medium);
}

.time-adjustment .utc-time {
    font-size: 21px;
    color: var(--accent-dark);
    font-weight: bold;
    margin-top: 10px;
}

/* =====================================================
   ALERTAS Y MENSAJES
   ===================================================== */

.alert,
.errors,
.success {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid;
}

.alert.active,
.errors,
.success {
    display: block;
}

.alert-info {
    background: rgba(93, 123, 143, 0.1);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.alert-warning {
    background: rgba(212, 165, 116, 0.1);
    color: var(--accent-dark);
    border-color: var(--warning);
}

.alert-error,
.errors {
    background: rgba(193, 123, 123, 0.1);
    color: #8B4545;
    border-color: var(--error);
}

.success {
    background: rgba(107, 142, 127, 0.1);
    color: #3D5E51;
    border-color: var(--success);
}

.errors p,
.success p {
    margin: 5px 0;
}

/* =====================================================
   SECCIÓN DE ENVÍO
   ===================================================== */

.submit-section {
    background: var(--bg-cream);
    padding: 35px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.submit-btn {
    padding: 16px 50px;
    font-size: 21px;
    background: linear-gradient(135deg, var(--success) 0%, #557566 100%);
}

.submit-btn:hover {
    box-shadow: 0 6px 20px rgba(107, 142, 127, 0.4);
}

/* =====================================================
   RESUMEN
   ===================================================== */

.summary {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px var(--shadow);
    display: none;
}

.summary.active {
    display: block;
}

.summary h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-family: 'Alfa Slab One', cursive;
    font-size: 44px;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: var(--text-medium);
}

.summary-value {
    color: var(--text-dark);
    font-weight: 500;
    text-align: left;
}

/* =====================================================
   LISTADO DE CARTAS
   ===================================================== */

.list {
    padding: 40px;
}

.card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-dark);
    border-color: var(--accent);
}

.card h3 {
    color: var(--primary-dark);
    font-family: 'Alfa Slab One', cursive;
    font-size: 30px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-medium);
    margin-bottom: 15px;
    font-size: 17px;
}

.card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    transition: color 0.3s;
}

.card a:hover {
    color: var(--accent);
}

.card a.delete {
    color: var(--error);
}

.card a.delete:hover {
    color: #A05E5E;
}

/* =====================================================
   FORMULARIOS DE AUTENTICACIÓN
   ===================================================== */

.auth-form {
    padding: 40px;
}

.auth-form h1 {
    font-family: 'Alfa Slab One', cursive;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 30px;
    font-size: 44px;
}

.auth-links {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--accent);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--bg-light);
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 17px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: var(--accent);
}

/* =====================================================
   SISTEMA DE PESTAÑAS
   ===================================================== */

.tabs-container {
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-medium);
    font-size: 21px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    margin-bottom: -2px;
    border-radius: 0;
    font-family: var(--font-main);
}

.tab-button:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: none;
    box-shadow: none;
}

.tab-button.active {
    color: var(--primary-dark);
    border-bottom-color: var(--accent);
    background: transparent;
}

.tab-button .tab-icon {
    font-size: 21px;
}

.tabs-content {
    margin-top: 0;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

/* =====================================================
   MODAL
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    margin-top: 0;
    color: #e74c3c;
    font-family: 'Alfa Slab One', cursive;
}

.modal-content p {
    margin: 15px 0;
    color: #666;
}

/* =====================================================
   SISTEMA DE COMPARTIR
   ===================================================== */

.share-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 200px;
}

.share-modal-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* =====================================================
   CARTA ASTRAL - STICKY POSITIONING
   ===================================================== */

.dibujo-carta-astral {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    padding-bottom: 10px;
}

.aspectos-grid-container {
    position: relative;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.aspectos-grid thead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: white;
}

.aspectos-grid thead th {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aspectos-grid tbody th.planeta-header {
    position: sticky;
    left: 0;
    background: white;
    z-index: 3;
}

.aspectos-grid thead th.vacio,
.aspectos-grid thead th.planeta-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 6;
}

.aspectos-grid thead th.vacio {
    position: sticky;
    left: 0;
    z-index: 7;
}

/* =====================================================
   FILTROS DE CARTA NATAL
   ===================================================== */

.filter-container {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px var(--shadow);
}

.filter-header {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-header::before {
    content: "⚙️";
    font-size: 44px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.planet-icon,
.aspect-icon {
    font-size: 30px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-item:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.filter-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-item-label {
    font-family: var(--font-main);
    font-size: 19px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aspect-symbol,
.planet-symbol {
    font-family: 'Astronomicon', serif;
    font-size: 28px;
    font-weight: normal;
}

/* Colores de planetas según elementos */
.symbol-fire { 
    color: var(--color-fire);
}

.symbol-earth { 
    color: var(--color-earth);
}

.symbol-air { 
    color: var(--color-air);
}

.symbol-water { 
    color: var(--color-water);
}

.aspect-symbol {
    color: var(--text-medium);
}

.filter-actions {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* =====================================================
   CONTENEDOR DE CARTA NATAL
   ===================================================== */

.chart-wrapper {
    position: relative;
    min-height: 400px;
}

.chart-container {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px var(--shadow);
}

.chart-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-medium);
}

.chart-placeholder h3 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.chart-placeholder p {
    font-size: 19px;
    color: var(--text-medium);
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.hidden {
    display: none !important;
}

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

.text-muted {
    color: var(--text-light);
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* =====================================================
   ADMIN
   ===================================================== */
.container-admin {
    margin: 0 auto; 
    padding: 20px;
    max-width: none;
}

.admin-page-tabla-usuarios {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Tabla Admin */
.admin-page-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-medium);
}

.admin-page-table th,
.admin-page-table td {
    padding: 12px;
    font-size: var(--font-size-medium);
}

.admin-page-table thead tr {
    border-bottom: 2px solid var(--border-color);
}

.admin-page-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.admin-page-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.admin-page-table th {
    text-align: center;
    font-weight: 600;
}

.admin-page-text-left { 
    text-align: left;
}

.admin-page-text-right { 
    text-align: right;
}

.admin-page-cell-user-info .name {
    font-weight: bold;
    font-size: var(--font-size-medium);
    margin-bottom: 4px;
}

.admin-page-cell-user-info .email {
    color: var(--text-light);
    font-size: 14px;
}

.admin-page-cell-date {
    text-align: center;
    font-size: var(--font-size-medium);
}

.admin-page-select-group {
    padding: 6px 10px; 
    border-radius: 4px; 
    border: 1px solid var(--border-color);
    font-size: var(--font-size-medium);
    min-width: 180px;
    cursor: pointer;
}

.admin-page-select-group:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

.admin-page-pagination-centered {
    margin-top: 20px; 
    display: flex; 
    justify-content: center; 
    gap: 5px;
}

.container.admin-page-edit-container {
    margin: 40px 20px;
    max-width: none;
}

.admin-page-form-card {
    padding: 10px;
    margin-bottom: 0;
}

/* Herramientas y búsqueda */
.admin-page-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-page-search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-page-search-box input[type="text"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: var(--font-size-small);
    min-width: 250px;
}

.admin-page-search-box input[type="text"]:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

/* Grid de permisos */
.admin-page-permissions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-page-permission-item {
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 10px;
    width: 400px;
    transition: border-color 0.2s ease;
}

.admin-page-permission-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.01);
}

.admin-page-permission-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.admin-page-permission-checkbox {
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.admin-page-permission-label > div {
    flex: 1;
}

.admin-page-permission-label strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.admin-page-critical-text {
    color: var(--danger-color, #dc3545);
}

.admin-page-perm-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
    margin-top: 4px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .container {
        margin: 20px;
        border-radius: 12px;
    }
    
    .form-section,
    .content,
    .list {
        padding: 25px;
    }

    .header {
        padding: 30px 25px;
    }

    .header h1 {
        font-size: 30px;
        font-family: 'Alfa Slab One', cursive;
    }

    .language-selector {
        position: static;
        margin-bottom: 20px;
    }

    .search-group {
        flex-direction: column;
    }

    button,
    .button {
        width: 100%;
    }

    .summary-item {
        flex-direction: column;
        gap: 8px;
    }

    .summary-value {
        text-align: left;
    }
    
    .card {
        padding: 20px;
    }
    
    .submit-section {
        padding: 25px 20px;
    }
    
    /* Filtros responsive */
    .filter-container {
        padding: 20px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .tabs-nav {
        gap: 4px;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 17px;
    }
    
    .tab-button .tab-icon {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 30px;
        font-family: 'Alfa Slab One', cursive;
    }
    
    .section-title {
        font-size: 21px;
        font-family: 'Alfa Slab One', cursive;
    }
    
    .card h3 {
        font-size: 21px;
        font-family: 'Alfa Slab One', cursive;
    }
    
    .filter-header {
        font-size: 24px;
    }
    
    .filter-section-title {
        font-size: 21px;
    }
}

/* =====================================================
   CARTA NATAL - BOTÓN ZOOM Y MODAL PANTALLA COMPLETA
   ===================================================== */

.carta-natal {
    position: relative !important;
}

.dibujo-carta-astral .carta-natal {
    position: relative !important;
}

/* Asegurar que el SVG no cubra el botón de zoom */
.carta-natal svg {
    position: relative;
    z-index: 1;
}

.chart-zoom-btn {
    z-index: 1001 !important; /* Mayor que el SVG */
}

/* Botón de zoom (lupa) */
.chart-zoom-btn {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    width: 48px;
    height: 48px;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 2px solid var(--primary-dark);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chart-zoom-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.chart-zoom-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Modal de pantalla completa */
.chart-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.chart-fullscreen-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón cerrar */
.chart-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chart-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.chart-fullscreen-close svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Contenido del modal */
.chart-fullscreen-content {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-fullscreen-content svg {
    width: 95vmin;  /* 95% del lado más pequeño del viewport */
    height: 95vmin;
    max-width: 95vw;
    max-height: 95vh;
}