@import url(root.css);
@import url(fonts.css);
@import url(common.css);

* {
	box-sizing     : border-box;
	scroll-behavior: smooth;
	scroll-margin  : 150px;
	margin         : 0;
	padding        : 0;
}

html,
body {
	min-height : 100%;
	font-family: var(--main-font), system-ui, Arial, sans-serif;
	font-weight: 400;
	font-size  : var(--main-font-size);
	color      : var(--font-color);
}

h1,
h2,
h3 {
	font-family: var(--h1-font), system-ui, Arial, sans-serif;
	font-weight: 600;
	margin     : 0;
  margin-bottom: 40px;
}

h1 {
	font-size: var(--h1-font-size);
  position: relative;
}

h2 {
	font-size: var(--h2-font-size);
}

h3 {
	font-size: var(--h3-font-size);
  color: #1E508A;
}

ul {
  list-style-type: none;
  margin-block-start: 0;
  padding-inline-start: 0;
}

ul li:not(:last-child) {
	margin-bottom: 35px;
}


header {
	color           : var(--header-font-color);
	font-size       : var(--header-font-size);
  font-weight: 600;
  /* overflow: hidden; */
  background : var(--header-bg-color);
  box-shadow: var(--box-shadow)
}

header .contenido {
  margin: -33px auto;
}

header .logo {
  transition: all 0.3s ease;
  max-width: 174px;
}

header .btn {
  font-size: 20px;
}

header nav {
  justify-content: normal;
  font-size: 20px;
  gap: 100px!important
}

header nav a {
  padding: 15px 0;
}

header .gradiente, footer .gradiente {
background: linear-gradient(
  to right,
  var(--primary-color) 0%,
  var(--secondary-color) 20%,
  var(--secondary-color) 50%,
  var(--secondary-color) 80%,
  var(--primary-color) 100%
);
    height: 12px;
}

footer {
	font-size: var(--footer-font-size);
  background-color: var(--primary-color);
}

footer .redes img {
  filter: invert(1);
  width: 30px;
}

footer .contenido {
  padding: 30px 15px;
}

footer .copy .contenido {
  padding: 5px 15px;
}

table {
	border-spacing: 0;
	width         : 100%;
}

th,
td{
	padding        : 5px 0;
	border-collapse: collapse;
}

hr {
	border    : none;
	border-top: #ccc solid 1px;
	margin    : 20px auto;
	width     : min(1000px, 95%);
	margin-top: 100px;
}

/* section:not(#home section) { */
/* 	padding: 0 10px; */
/* } */

section {
	margin: var(--margin-sections);
}

section:first-of-type {
	margin-top: 160px;
}


strong {
	font-weight: bold;
  color: var(--secondary-color);
}

img {
	max-width: 100%;
}

button,
button[type="button"],
.btn {
	border       : none;
	padding      : 10px 8px;
	border-radius: 5px;
	text-align   : center;
	cursor       : pointer;
	display      : inline-block;
	color        : var(--tertiary-color);
	width           : min(250px, 100%);
  background: linear-gradient(
        to bottom,
        var(--secondary-color) 50%,
        /* #ffe066 50%, */
        #A99B62 80%
    );
  border: 1px solid #d4b100;
  margin-top: 50px;
  font-weight: bold;
  font-size: 25px;
  box-shadow: -1px -1px 12px 5px #F5DD9F
}

header .btn {
  box-shadow: unset;
}

header .btn, #inicio #banner .btn {
  margin-top: 0;
}

header .btn {
  width: min(210px, 100%);
}

.error {
  font-size: 12px;
  color: red;
  font-weight: bold;
}

.logo {
  width: 220px;
  max-width: 100%;
}

div[aria-labelledby="swal2-title"] {
  border-radius: 0;
}

.swal2-modal button, .swal2-modal button[type="button"] {
  margin-top: 0;
}

a {
	text-decoration: none
}

a>svg,
span>svg {
	vertical-align: middle;
	height        : 100%;
	width         : 100%;
}

input:-webkit-autofill {
	background-color  : white !important;
	-webkit-box-shadow: 0 0 0 1000px white inset !important;
	box-shadow        : 0 0 0 1000px white inset !important;
	color             : black !important;
}

input,
textarea {
	display: block;
	padding: 7px 10px;
	width  : 100%;
  border-radius: 6px;
  border: 1px solid #333
}

input.invalid,
select.invalid,
textarea.invalid {
	border          : 2px solid red;
	background-color: #ffe6e6;
  color: red
}

input:focus {
	/* background-color   : white; */
	outline         : none;
	border-radius   : 0;
	/* border       : 2px solid black; */
}

input:focus.invalid {
	outline: none;
	border : 2px solid red
}

label {
	display: block;
}

label:not(:first-of-type) {
	margin: 25px 0;
}


