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

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background-color: #000000;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.5rem;
  font-weight: bold;
}


/* MENU */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 1rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  margin: 20px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


/* Responsive NAV HAMBURGUESA*/
.menu-icon {
  display: none;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* Main content */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0rem; /* Márgenes laterales */
}

section {
  margin-bottom: 3rem;
}

section p {
  color: #444;
}

/* Enlaces generales */
a {
  color: inherit;
  text-decoration: none;
}

footer {
    background-color: #000000;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 4rem;
    width: 100%;
  color: white;
  padding: 1rem 2rem;
  position: relative; 
  left: 0;
  }

  main {
    flex: 1;
  }

  body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}


/* FULL IMAGEN INICIO*/
.imagen-fullscreen {
  width: 100%;
  height: 100vh;
  overflow: visible;
  margin-bottom: 0%;
}

.imagen-fullscreen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0%;
}

/* Tipografía */
body {
  line-height: 1.6;
  font-size: 16px;
}


h1 {
  font-size: 1.8rem;
  align-items: center;
  text-align: left;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

/* IMÁGENES */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 10px;
  max-width: 800px;
  margin: auto;
}

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

.img1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.img2 {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
}

.img3 {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

.img4 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.img5 {
  grid-column: 2 / 5;
  grid-row: 3 / 4;
}


/* BOTONES */

.button-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid;
  font-size: 1rem;
  cursor: pointer;
  min-width: 80px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: 0.2s;

}

/* Icon-only buttons */
.icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.2rem;
}

/* Variantes */
.purple {
  background-color: #a78bfa;
  color: white;
  border-color: #000000;
}

.purple.hover {
  background-color: #9575f4;
  color: white;
  border-color: #000000;
}

.btn.purple:hover {
  background-color: #573baa;
}

.btn.yellow:hover {
  background-color: #be9415;
}

.purple.focus {
  background-color: #805bf0;
  color: white;
  border-color: #000000;
}

.purple.light {
  background-color: #e9d5ff;
  color: #000000;
  border-color: #000000;
}

.yellow {
  background-color: #facc15;
  color: black;
  border-color: #000000;
}

.yellow.light {
  background-color: #fffbca;
  color: #000000;
  border-color: #000000;
}

.bold {
  font-weight: bold;
}


/* BARRA DE BÚSQUEDA */
.busqueda-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px dashed #b388eb;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.btn.mover { /* BOTON AL CLICAR */
  background-color: #000000;
  color: white;
  border-color: #000000;
}

