/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #83a4d4, #b6fbff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #ffffffcc;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    width: 400px;
    height: auto;
    margin-bottom: 10px;
}

.titulo {
    font-size: 2rem;
    color: #333;
}

/* Idioma */
.selector-idioma {
    text-align: center;
    margin-top: 5px;
}

.selector-idioma select {
    padding: 5px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.selector-idioma a {
    display: inline-block;
    margin: 0 4px; /* espacio entre banderas */
    text-decoration: none;
    font-weight: bold;
    color: #333;
    font-size: 20px;
    padding: 4px 4px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.selector-idioma a:hover {
    background-color: #f0f0f0;
}

.selector-idioma .idioma-activo {
    border: 1px solid #333;
    background-color: #e0e0e0;
}

.selector-idioma .bandera {
    vertical-align: middle;
    width: 36px; /* banderas mas grandes */
    height: auto;
    margin-right: 4px;
}

.selector-idioma-img {
    text-align: center;
    margin-top: 10px;
}

.selector-idioma-img .btn-idioma {
    background: none;
    border: none;
    padding: 0 5px;
    cursor: pointer;
}

.selector-idioma-img .btn-idioma img {
    width: 28px;
    height: auto;
    transition: transform 0.2s ease;
}

.selector-idioma-img .btn-idioma:hover img {
    transform: scale(1.1);
}

/* Main */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.bienvenida {
    background: #fff;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.bienvenida h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #555;
}

/* Botones */
.botones {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.boton {
    background-color: #4a90e2;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.boton:hover {
    background-color: #357ABD;
}

.boton-icono {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
	padding: 0;
}

.boton-icono img {
    width: 20px;
    height: 20px;
}

.boton-regreso {
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    display: inline-block;
    margin-top: 20px;
}

.boton-regreso:hover {
    background-color: #0056b3;
}

/* botos mostrar contraseña */
.boton-terciario {
    background-color: #17a2b8;
    text-align: center;
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.boton-terciario:hover {
    background-color: #138496;
}

/* Estilos para formularios */
.formulario {
    width: 100%;
    max-width: 400px; /* Limita el ancho máximo */
    margin: 0 auto; /* Centra el formulario */
    display: flex;
    flex-direction: column;
    gap: 15px;
	text-align: center;
}

.formulario input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

.formulario select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.formulario input:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Ajuste general de los campos */
.formulario .campo input,
.formulario .campo select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
	margin-top: 10px;
}

/* Botón del formulario */
.formulario .boton {
    background-color: #4a90e2;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.formulario .boton:hover {
    background-color: #357ABD;
}

/* Información de contraseña segura */ 
.info-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	border-radius: 50%;
	background-color: #007bff;
	color: white;
	font-weight: bold;
	cursor: pointer;
	margin-left: 6px;
		font-size: 14px;
}

.tooltip-box {
	position: absolute;
	top: 100%;
	left: 0;
	width: 280px;
	background-color: #f1f1f1;
	color: #333;
	padding: 12px;
	border: 1px solid #007bff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 100;
	display: none;
}

.tooltip-box p {
	margin: 0 0 10px;
	font-size: 14px;
}

.tooltip-box .close-btn {
	position: absolute;
	top: 6px;
	right: 8px;
	font-size: 14px;
	color: #888;
	cursor: pointer;
}

.password-label-container {
	position: relative;
	display: inline-block;
	justify-content: flex-start;
}

/* Mostrar contraseña */
.campo-password {
    position: relative;
    width: 100%;
}

.campo-password input {
    width: 100%;
    padding-right: 40px; /* espacio para el icono */
	padding-left: 10px; /* Agregar espacio izquierdo si se necesita */
    box-sizing: border-box; /* Aseguramos que padding no afecta el ancho total */
}

/* Mensajes */
.mensaje-exitoso {
    text-align: center;
    padding: 50px 20px;
}

.mensaje-exitoso h2 {
    color: #28a745; /* Verde para éxito */
    font-size: 30px;
    margin-bottom: 20px;
}

.mensaje-exitoso p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.mensaje-resultado {
    background: #e0ffe0;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: bold;
}

.mensaje-resultado {
    background-color: #e6ffe6;
    border: 1px solid #28a745;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1rem;
}

.mensaje-resultado.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-resultado.pendiente {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.mensaje-resultado.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Panel de socio */
.panel-socio {
    background: #fff;
    padding: 40px;
    margin: 0 auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.panel-socio h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.bloque-datos {
    margin-bottom: 40px;
}

.bloque-datos h3 {
    margin-bottom: 15px;
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.bloque-datos p,
.bloque-datos li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.panel-contenedor {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.panel-bloque {
    background: #fff;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.panel-bloque h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.panel-datos {
    margin-bottom: 40px;
}

.panel-datos h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #4a90e2;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.panel-datos p,
.panel-datos li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
}

/* Estilo general para el formulario de login */
.login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #f4f4f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    font-size: 16px;
    color: #333;
}

.campo input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.campo-password {
    position: relative;
    margin-bottom: 20px;
}

.boton-iniciar-sesion {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.boton-iniciar-sesion:hover {
    background-color: #218838;
}

/* Botones adicionales */
.botones-adicionales {
    text-align: center;
    margin-top: 20px;
}

.boton-regreso, .boton-recuperar {
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    margin: 5px;
    display: inline-block;
}

.boton-regreso:hover, .boton-recuperar:hover {
    background-color: #0056b3;
}

/* Ajustes para el icono del ojo */
.boton-icono {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Agrupar campos horizontalmente en pantallas grandes */
.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5px;
	margin-top: 5px;
}

/* Panel 
/* Estilo para contenedor de miembros */
/*.miembros-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
*/
.miembros-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

/* Vista de cada miembro como tarjeta (por defecto: móvil) */
/*
.miembro-linea {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
}
*/

.miembro-linea {
    display: flex;
    flex-wrap: wrap;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    justify-content: space-between;
}

.cabecera-miembros {
    background: #ddd;
    font-weight: bold;
}

/* Columnas */
.col-dni { width: 10%; min-width: 50px; }
.col-nombre { width: 25%; min-width: 140px; }
.col-telefono { width: 13%; min-width: 80px; }
.col-correo { width: 25%; min-width: 120px; }
.col-fecha { width: 12%; min-width: 80px; }



/* Tinymce 

/* .tox-tinymce {
/*    max-width: 800px; /* tamaño máximo en escritorio */
/*    width: 95%; /* ocupa el 95% del contenedor en pantallas pequeñas */
/*    margin: 0 auto; /* centra el editor */
/*}

*/

/* Centrar el editor TinyMCE en la página */
/* .tox.tox-tinymce {
/*  display: inline-block;   /* permite centrado con text-align del contenedor */
/*  width: 100%;             /* ocupa todo el ancho disponible del contenedor */
/*  max-width: 900px;        /* límite agradable en escritorio */
/*  margin: 0 auto;          /* centra cuando no hay text-align */
/*}

.editor-container {
    display: flex;
    justify-content: center;
}

.editor-container .tox-tinymce {
    width: 100%;
    max-width: 800px;
}

.editor-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* .editor-wrapper .tox-tinymce {
/*  max-width: 800px;  /* ancho máximo en escritorio */
/*    width: 95%;        /* ocupa casi todo en móvil */
/* }

*/

/* Responsive */

/* Cambios para pantallas pequeñas (móviles) */

@media (max-width: 768px) {
	
	.logo {
        width: 350px;  /* Aumentamos el tamaño del logo en Tablets */
        height: auto;
    }
	
	.bienvenida {
        padding: 30px 20px;
    }

    .botones {
        flex-direction: column;
    }
	
    .campo-password {
        display: flex;
        align-items: center; /* Alineamos verticalmente */
    }

    .campo-password input {
       width: 100%; /* El input sigue usando todo el ancho disponible */
       padding-right: 40px; /* espacio para el icono */
    }

    .boton-icono {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        margin-top: 0; /* Quitar margen */
    }
}

@media screen and (min-width: 768px) {
    .form-grupo {
        flex-direction: row;
    }

    .form-grupo .campo {
        flex: 1;
		margin-top: 5px;
		margin-bottom: 5px;
    }

    .ayuda-fecha {
        font-size: 0.85rem;
        color: #666;
        margin-top: -10px;
        margin-bottom: 10px;
    }
	
	.cabecera-miembros {
        display: none;
    }
    .miembro-linea {
        flex-direction: column;
    }
    .miembro-linea p {
        margin-bottom: 4px;
    }
	
	
	
}

@media (max-width: 480px) {
    .logo {
        width: 280px; /* Aumentamos el tamaño del logo en móviles */
		height: auto;
    }

    .titulo {
        font-size: 1.5rem;
    }

    .bienvenida h2 {
        font-size: 1.5rem;
    }
	
}

/* Solo para pantallas grandes: mostrar como fila tipo tabla */
@media (min-width: 768px) {
    .miembros-grid {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    .miembro-linea {
        display: table-row;
        background: none;
        padding: 0;
        border-radius: 0;
        border-bottom: 1px solid #ccc;
    }

    .miembro-linea p {
        display: table-cell;
        padding: 8px;
        margin: 0;
    }

    .miembro-linea p strong {
        display: none; /* Oculta las etiquetas <strong> en modo tabla */
    }
	
}