@import url('./components/button.css');
@import url('./components/input.css');
@import url('./components/keyframes.css');
@import url('./components/loading.css');
@import url('./components/toogle.css');

:root {
  /* // COLORS */
  --primary-color: #2E5BFF;
  /* // rgb(46, 91, 255) */
  /* // Botones principales (CTA: "Regístrate Gratis", "Prueba Ahora").
  // Encabezados y títulos importantes.
  // Elementos destacados (ej: barras de progreso, íconos clave). */
  --secondary-color: #00C1D4;
  /* // rgb(0, 193, 212) */
  /* // Fondos de secciones secundarias.
  // Hover effects en botones y enlaces.
  // Elementos gráficos (líneas, bordes, íconos). */
  --tertiary-color: #4F4F4F;
  /* // rgb(79, 79, 79) */
  /* // Textos principales (párrafos, descripciones).
  // Barras de navegación y footers.
  // Bordes y divisiones entre secciones. */
  --light-color: #F2F2F2;
  /* // rgb(242, 242, 242) */
  /* // Fondos de secciones principales.
  // Tarjetas de precios o características.
  // Espacios en blanco para mejorar la legibilidad. */
  --green-color: #00D68F;
  /* // rgb(0, 214, 143) */
  /* // Indicadores de éxito (ej: "Tarea completada", "Progreso positivo").
  // Botones secundarios (ej: "Guardar", "Aceptar").
  // Notificaciones o alertas positivas. */
  --red-color: #FF3D71;
  /* // rgb(255, 61, 113) */
  /* // Alertas o errores (ej: "Campo obligatorio", "Tiempo agotado").
  // Botones de acción crítica (ej: "Eliminar", "Cancelar"). */
  --yellow-color: #FFC94D;
  /* // rgb(255, 201, 77) */
  /* // Destacar elementos importantes (ej: "Nueva función", "Oferta especial").
  // Iconos o ilustraciones que requieran atención. */
  --purple-color: #7C4DFF;
  /* // rgb(124, 77, 255) */
  /* // Elementos gráficos (líneas, formas, fondos de secciones).
  // Botones o enlaces secundarios. */

  /* // FONTS */
  --font-primary: sans-serif;
  --font-secondary: serif;
}

@view-transition {
  navigation: auto;
}

*, *::before, *::after {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--tertiary-color);
  font-family: var(--font-primary);
  font-size: 16px;
  margin: 0;
  padding: 0;
}

#container {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100dvh;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media screen and (min-width: 768px) {
  main {
    padding: 2rem;
  }
}

.modal {
	align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
	display: grid; 
  height: 100%;
	justify-items: center;
  left: 0;
	opacity: 0;
  overflow: auto;
  position: fixed;
  top: 0;
	transition: .3s;
	visibility: hidden;
  width: 100%; 
  z-index: 1; 
}

.modal-action {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 1rem;

  & > .btn {
    background-color: var(--green-color);
    border-color: var(--green-color);

  }

  & > .btn-s {
    color: var(--red-color);
    border-color: var(--red-color);
  
    &:visited {
      color: var(--red-color);
    }
  }
  
  & > .btn-t {
    color: var(--tertiary-color);
  
    &:visited {
      color: var(--tertiary-color);
    }
  }
}

.modal-close {
  color: var(--tertiary-color);
	cursor: pointer;
  float: right;
  font-size: 1.6rem;
  font-weight: bold;
}

.modal-content {
  background-color: #fff;
	border-radius: .6rem;
	box-shadow: 0 0 1rem rgba(0, 0, 0, .15);
	max-height: 90%;
  max-width: 50rem;
	overflow: auto;
  padding: 1rem;
  width: 80%;

	&::-webkit-scrollbar {
		height: .4rem;
		width: .4rem;
	}
	
	&::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, .3);
	}

	&::-webkit-scrollbar-thumb:active {
		background: rgba(255, 255, 255, .5);
	}
	
	&::-webkit-scrollbar-track {
		background: var(--light-color);
	}
}

.modal-title {
	font-size: 1.3rem;
}

.options {
  position: absolute;
  top: .3rem;
  right: .3rem;
}

.options-btn {
  background: none;
  border: none;
	color: var(--red-color);
  cursor: pointer;
  font-size: 18px;
}

.options-menu {
	background-color: rgba(0, 0, 0, .5);
  backdrop-filter: blur(.3rem);
  border-radius: .3rem;
	border-top-right-radius: 0;
  display: none;
	overflow: hidden;
  position: absolute;
  right: .3rem;
  top: 1.6rem;
}

.options-menu button,
.options-menu a {
  background: none;
  border: none;
	color: var(--light-color);
  cursor: pointer;
  display: block;
  font-size: .8rem;
  padding: .3rem .6rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.options-menu button:hover,
.options-menu a:hover {
  background-color: rgba(0, 0, 0, .2);
}