.contenido {
	max-width: var(--contenido);
	margin   : auto;
	padding  : 15px;
	/* position : relative; */
}

.loader {
	border-radius   : 50%;
	border          : 3px solid black;
	border-top-color: transparent;
	animation       : spin 1.2s linear infinite;
	height          : 50px;
	width           : 50px;
	position        : absolute;
	top             : 0;
	bottom          : 0;
	right           : 0;
	left            : 0;
	margin          : auto;
}


#pages {
	margin-top: 50px;
}

#pages .active {
	color: #990000;
}

#collapsing-menu {
	background-color: var(--primary-color);
	/* padding         : 15px; */
	/* padding-top     : 130px; */
  max-width: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

#collapsing-menu.open {
  max-width: 100%;
  opacity: 1;
}

#collapsing-menu div {
	padding: 10px;
}

#collapsing-menu div:first-of-type {
	padding-top: 0;
}

#collapsing-menu div:last-of-type {
	padding-bottom: 0;
}

.sombra {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
}

details > summary:first-of-type {
  list-style: none;
}

details > summary {
  display: flex;
  gap: 10px;
  cursor: pointer;
  background: linear-gradient(
        to bottom,
        #1E508A 20%,
        #123256 65%,
        #071423 100%
    );
}

/* details > summary::before { */
/*   content: ''; */
/*   height: max-content; */
/*   transition: all 0.3s ease-in-out; */
/* } */

details[open] > summary::before {
  transform: rotate(45deg);
}

summary {
  color: white;
  background-color: #153B6A;
  padding: 15px;
  border-radius: 5px;
}

details {
  outline: 1px solid #ccc;
  border-radius: 5px;
  user-select: none;
  background-color: white;
  overflow: hidden;
  margin-bottom: 10px;
  max-height: 150px;
  transition: max-height 0.3s ease-in-out;
  /* outline-offset: -3px; */
}

details[open] {
  max-height: 550px;
}

details p {
  padding: 30px 15px;
  min-height: 150px;
}

details h3 {
  margin: 0;
}

.w3-dropdown-content {
  background-color: var(--tertiary-color);
  text-transform: uppercase;
  font-size: 13px;
  top: 55px;
  left: -16px;
  min-width: 124px;
}

.wa-flotante {
  position: fixed;
  z-index: 99;
  bottom: 30px;
  right: 25px;
  text-align: center;
  font-weight: bold;
}

.wa-flotante img {
  filter: drop-shadow(-2px 2px 8px rgba(0,0,0,0.3));
  width: 70px;
}

.fondo-titulo {
  background-color: var(--primary-color);
  color: var(--secondary-color)
}

.fondo-titulo .gradiente {
background: linear-gradient(
  to right,
  white 0%,
  #A99B62 10%,
  var(--secondary-color) 20%,
  var(--secondary-color) 50%,
  var(--secondary-color) 80%,
  #A99B62 90%,
  white 100%
);
    height: 6px;
}

.dinamicas {
  gap: 50px 35px;
}

.dinamica, .proximamente, .premio {
  padding: 5px;
  background-color: var(--secondary-color);
  /* z-index: -2; */
  border-radius: 15px;
  box-shadow: -1px -1px 11px -1px #000000;
}

.dinamica .img-wrapper, .proximamente .img-wrapper, .premio .img-wrapper {
  height: 350px;
}

.dinamica .img-wrapper img, .proximamente .img-wrapper img, .premio .img-wrapper img {
  border-radius: 12.5px;
  z-index: 1;
}

.dinamica .flex, .proximamente .flex {
  z-index: 2;
}

.dinamica.gradiente, #inicio #banner .gradiente, .proximamente.gradiente, .premio.gradiente {
  background: radial-gradient(circle,var(--secondary-color) 63%, #A99B62 100%);
}

.dinamica .direction-column {
  justify-content: end;
  padding: 10px 0;
}

.dinamica .btn {
  margin-top: 0;
}

.proximamente p {
  font-size: 40px;
}

#inicio #banner .gradiente, #inicio #banner .gradiente .img-wrapper img {
  border-radius: 10px;
}

#inicio #banner h1, #dinamica #banner h1 {
  font-size: 50px;
}

#inicio #banner p, .dinamica span, #dinamica #banner p {
  font-size: 25px;
}

#inicio #banner .contenido {
  padding: 50px 15px;
}

#inicio #banner h1, #inicio #banner p, .proximamente p, .dinamica span, .text-shadow {
  font-weight: bold;  
  text-shadow: 1px 1px 1px black;
}

#inicio #preguntas-frecuentes {
  background-color: #dce6ef;
}

#dinamica form label, #dinamica form input {
  display: inline;
}

#dinamica form label {
  text-align: left;
}

#dinamica form input {
  width: 300px;
}

