/* ========================================
   STYLES CSS PRINCIPAL - TRAMPERAS
   ========================================
   Archivo principal de estilos para el sistema
   
   Actualizaci+¦n: Fix m+¡nimo para grid (6 desktop, 2 mobile) sin cambiar presentaci+¦n original
   Versi+¦n: 1.6 - Patch conservador, solo grid
*/

/* Reset y base - Mantener original si existe */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Efecto de fondo animado - Estilo nodiosas.com - Movimiento constante */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(
            to right,
            #CDB4DB 0%,
            #CDB4DB 8.33%,
            #E8C5E0 12.5%,
            #FFC8DD 16.66%,
            #FFC8DD 25%,
            #FFB8D5 29.16%,
            #FFAFCC 33.33%,
            #FFAFCC 41.66%,
            #D9E8FC 45.83%,
            #BDE0FE 50%,
            #BDE0FE 58.33%,
            #B2DBFF 62.5%,
            #A2D2FF 66.66%,
            #A2D2FF 75%,
            #F5F5F5 79.16%,
            #FFFFFF 83.33%,
            #FFFFFF 91.66%,
            #F5F5F5 95.83%,
            #A2D2FF 100%
        );
    background-size: 33.33% 100%;
    background-repeat: repeat-x;
    animation: gradientMoveConstant 30s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(
            to right,
            #FFFFFF 0%,
            #F5F5F5 4.16%,
            #A2D2FF 8.33%,
            #A2D2FF 16.66%,
            #B2DBFF 20.83%,
            #BDE0FE 25%,
            #BDE0FE 33.33%,
            #D9E8FC 37.5%,
            #FFAFCC 41.66%,
            #FFAFCC 50%,
            #FFB8D5 54.16%,
            #FFC8DD 58.33%,
            #FFC8DD 66.66%,
            #E8C5E0 70.83%,
            #CDB4DB 75%,
            #CDB4DB 83.33%,
            #E8C5E0 87.5%,
            #FFC8DD 91.66%,
            #FFC8DD 100%
        );
    background-size: 33.33% 100%;
    background-repeat: repeat-x;
    opacity: 0.5;
    animation: gradientMoveConstantReverse 35s linear infinite;
}

@keyframes gradientMoveConstant {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

@keyframes gradientMoveConstantReverse {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(33.33%);
    }
}

/* Header - Restaurar estilo original aproximado */
.header {
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(91, 206, 250, 0.3);
    position: sticky;
    top: 0;
    z-index: 2000; /* asegurar que quede por delante de cualquier capa de la videollamada */
    min-height: 60px;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 60px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    height: 100%;
}

.header__logo i {
    font-size: 2rem;
}

.header__logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.header__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

.header__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.header__nav a, .header__nav button {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.header__nav a:hover, .header__nav button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #A9DEF9;
    transform: translateY(-1px);
}

/* Estilos espec+¡ficos para botones del header */
.btn--register {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3) !important;
}

.btn--register:hover {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
    transform: translateY(-1px);
}

.btn--login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.btn--login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-1px);
}

.btn--plans {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #333 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3) !important;
}

.btn--plans:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
    color: #333 !important;
}

.btn--plans i {
    margin-right: 0.5rem;
    color: #333 !important;
}

/* Contenedor principal - Sin cambios agresivos */
.main {
    max-width: 1600px; /* Aumentar ancho para acomodar 6 tarjetas */
    margin: 2rem auto;
    padding: 0 0.5rem; /* Reducir padding para dar m+ís espacio */
    margin-top: 80px; /* Espacio para el header sticky */
}

/* T+¡tulo principal centrado */
.main__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin: 2rem 0 2rem 0;
    padding: 0;
}

/* ========================================
   GRID DE PERFILES - FIX M+ìNIMO SOLO PARA 6 DESKTOP / 2 M+ôVIL
   ========================================
   Solo agregar estos estilos al CSS original - no sobrescribir todo
   Forzar 6 columnas desktop, 2 en mobile sin afectar header/presentaci+¦n
*/