/* Botón solo */
.btn-icon {
  background:  #baa3ff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Mini barra solo con ícono */
.busqueda-mini {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* Barra completa */
.busqueda-completa {
  display: flex;
  align-items: center;
  background-color: #b79fff;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 2rem;
}

.busqueda-completa .icono {
  margin-right: 0.5rem;
  font-size: 0.5rem;
}

.busqueda-completa input {
  border: none;
  align-content: center;
  background: transparent;
  font-size: 1rem;
  color: #5d00ff;
  outline: none;
}


/* ICONOS */
.icon-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.icon {
  text-align: center;
  font-size: 24px;
}

.icon i {
  display: block;
  margin-bottom: 6px;
}

.icon span {
  font-size: 12px;
}


/* CARDS */
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #ffffff;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Vertical card */
.card.vertical img {
  width: 100%;
  height: auto;
}

/* Horizontal card */
.card.horizontal {
  flex-direction: row;
}

.card.horizontal img {
  width: 40%;
  object-fit: cover;
  height: auto;
}

.card.horizontal .card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image-only card */
.card.image-only img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Content styles */
.card-content {
  padding: 1rem;
}

.date {
  font-size: 0.9rem;
  color: #888;
}

.card-content h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.card-content .desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}



/* COLOR */
.grupo-colores {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.grupo-colores h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.paleta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1rem;
}

.color-box {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}


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

label {
  display: block;
  margin-bottom: 5px;
  margin-top: 0.5rem;
  color: #7b7b7b;
  font-size: 0.9em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: calc(100% - 22px);
  padding: 10px;
  border: 1px solid #b79fff;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
}

select {
  appearance: none; 
  background-image: url('data:image/svg+xml;utf8,<svg fill="currentColor" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}

/* FORMULARIO */
/* Estilos para el contenedor principal del formulario */
.formulario-perfil-contenedor {
  justify-content: center; 
  align-items: center;     
  margin: 5px;
  width: 100%;
}

/* Estilos para la tarjeta del formulario */
.formulario-perfil-card {
  width: 90%; 
  max-width: 800px; 
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
resize: vertical;
min-height: 100px;
}

.form-row {
display: flex;
gap: 20px;
}

.form-row .form-group {
flex: 1;
}

.image-upload {
display: flex;
align-items: center;
gap: 10px;
}

.image-upload .placeholder {
border: 1px dashed ;
border-color: #000;
border-radius: 4px;
padding: 10px;
color: #ffffff;
background-color: #cab6ff;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
font-size: 0.9em;
}

.image-upload .placeholder svg {
width: 20px;
height: 20px;
}

.browse-button {
background-color: #a78bfa;
color: #ffffff;
border:  solid #000000;
padding: 10px 15px;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
}

.browse-button:hover {
background-color: #833bf6;
}

.label-group {
display: flex;
flex-wrap: wrap;
gap: 5px;
}

.label {
background-color: #e3ccff;
color: #833bf6;
padding: 5px 10px;
border-radius: 20px;
font-size: 0.8em;
display: inline-flex;
align-items: center;
gap: 5px;
}

.remove-button {
background-color: #c6a5fc;
color: #fff;
border-radius: 50%;
width: 15px;
height: 15px;
display: flex;
justify-content: center;
align-items: center;
font-size: 0.7em;
cursor: pointer;
}

.submit-button {
background-color: #a78bfa;
color: white;
padding: 12px 20px;
border-color: #000;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
width: 100%;
box-sizing: border-box;
}

.submit-button:hover {
background-color: #8646e5;
}

/* TABLA */
.tabla-usuarios {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.tabla-usuarios thead th {
  background-color: #a78bfa; /* lila claro */
  color: #000;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.tabla-usuarios tbody td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}






/* REJILLA */
.imagen-rejilla {
  max-width: 100%;          
  width: 100%;               
  height: auto;              
  display: block;            
  margin: 0 auto;            
  box-sizing: border-box;    
  padding: 0 16px;           
}

  /* Estilo base del contenido */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

/* MOVIL REJILLA */
main img {
  width: 493px; 
  height: auto;
}
/* WEB REJILLA */
.imagen-pequena {
  width: 150px;       
  height: auto;      

}

 /* QUERY REJILLA */
@media (max-width: 600px) {
  main {
    padding: 0.5rem;
  }

  main img,
  .imagen-rejilla {
    width: 100%;          
    padding: 0;          
    max-width: 100%;
    height: auto;
  }

  .imagen-pequena {
    width: 100px;         
    text-align: center;
  }

  
}

/* QUERY REJILLA MÓVIL */
@media (max-width: 767px) {
  nav ul {
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 100%;
    left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #menu-toggle:checked + .menu-icon + nav ul {
    max-height: 500px;
  }

  .menu-icon {
    display: block;
    color: white;
  }

  main {
    padding: 1rem 2rem;
}

}
.imagen-fullscreen {
  width: 100%;
  height: auto;
}


/* QUERY TIPOGRAFIA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* Reemplazar con Monument Extended si la tienes */
@font-face {
  font-family: 'Monument Extended';
  src: local('Monument Extended'), local('MonumentExtended');
  font-weight: normal;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: white;
}

.tipografia {
  background: white;
  padding: 2rem;
  max-width: 960px;
  margin: auto;
}

.tipografia-header {
  background-color: #ffffff;
  color: white;
  padding: 1rem;
  margin-bottom: 2rem;
}

.tipografia-header h2 {
  margin: 0;
  font-size: 2rem;
  font-family: 'Monument Extended', sans-serif;
}

.info-base {
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: black;
  display: flex;
  gap: 2rem;
}

.tipo-bloque {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tipo-info {
  width: 150px;
  font-size: 0.9rem;
  color: black;
}

.tipo-info h3 {
  margin: 0;
}

.tipo-ejemplo {
  flex: 1;
  color: black;
}

.tipo-ejemplo.h1 {
  font-size: 67px;
  font-family: 'Monument Extended', sans-serif;
}

.tipo-ejemplo.h2 {
  font-size: 49px;
  font-family: 'Monument Extended', sans-serif;
}

.tipo-ejemplo.h3 { font-size: 39px; line-height: 1.4; }
.tipo-ejemplo.h4 { font-size: 31px; line-height: 1.4; }
.tipo-ejemplo.h5 { font-size: 25px; line-height: 1.4; }
.tipo-ejemplo.h6 { font-size: 20px; line-height: 1.4; }
.tipo-ejemplo.h7 { font-size: 16px; line-height: 1.4; }

.tipo-bloque {
        flex-direction: column;
      }

      .tipo-info,
      .tipo-ejemplo {
        width: 100%;
      }

      .tipo-ejemplo {
        font-size: 1rem;
      }
    

    /* Ejemplos de estilos tipográficos */
    .h1 { font-size: 3.812rem; }
    .h2 { font-size: 3.062rem; }
    .h3 { font-size: 2.438rem; }
    .h4 { font-size: 1.938rem; }
    .h5 { font-size: 1.563rem; }
    .h6 { font-size: 1.250rem; }
    .h7 { font-size: 1rem; }

    /* Ajustes para móviles (opcional) */
    @media (max-width: 480px) {
      .h1 { font-size: 2.5rem; }
      .h2 { font-size: 2rem; }
      .h3 { font-size: 1.8rem; }
      .h4 { font-size: 1.5rem; }
      .h5 { font-size: 1.25rem; }
      .h6 { font-size: 1.125rem; }
      .h7 { font-size: 1rem; }
    }



    /* Media query FORMULARIO*/
@media (max-width: 768px) {
    .formulario-perfil-contenedor {
      flex-direction: column;
      padding: 10px;
      margin: 0;
      align-items: stretch;
      border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
  
    .formulario-perfil-card {
      width: 100%;
      padding: 20px;
      border-radius: 0;
      box-shadow: none;
    }
  
    .form-row {
      flex-direction: column;
    }
  
    .image-upload {
      flex-direction: column;
      align-items: stretch;
    }
  
    .image-upload .placeholder {
      justify-content: center;
      padding: 20px;
    }
  
    .browse-button {
      width: 100%;
      text-align: center;
    }
  
    .submit-button {
      font-size: 1em;
    }

   /* Media query CARDS*/
    @media (max-width: 768px) {
  .cards-grid {
    padding: 1rem;
  }

  .card.horizontal {
    flex-direction: column;
  }

  .card.horizontal img {
    width: 100%;
    height: auto;
  }

  .card.horizontal .card-content {
    padding: 1rem;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content .desc {
    font-size: 0.95rem;
  }
}}

/* QUERY TABLA */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none; /* ocultar cabeceras en móviles */
  }

  tr {
    margin-bottom: 1rem;
    padding: 10px;
    border-radius: 8px;
  }

  td {
    padding-left: 50%;
    position: relative;
    text-align: left;
  }

  td::before {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #d1b2f7;
    content: attr(data-label); /* usa el atributo personalizado */
  }

  /* ocultar tablas de abajo */
  table tbody tr:nth-last-child(-n+6) {
    display: none;
  }

  /* Morado para la primera columna */
tbody td:first-child {
  background-color: #d3b4f8; /* morado claro */
  font-weight: bold;
  border: #000;
  border-radius: 4px;
}

.tabla-usuarios {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 0
}
  .avatar {
    width: 30px;
    height: 30px;
    margin-bottom: 0.5rem;
  }
}



/*QUERY MENU HAMBURGUESA*/
@media (max-width: 768px) {
.main-nav {
  position: absolute;
  top: 60px; /* margen desde el top del header */
  right: 30px;  /* alinear a la derecha */
  width: 198px; /* ancho deseado */
  padding: 5px 0;
  display: none;
  flex-direction: column;
  text-align: left;
  z-index: 1000;
  box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.2);
}


/* Mostrar el menú cuando el checkbox está activado */
#menu-toggle:checked + .menu-icon + .main-nav {
  display: flex;
}

/* Opcional: alinear los <a> del menú a la derecha */
.main-nav ul {
  background-color: #000000;
  list-style:none;
  text-align: right;
}
nav ul {
  background-color: #000000;
    list-style: none;
    display:block;
    gap: 0rem;
    align-items: center;
}


.main-nav li {
  padding: 8px 16px;
  text-align: right;
}}
