@charset "utf-8";

/* ---reglas generales--- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Milonga&display=swap');

* {
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
    padding: 0 ;
    font-family: 'Montserrat', sans-serif;

}

img {
    max-width: 100% ;
}

/* Fondo global con imagen Vilo Florida y filtros */
:root {
    --bg-blur: 3px;           /* intensidad de desenfoque */
    --bg-brightness: 0.85;    /* brillo del fondo (1 = normal) */
    --bg-opacity: 0.6;        /* opacidad del fondo */
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../imagenes/vilo florida.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(var(--bg-blur)) brightness(var(--bg-brightness));
    opacity: var(--bg-opacity);
    transform: scale(1.05); /* evita recortes por el blur */
    z-index: -1;
    pointer-events: none;
}

body {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 80px 20px 0 20px;
    background-color: transparent; /* Fondo global: imagen en html */
}

header {
    background: #2F2F2F; /* Encabezado/Menu */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    position: fixed; /* fijo arriba */
    top: 0;
    left: 0;
    right: 0;        /* ocupa todo el ancho de la página */
    z-index: 1001;   /* por encima del contenido */
}

header img {
    height: 50px;
}

/* Tamaño visible del logo en la barra de menú */
.logo-barriales {
    height: 60px;
}

a {
    color:white;
}

main{
    width: 100%;
    margin: 0 auto;
    padding: 30px 100px 30px;
}
        
.mapa { width: 200px;}

/* Tipografía para títulos */
h1, h2, h3 {
    font-family: 'Milonga', cursive;
}

/* Color y borde fino para h1 y h2 */
h1, h2 {
    color: #e4c568;
    padding: 4px 8px;
    display: inline-block;
}

/* Márgenes solicitados para todos los títulos en webapp */
h1 {
  margin-top: 50px;
  margin-bottom: 50px;
}

h2 {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Mantener color original para h3 */
h3 {
    color: rgb(7, 49, 61);
}

/* Espaciado vertical dentro de la sección de formulario */
.formulario > * {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Espaciado para todos los hijos directos del <form> */
.formulario form > * {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Espaciado también para los elementos dentro de .form-enter */
.formulario form .form-enter > * {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Botón pastilla para el enlace a subir historia/foto */
.formulario a[href="subir.html"] {
  display: inline-block;
  background-color: #e4c568; /* dorado sitio */
  color: #000;               /* texto negro */
  padding: 10px 18px;
  border-radius: 9999px;     /* pastilla */
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e4c568;
  margin-top: 30px;          /* margen superior solicitado */
  margin-bottom: 30px;       /* margen inferior solicitado */
}

.formulario a[href="subir.html"]:hover,
.formulario a[href="subir.html"]:focus {
  filter: brightness(0.95);
}

footer {
    display: block;
    background-color: #2F2F2F; /* Footer oscuro como el header */
    color: #ECEBE8;            /* Texto claro para contraste */
    text-align: center;
    padding: 30px 50px;
    width: 100vw;              /* full-bleed */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Enlaces en el footer: acento en hover/focus */
footer a {
    color: #ECEBE8;
    text-decoration: none;
    transition: color 200ms ease, text-decoration-color 200ms ease;
}

footer a:hover,
footer a:focus {
    color: #8A6F4D;
    text-decoration: underline;
    outline: none;
}

footer a:active {
    color: #8A6F4D;
}

/* Imagen del footer: centrada, tamaño fijo y márgenes solicitados */
footer > img {
    display: block;
    width: 400px;
    height: 56px;
    margin: 50px auto 100px auto;
    object-fit: contain;
}

ul {
    list-style: none ;
}

video {
    border-radius: 2em ;
}

/* ---reglas particulares--- */


.Usuario {
    width: 5em ;
}

/*--- Menu ---*/

@media (min-width: 30em) {

    .Usuario img {
        height: 3.5em;
    }

    #btn-menu:checked ~ .menu{
        margin: 0 ;  
    }
    
    header label:hover{
        cursor: pointer; 
        background: #324918;
    }
    
    #btn-menu{
        display: none;
    }

    .usumenu {
        display: grid ;
        grid-template-columns: 50% 50%;
        align-items: center ;
    }

    #btn-menu:checked ~ .menu{
        translate: 0 ;
        margin-top: 0 ;  
    }

    /* Navegación unificada */
    nav ul {
        list-style: none;
        display: flex;
        gap: 1.5rem;
    }

    header nav ul li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease, background-color 0.3s ease;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        display: inline-block;
    }

    header nav ul li a:hover,
    header nav ul li a:focus,
    header nav ul li a:active {
        color: #ECEBE8;            /* Texto claro sobre acento */
        background-color: #8A6F4D; /* Acento */
    }

    /* Eliminado nav-item custom; se usa nav ul/li/a estándar */

    .info {
        text-align: left ;
    }

}

/*--- Fin Menu ---*/

/*--- Diálogo de Usuario ---*/

/* Estilos para el diálogo de usuario */
#userDialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    max-width: 400px;
    width: 90vw;
    max-height: 80vh;
    overflow: hidden;
}

#userDialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.dialog-header {
    background: linear-gradient(135deg, rgb(7, 49, 61) 0%, #2c5f7a 100%);
    color: white;
    padding: 20px;
    text-align: center;
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.dialog-content {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgb(7, 49, 61);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: rgb(7, 49, 61);
    box-shadow: 0 0 0 3px rgba(7, 49, 61, 0.1);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.avatar-option {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    transform: scale(1.05);
    border-color: rgba(7, 49, 61, 0.3);
}

.avatar-option.selected {
    border-color: rgb(7, 49, 61);
    box-shadow: 0 0 0 2px rgba(7, 49, 61, 0.2);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(7, 49, 61) 0%, #2c5f7a 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5f7a 0%, rgb(7, 49, 61) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 49, 61, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.user-info {
    text-align: center;
    padding: 20px 0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid rgb(7, 49, 61);
    object-fit: cover;
}

.user-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(7, 49, 61);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    #userDialog {
        width: 95vw;
        max-width: none;
    }
    
    .dialog-header {
        padding: 16px;
        font-size: 1.1rem;
    }
    
    .dialog-content {
        padding: 20px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .dialog-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 14px;
    }
}

/*--- Fin Diálogo de Usuario ---*/


/* Fondo Vilo para bloques específicos en asamblea */
.bg-vilo {
  background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('../imagenes/vilo florida.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Borde interior proporcional en los 4 lados */
  padding: 5%;
  box-sizing: border-box;
  /* Ocupa el ancho del contenedor y un alto suficiente para mostrar la imagen */
  width: 100%;
  min-height: 60vh;
}

/* Interlineado mayor para mejorar legibilidad del texto dentro del fondo */
.bg-vilo p {
  line-height: 1.6;
}

/* Ajuste de interlineado del título dentro del fondo */
.bg-vilo.h2, .bg-vilo h2 {
  line-height: 1.3;
  margin: 0;
}

/* Responsive: en móviles reducimos el alto mínimo y aumentamos el padding para mantener el borde */
@media (max-width: 600px) {
  .bg-vilo {
    min-height: 40vh;
    padding: 7%;
  }
  .bg-vilo p {
    line-height: 1.5;
  }
}

/* Responsive: Menú móvil para pantallas menores a 480px */
@media (max-width: 480px) {
  header {
    padding: 15px 20px;
    position: relative;
  }
  
  /* Botón de menú móvil */
.menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
}

.menu-btn img {
    height: 40px;
    width: auto;
  }

/* Estado activo del botón: resalta con acento */
.menu-btn.is-open {
  outline: 2px solid #8A6F4D; /* Acento */
}
  
  /* Navegación móvil con transición */
  header nav {
    display: block;              /* permite transiciones */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2F2F2F; /* Encabezado/Menu en móvil */
    z-index: 1000;
    max-height: 0;               /* colapsado por defecto */
    opacity: 0;                  /* invisible por defecto */
    overflow: hidden;            /* oculta contenido colapsado */
    pointer-events: none;        /* no clickeable cuando está oculto */
    transition: max-height 0.3s ease, opacity 0.2s ease;
    will-change: max-height, opacity;
  }

  /* Mostrar navegación cuando está visible */
  header nav.menuVisible {
    max-height: 500px;           /* altura suficiente para el menú */
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Menú vertical en móvil */
  header nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }
  
  header nav ul li {
    border-bottom: 1px solid #333;
  }
  
  header nav ul li:last-child {
    border-bottom: none;
  }
  
  header nav ul li a {
    display: block;
    padding: 15px 0;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  /* Hover en móvil usando acento */
  header nav ul li a:hover,
  header nav ul li a:focus,
  header nav ul li a:active {
    color: #ECEBE8;
    background-color: #8A6F4D;
  }
}

/* Para pantallas mayores a 480px, ocultar el botón de menú */
@media (min-width: 481px) {
  .menu-btn {
    display: none;
  }
}

/* Responsive para tablets (768px - 1024px) */
@media (max-width: 1024px) {
  body {
    padding: 80px 15px 0 15px;
  }
  
  header {
    padding: 0 30px;
  }
  
  footer {
    padding: 30px 30px;
  }
  
  main {
    padding: 30px 50px 30px;
  }
}

/* Responsive para móviles grandes (481px - 767px) */
@media (max-width: 767px) {
  body {
    padding: 60px 10px 0 10px;
  }
  
  header {
    padding: 0 20px;
    flex-wrap: wrap;
  }
  
  footer {
    padding: 20px 20px;
  }
  
  main {
    padding: 20px 30px 20px;
  }
  
  .logo-barriales {
    height: 50px;
  }
  
  footer > img {
    width: 300px;
    height: 42px;
    margin: 30px auto 60px auto;
  }
}

/* Responsive para móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  body {
    padding: 50px 5px 0 5px;
  }
  
  header {
    padding: 0 15px;
  }
  
  footer {
    padding: 15px 15px;
  }
  
  main {
    padding: 15px 20px 15px;
  }
  
  .logo-barriales {
    height: 40px;
  }
  
  footer > img {
    width: 250px;
    height: 35px;
    margin: 20px auto 40px auto;
  }
}