#modal-boletos.w3-modal, #modal-suerte.w3-modal {
  z-index: 999;
  background-color: unset;
}

#modal-boletos .w3-modal-content, #modal-suerte .w3-modal-content {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

#modal-boletos .items.grid, #modal-suerte .items.grid {
  gap: 10px;
  grid-template-columns: repeat(10,1fr);
  margin: 30px 0 10px;
}

.numero {
  border: 1px solid #ccc;
  display: inline-block;
  width: 100%;
  border-radius: 6px;
  user-select: none;
}

#carrito .numero {
  background-color: white;
  cursor: pointer;
  color: #333;
  padding: 1px 2px;
}

#modal-boletos .numero.apartado, #modal-suerte .numero.apartado {
  background-color: #333;
  color: white;
  cursor: not-allowed;
  pointer-events: none;
}

#modal-boletos .numero:hover:not(.numero.apartado), #modal-suerte .numero:hover:not(.numero.apartado) {
  background-color: #ccc;
  cursor: pointer;
}

#modal-boletos form, #modal-suerte form {
  margin: 30px 0;
}

#modal-boletos .numero.selected, #modal-boletos .numero.selected:hover, #modal-suerte .numero.selected, #modal-suerte .numero.selected:hover {
  background-color: red!important;
  color:white!important
}

#modal-boletos .paginas {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 10px
}

#modal-boletos .paginas span {
  user-select: none;
  cursor: pointer;
  color: #1E508A;
  font-weight: 500;
}

#modal-boletos .paginas span.activa {
  color: #ccc;
  cursor: auto
}

#modal-boletos .disabled, #modal-suerte .disabled {
  color: #ccc!important;
  cursor: auto!important
}

.liston {
  position: relative;
  background: linear-gradient(
    to right,
    var(--primary-color) 0%,
    #1F518F 20%,
    #1F518F 50%,
    #1F518F 80%,
    var(--primary-color) 100%
  );
  font-size: 32px;
  font-weight: 700;
  padding: 5px;
  border-radius: 5px;
  border: 6px solid #1E659A;
  text-shadow: 0 2px 2px rgba(0,0,0,.35);
  text-align: center;
  width: 87%;
  margin-bottom: 8px;
  margin-top: -10px;
}

.liston::after, .liston::before {
  content: '';
  background-image: url('../assets/liston.svg');
  background-size: cover;
  height: 100%;
  position: absolute;
  z-index: -1;
  aspect-ratio: 1/1;
  bottom: -50%;
}

.liston::after {
  right: -40px;
}

.liston::before {
  transform: scaleX(-1);
  left: -40px;
}

#dinamica .botones {
  gap: 10px
}

#carrito .contenido {
  max-width: 100%;
  width: 350px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #022358;
  z-index: 99;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  max-height: 43px;
  transition: max-height 0.5s ease-in-out;
}

#carrito .contenido.open {
  max-height: 500px;
}

#carrito h3 {
  color: var(--secondary-color);
  font-size: 19px;
  cursor: pointer;
  margin: 0;
}

@media only screen and (min-width:601px) {
  header.scrolled .logo {
		width : 140px;
	}
  header nav .links {
    width: 100%;
  }
  #dinamica form .grid.g-2 {
    grid-template-columns: 150px 1fr;
  }
  #dinamica #boletos .maquina {
    width: max-content;
  }
  #carrito .btn, #modal-suerte .btn {
    font-size: 16px;
  }
}

@media screen and ((min-width: 600px) and (max-width: 950px)) {
  header nav {
    gap: 30px!important
  }
}

@media only screen and (max-width:600px) {
	h1 {
		font-size: var(--h1-small-font-size);
	}

	h2 {
		font-size: var(--h2-small-font-size);
	}

	h3 {
		font-size: var(--h3-small-font-size);
	}

  button[type="button"], .btn {
    padding: 10px 5px;
    width: min(200px, 100%);
  }

  header nav.flex {
    justify-content: space-between;
  }

  header #collapsing-menu a {
    font-size: 20px;
  }

  .logo {
    width: 105px;
  }

  .btn, .btn-dark, button {
    font-size: 15px;
  }

  section:first-of-type {
      margin-top: 95px;
  }
  footer .flex {
    flex-direction: column;
  }

  .wa-flotante {
    bottom: 20px;
    right: 10px
  }

  .wa-flotante img {
    width: 60px;
  }

  #modal-boletos .items.grid {
    grid-template-columns: repeat(5,1fr)!important;
  }
  #dinamica #banner h1 {
    font-size: 30px;
  }
  #dinamica #premios .grid {
    gap: 30px
  }
  #dinamica .botones.grid.g-2 {
    grid-template-columns: repeat(2, 1fr)!important;
  }
}


@keyframes spin {
	to {
		transform: rotate(360deg)
	}
}