.profiles-section {
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin-bottom: 2rem;
}

/* Grid base responsive */
.profiles-grid {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 720px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 481px) and (max-width: 767px) {
    .profiles-grid {
        max-width: 960px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .profiles-grid {
        max-width: 1200px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .profiles-grid {
        max-width: 1440px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .profiles-grid {
        max-width: 1600px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Tarjetas exactas como distintas.net */
.profile-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    height: 300px; /* Altura fija de 300px */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ajustar dimensiones para m+¦viles */
@media (max-width: 767px) {
    .profile-card {
        max-width: 160px;
        height: 240px; /* Reducir altura en m+¦viles */
    }
}

@media (max-width: 480px) {
    .profile-card {
        max-width: 140px;
        height: 210px; /* Reducir altura en m+¦viles peque+¦os */
    }
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-card__image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(135deg, #F5A9B8 0%, #F5A9B8 100%);
    overflow: hidden;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.profile-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.profile-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 0.75rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.profile-card:hover .profile-card__overlay {
    opacity: 1;
}

.profile-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: transparent;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 35%;
}

.profile-card__name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem; /* Reducir margen de 0.5rem a 0.25rem */
    color: #FFD700; /* Cambiar a amarillo dorado */
    word-break: break-word;
    flex-shrink: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9); /* Sombra m+ís fuerte para mejor legibilidad */
    z-index: 4;
    position: relative;
}

.profile-card__location {
    font-size: 1rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    word-break: break-word;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Checkmark rojo como en distintas.net */
.profile-card__checkmark {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 20px;
    height: 20px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-card__checkmark::before {
    content: 'Ô£ô';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Estrella como en distintas.net */
.profile-card__star {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-card__star::before {
    content: 'Ôÿà';
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.profile-card__star:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.profile-card__star:hover::before {
    color: white;
}

.profile-card__score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #A9DEF9;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-top: auto;
}

/* Resto de estilos - Mantener sin cambios para no alterar presentaci+¦n original */
/* Filtro de ubicaci+¦n - Forzar layout horizontal globalmente */
.location-filter {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    justify-content: center;
    align-items: end;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Forzar layout horizontal en el contenedor de filtros */
.filter-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: end !important;
    width: 100% !important;
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    min-width: 150px !important;
    max-width: 200px !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

.filter-group label {
    font-weight: 600;
    color: #A9DEF9;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
    min-width: 150px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.filter-group select:focus {
    outline: none;
    border-color: #A9DEF9;
    box-shadow: 0 0 0 3px rgba(91, 206, 250, 0.1);
}

/* Estilos para las opciones dentro de los selects */
.filter-group select option {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    direction: ltr;
    text-align: left;
    padding: 0.5rem;
    background: white;
    color: #333;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 2rem;
    display: block;
}

/* Mejorar la apariencia del select cuando est+í abierto */
.filter-group select:focus,
.filter-group select:hover {
    border-color: #A9DEF9;
    box-shadow: 0 0 0 3px rgba(91, 206, 250, 0.1);
    background: #f8f9fa;
}

/* Estilos para el dropdown cuando est+í activo */
.filter-group select:active {
    background: white;
    border-color: #A9DEF9;
}

.filter-button {
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    white-space: nowrap;
    align-self: end;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 206, 250, 0.3);
}

.filter-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mensaje sin perfiles - Ocupa todo el ancho del grid */
.no-profiles {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: rgba(91, 206, 250, 0.1);
    border-radius: 15px;
    border: 2px dashed #5BCEFA;
    margin: 2rem 0;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.no-profiles i {
    font-size: 4rem;
    color: #A9DEF9;
    margin-bottom: 1rem;
    display: block;
}

.no-profiles h3 {
    color: #A9DEF9;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-profiles p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%);
    color: white;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 206, 250, 0.3);
}

.btn--secondary {
    background: #6c757d;
    color: white;
}

.btn--secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn--pink {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
}

.btn--pink:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #E4C1F9 0%, #F694C1 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3, .footer__section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section ul li a:hover {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__version {
    font-size: 0.85rem;
    opacity: 0.9;
    color: #A9DEF9;
    font-weight: 500;
}

.footer__counter {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Estilos espec+¡ficos para desktop - Forzar layout horizontal */
@media (min-width: 769px) {
    .location-filter {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: end !important;
        justify-content: center !important;
        display: flex !important;
    }
    
    .filter-group {
        min-width: 150px !important;
        max-width: 200px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        width: auto !important;
    }
    
    .filter-button {
        width: auto !important;
        margin-top: 0 !important;
        align-self: end !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }
}

/* Estilos espec+¡ficos para tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .location-filter {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: end !important;
    }
    
    .filter-group {
        min-width: 120px !important;
        max-width: 150px !important;
        flex-shrink: 0 !important;
    }
    
    .filter-button {
        width: auto !important;
        margin-top: 0 !important;
        align-self: end !important;
    }
}

/* Responsive general */
@media (max-width: 768px) {
    .header {
        padding: 0.25rem 0;
        min-height: 50px;
    }
    
    .header__container {
        min-height: 50px;
    }
    
    .header__nav {
        gap: 0.75rem;
    }
    
    .header__nav a, .header__nav button {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
        min-height: 35px;
    }
    
    .header__logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .header__title {
        font-size: 1.3rem;
    }
    
    .main__title {
        font-size: 2rem;
        margin: 1.5rem 0 1.5rem 0;
    }
    
    .main {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .location-filter {
        padding: 0.75rem;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    .filter-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .filter-group {
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .filter-button {
        width: 100% !important;
        margin-top: 0.5rem !important;
        align-self: stretch !important;
    }
    
    .profile-card__content {
        padding: 0.75rem;
    }
    
    .profile-card__name {
        font-size: 1rem;
    }
    
    .profile-card__location {
        font-size: 0.8rem;
    }
    
    .profile-card__district {
        font-size: 0.8rem;
    }
    
    /* Ajustes del grid en mobile */
    .profiles-section {
        overflow: hidden;
    }
    
    .profiles-grid {
        width: 100%;
        min-width: 0;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profiles-grid .profile-card {
    animation: fadeInUp 0.5s ease forwards;
}

.profiles-grid .profile-card:nth-child(1) { animation-delay: 0.1s; }
.profiles-grid .profile-card:nth-child(2) { animation-delay: 0.2s; }
.profiles-grid .profile-card:nth-child(3) { animation-delay: 0.3s; }
.profiles-grid .profile-card:nth-child(4) { animation-delay: 0.4s; }
.profiles-grid .profile-card:nth-child(5) { animation-delay: 0.5s; }
.profiles-grid .profile-card:nth-child(6) { animation-delay: 0.6s; }
.profiles-grid .profile-card:nth-child(7) { animation-delay: 0.7s; }
.profiles-grid .profile-card:nth-child(8) { animation-delay: 0.8s; }
.profiles-grid .profile-card:nth-child(9) { animation-delay: 0.9s; }
.profiles-grid .profile-card:nth-child(10) { animation-delay: 1.0s; }
.profiles-grid .profile-card:nth-child(11) { animation-delay: 1.1s; }
.profiles-grid .profile-card:nth-child(12) { animation-delay: 1.2s; }

/* Spinner de carga */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5BCEFA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensaje de +®xito/error */
.alert {
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert--warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Variables CSS para colores trans */
:root {
    --trans-blue: #5BCEFA;
    --trans-pink: #F5A9B8;
    --trans-white: #FFFFFF;
}

/* Estilos para modal de login */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal__content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 1;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal__close:hover {
    background: #f8f9fa;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.login-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--trans-blue);
    box-shadow: 0 0 0 3px rgba(91, 206, 250, 0.1);
}

.login-form .btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--trans-blue) 0%, var(--trans-pink) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.login-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 206, 250, 0.3);
}

.login-links {
    text-align: center;
    margin-top: 1rem;
}

.login-links p {
    color: #666;
    margin-bottom: 1rem;
}

.login-links a {
    color: var(--trans-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Responsive para modal */
@media (max-width: 480px) {
    .modal__content {
        margin: 5% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .login-form .form-input {
        font-size: 16px; /* Prevenir zoom en iOS */
    }
}

/* Estilos para tarjetas de perfil */
.profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    aspect-ratio: 2/3;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(91, 206, 250, 0.3);
}


.profile-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 0.75rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.profile-card:hover .profile-card__overlay {
    opacity: 1;
}

.profile-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: transparent;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 35%;
}

.profile-card__name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem; /* Reducir margen de 0.5rem a 0.25rem */
    color: #FFD700; /* Cambiar a amarillo dorado */
    word-break: break-word;
    flex-shrink: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9); /* Sombra m+ís fuerte para mejor legibilidad */
    z-index: 4;
    position: relative;
}

.profile-card__location {
    font-size: 1rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    word-break: break-word;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.profile-card__score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #A9DEF9;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-top: auto; /* Empujar al final */
}

/* ========================================
   ESTILOS PARA REGISTRO Y PERFIL
   ========================================
*/

.registro-container, .perfil-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--trans-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--trans-pink);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--trans-blue);
    box-shadow: 0 0 0 3px rgba(91, 206, 250, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.password-input-group {
    position: relative;
}

.password-input-group .password-toggle {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    z-index: 999 !important;
    padding: 0.5rem !important;
    width: auto !important;
    height: auto !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
    pointer-events: auto !important;
}

.password-input-group .password-toggle:hover {
    color: #e91e63 !important;
    background-color: rgba(233, 30, 99, 0.1) !important;
    border-radius: 50% !important;
}

/* Asegurar que los iconos de contrase+¦a no se superpongan con la cabecera */
.password-input-group .password-toggle,
.password-toggle {
    z-index: 10 !important;
    position: relative !important;
}

/* Regla espec+¡fica para p+íginas de perfil */
.perfil-container .password-toggle,
.perfil-container .password-input-group .password-toggle {
    z-index: 10 !important;
    position: absolute !important;
}

/* Regla de alta prioridad para evitar superposici+¦n con cabecera */
body .password-toggle,
body .password-input-group .password-toggle {
    z-index: 10 !important;
    position: absolute !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    backdrop-filter: blur(2px) !important;
}

.file-upload-container {
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 375px;
    margin: 0 auto;
}

.file-upload-container:hover {
    border-color: var(--trans-blue);
    background: rgba(91, 206, 250, 0.05);
}

.file-upload-container.has-photo {
    border-color: var(--trans-pink);
    background: rgba(245, 169, 184, 0.05);
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.file-upload-placeholder i {
    font-size: 3rem;
    color: var(--trans-blue);
}

.file-upload-preview {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: absolute;
    top: 0;
    left: 0;
}

.file-upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.file-upload-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Estilos para el recuadro de informaci+¦n de foto */
.foto-info {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.foto-info-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #F5A9B8 0%, #F5A9B8 100%);
    border: 4px solid white;
    border-radius: 0.5rem;
    color: #333;
    font-weight: 500;
    width: 200px;
    height: 300px;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-direction: column;
    text-align: center;
    flex-shrink: 0;
}

.foto-info-content i {
    color: #28a745;
    font-size: 2rem;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.foto-info-content span {
    font-size: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

/* Galer+¡a */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.galeria-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.galeria-item:hover {
    transform: scale(1.05);
    border-color: var(--trans-blue);
}

.galeria-item img, .galeria-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.galeria-item .delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .delete-btn {
    opacity: 1;
}

/* Mapa en perfil */
.map-container {
    margin-top: 2rem;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#map {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .registro-container, .perfil-container {
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .file-upload-container {
        padding: 1.5rem;
    }
    
    .file-upload-container {
        width: 200px;
        height: 300px;
    }
    
    .file-upload-preview {
        width: 100%;
        height: 100%;
    }
    
    .foto-info-content {
        width: 180px;
        height: 270px;
        max-width: 90%;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Animaciones para carga */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Mensajes de notificaci+¦n */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    word-wrap: break-word;
}

.notification--success {
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%);
}

.notification--error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.notification--warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.notification--info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Ocultar notificaciones despu+®s de 5s */
.notification {
    animation: slideInUp 0.3s ease-out, slideOutDown 0.3s ease-out 4.7s;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 1;
    }
}

/* Estilos para botones de acci+¦n en tarjetas */
.vote-controls {
    position: absolute !important;
    bottom: 2rem !important;
    right: 0.5rem !important;
    display: flex !important;
    gap: 0.25rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 0.25rem !important;
    border-radius: 20px !important;
}

.profile-card:hover .vote-controls {
    opacity: 1 !important;
    visibility: visible !important;
}

.vote-icon {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 5 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.vote-icon:hover {
    background: white;
    transform: scale(1.1);
}

.vote-icon--like {
    color: #87CEEB;
}

.vote-icon--dislike {
    color: #dc3545;
}

/* Estilos para el contador de votos */
.profile-card__score {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    color: white !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 0.8rem !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 10px !important;
    min-width: 20px !important;
    text-align: center !important;
}

/* Forzar visibilidad de elementos de votaci+¦n en tarjetas */
.profile-card .vote-controls,
.profile-card .profile-card__score,
.profile-card .vote-icon {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Asegurar que los elementos de votaci+¦n no se oculten */
.profile-card * {
    opacity: inherit !important;
    visibility: inherit !important;
}

/* ========================================
   ESTILOS ESPEC+ìFICOS PARA P+üGINA DE REGISTRO
   ======================================== */

/* Header espec+¡fico para registro */
.registro-container .header,
.perfil-container .header {
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%) !important;
    color: white !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 2px 10px rgba(91, 206, 250, 0.3) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    min-height: 60px !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

.registro-container .header__container,
.perfil-container .header__container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
    min-height: 60px !important;
}

.registro-container .header__logo,
.perfil-container .header__logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    color: white !important;
    height: 100% !important;
}

.registro-container .header__nav,
.perfil-container .header__nav {
    display: flex !important;
    gap: 2rem !important;
    align-items: center !important;
    height: 100% !important;
}

.registro-container .header__nav a,
.registro-container .header__nav button,
.perfil-container .header__nav a,
.perfil-container .header__nav button {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
}

.registro-container .header__nav a:hover,
.registro-container .header__nav button:hover,
.perfil-container .header__nav a:hover,
.perfil-container .header__nav button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #5BCEFA !important;
    transform: translateY(-1px) !important;
}

/* Estilos espec+¡ficos para logo y t+¡tulo en registro */
.registro-container .header__logo-icon,
.perfil-container .header__logo-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.registro-container .header__logo-icon svg,
.perfil-container .header__logo-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke-width: 2 !important;
    stroke: white !important;
}

.registro-container .header__title,
.perfil-container .header__title {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin: 0 !important;
    line-height: 1 !important;
    color: white !important;
}

/* Ajustar margen del contenido principal en registro */
.registro-container .main,
.perfil-container .main {
    margin-top: 80px !important;
}

/* Forzar que el header ocupe todo el ancho en p+íginas de registro */
body:has(.registro-container) .header,
body:has(.perfil-container) .header {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
}

/* Asegurar que el header no tenga restricciones de ancho */
.registro-container .header,
.perfil-container .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
}

/* Resetear m+írgenes del body en p+íginas de registro */
body:has(.registro-container),
body:has(.perfil-container) {
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que el html no tenga m+írgenes */
html:has(.registro-container),
html:has(.perfil-container) {
    margin: 0 !important;
    padding: 0 !important;
}

/* Estilos para modal de fotos */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.photo-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.photo-modal__image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.photo-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.photo-modal__nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.photo-modal__nav--prev {
    left: 1rem;
}

.photo-modal__nav--next {
    right: 1rem;
}

.photo-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.photo-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Estilos para distrito de tarjetas de perfil */
.profile-card__district {
    font-size: 0.8rem; /* Reducir de 0.9rem a 0.8rem */
    color: rgba(255, 255, 255, 0.9); /* Cambiar a blanco semi-transparente */
    margin-bottom: 0.25rem; /* Reducir margen de 0.5rem a 0.25rem */
    word-break: break-word;
    flex-shrink: 0;
    text-align: center !important;
    display: block;
    width: 100%;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Sombra para mejor legibilidad */
}

/* Asegurar centrado del distrito dentro del overlay */
.profile-card__overlay .profile-card__district {
    text-align: center !important;
    color: white !important;
    font-weight: 500;
    margin-bottom: 0.25rem; /* Reducir margen de 0.5rem a 0.25rem */
    font-size: 0.8rem; /* Reducir tama+¦o de fuente */
    line-height: 1.2;
}

/* Estilos para tarjetas sin foto */
.profile-card__no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--trans-blue), var(--trans-pink));
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    z-index: 1;
}

.profile-card__name-only {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 90%;
}

/* ========================================
   ESTILOS PARA FORMULARIO DE LOGIN
   ======================================== */

/* Contenedor principal del formulario de login */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header del formulario */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-description {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Formulario */
.form {
    margin-bottom: 1.5rem;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #A9DEF9;
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 206, 250, 0.1);
}

/* Acciones del formulario */
.form-actions {
    margin-top: 2rem;
}

.btn--full {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer del formulario */
.form-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
}

.form-footer p {
    color: #7f8c8d;
    margin: 0;
}

.form-footer .link {
    color: #A9DEF9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer .link:hover {
    color: #F5A9B8;
    text-decoration: underline;
}

/* Responsive para m+¦viles */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   ESTILOS PARA CABECERA DE ANCHO COMPLETO
   ======================================== */

/* Cabecera de ancho completo */
.header--full-width {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2000; /* asegurar prioridad sobre capas internas */
}

.header--full-width .header__container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header--full-width .header__logo {
    color: white;
}

.header--full-width .header__logo-icon {
    color: white;
}

.header--full-width .header__logo-icon svg {
    stroke: white;
}

.header--full-width .header__title {
    color: white;
    font-weight: 700;
}

.header--full-width .header__nav .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.header--full-width .header__nav .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Ajustar contenido principal cuando hay cabecera de ancho completo */
.main--with-full-header {
    margin-top: 0;
    padding-top: 0;
}

/* Estilos espec+¡ficos para p+ígina de login */
.login-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.login-page .header--full-width {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.login-page .main--with-full-header {
    background: transparent;
    padding: 2rem 0;
}

/* Estilos para botones en la cabecera */
.header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__nav .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.header__nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive para cabecera de ancho completo */
@media (max-width: 768px) {
    .header--full-width .header__container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header--full-width .header__nav {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header--full-width .header__nav .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .header--full-width .header__logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .header--full-width .header__title {
        font-size: 1.3rem;
    }
}

/* ========================================
   ESTILOS PARA ALERTAS
   ======================================== */

.alert {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Contenedor de input de contrase+¦a */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #A9DEF9;
}

/* ========================================
   EFECTOS VISUALES PARA ELIMINACIÓN DE MEDIOS
   ======================================== */

/* Efecto visual para medios marcados para eliminación */
.gallery-item.marked-for-deletion {
    position: relative;
    opacity: 0.4;
    filter: grayscale(100%);
    transform: scale(0.95);
    transition: all 0.3s ease;
    border: 3px solid #ff4444;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

/* Overlay de "marcado para eliminación" */
.gallery-item.marked-for-deletion::before {
    content: "MARCADO PARA ELIMINAR";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 68, 68, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    animation: pulse 1.5s infinite;
}

/* Animación de pulso para el overlay */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Efecto hover para medios marcados */
.gallery-item.marked-for-deletion:hover {
    opacity: 0.6;
    transform: scale(0.98);
}

/* Estilo para el botón de deshacer */
.gallery-item.marked-for-deletion .gallery-delete-btn {
    background: #ff4444 !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5) !important;
}

.gallery-item.marked-for-deletion .gallery-delete-btn:hover {
    background: #ff6666 !important;
    transform: scale(1.1);
}

/* Fin de archivo */
