@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);
}

body {
  background-image: url(../assets/fondo.jpg);
  background-size: contain;
}

h1,
h2,
h3 {
	font-family: var(--h1-font), system-ui, Arial, sans-serif;
	margin     : 0;
}

h1,
h2 {
	font-weight: bold;
}

h1 {
	font-size    : var(--h1-font-size);
	position     : relative;
	width        : max-content;
	margin       : 0 auto;
	margin-bottom: 15px;
	z-index      : 1;
}

h1::after {
	content          : '';
	position         : absolute;
	top              : 55px;
	left             : 0;
	width            : 100%;
	height           : 10px;
  border-radius    : 5px;
	background-image : url('../assets/linea-titulo.svg');
	background-size  : cover;
	background-repeat: repeat no-repeat;
	z-index          : -1;
}

h2 {
	font-size: var(--h2-font-size);
}

h3 {
	font-family: var(--h3-font), system-ui, Arial, sans-serif;
	font-size  : var(--h3-font-size);
}

button,
button[type="button"],
.btn {
	border          : none;
	padding         : 9px 15px;
	border-radius   : 20px;
	text-align      : center;
	cursor          : pointer;
	display         : inline-block;
	color           : white;
	background-color: var(--primary-btn-color);
	min-width       : 115px;
  white-space: nowrap;
  font-weight: bold;
  box-shadow: 3px 3px 7px 0px rgba(0,0,0,0.4); 
  -webkit-box-shadow: 3px 3px 7px 0px rgba(0,0,0,0.4);
  -moz-box-shadow: 3px 3px 7px 0px rgba(0,0,0,0.4);
}

.btn.secondary {
	background-color: var(--secondary-btn-color);
}

.btn:active{
  box-shadow: 3px 3px 7px 0px rgba(0,0,0,0.4) inset;
}

header {
	color     : var(--header-font-color);
	font-size : var(--header-font-size);
	box-shadow: 0 5px 10px rgb(0, 0, 0, 0.1);
  background-color: #fcfcfc;
  min-height: 136px;
  margin-top: 0;
  transition: margin 0.5s ease;
}

/*header.scrolled {
  margin-top: -150px;
}*/


header .logo-wrapper {
  top: 3px;
  left: 19px;
  z-index: 2
}

header .nav-wrapper {
	padding    : 0 15px;
  font-family: var(--menu-font);
  font-size: var(--menu-font-size);
}

header .btn {
	background-color: var(--header-btn-color);
  border-radius: 5px;
}

header .punto {
  margin: 0 10px;
}

header .btn, form .btn {
  box-shadow:unset; 
  -webkit-box-shadow:unset; 
  -moz-box-shadow: unset
}


header .w3-col {
  width: 300px;
}

header nav {
	font-weight: bold;
	gap        : 4px !important;
	padding    : 25px 0;
}

header .info {
	background-color: var(--header-color);
	text-align      : right;
	border-bottom   : 10px solid var(--header-btn-color);
}


header .info .contenido {
	padding: 5px 15px;
}

header .logo {
	max-width: 266px;
	top      : -40px;
}

footer {
	font-size: var(--footer-font-size);
  background-color: #fff;
}

.w3-modal {
  z-index: 100;
}
table {
	border-spacing: 0;
	width         : 100%;
	border        : 1px solid #ccc;
	border-radius : 5px;
}

tr:nth-child(odd):not(thead tr:first-child) {
	background-color: #eee;
}

tr:nth-child(even) {
	background-color: #e4e4e4;
}

th,
td {
	padding        : 5px 2px;
	border-collapse: collapse;
}

th {
	text-align    : left;
	padding-bottom: 10px;
}

ul {
	padding-inline-start: 25px;
}


ul li::marker {
	font-size: 1.7em;
}

ul li:nth-child(1)::marker {
	color: #fddfdf
}

ul li:nth-child(2)::marker {
	color: #c9e1ee
}

ul li:nth-child(3)::marker {
	color: #dcc6e2
}

ul li:nth-child(4)::marker {
	color: var(--primary-btn-color)
}

hr {
	border    : none;
	border-top: #ccc solid 2px;
	margin    : 20px auto;
	width     : min(1000px, 95%);
	margin-top: 100px;
}

section:not(#home section) {
	padding: 0 10px;
}

section:not(#home section:first-of-type) {
	margin: var(--margin-sections);
}

section:first-of-type {
	margin-top: 136px;
}

img {
	max-width: 100%;
}

a {
	text-decoration: none
}

a>svg,
span>svg {
	vertical-align: middle;
	height        : 100%;
	width         : 100%;
}

form {
  text-align: right
}

input, textarea {
  border-radius: 7px;
  border: 1px solid #333
}

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%;
}

input.invalid,
textarea.invalid {
	border          : 2px solid red;
	background-color: #ffe6e6;
}

input:focus {
	/* background-color   : white; */
	outline         : none;
	border-radius   : 7px;
	/* border       : 2px solid black; */
}

input:focus.invalid {
	outline: none;
	border : 2px solid red
}

label {
	display: block;
  text-align: left;
}

label:not(:first-of-type) {
	margin: 25px 0;
}


.contenido {
	max-width: 1200px;
	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;
}

#modal ul {
  font-size: 0.8em;
}
#modal h3 {
  font-size: 15px;
}
#modal .btn{
  margin: .5em auto 2em;
}
#modal .w3-button:hover{
  background-color: transparent;
}

.shadow {
	text-shadow: var(--text-shadow);
}

.icon {
  width: 25px;
}

.icon.punto {
  width: 12px;
  vertical-align: baseline;
}

.card {
  border-radius: 15px;
  background-color: #fff;
  padding: 10px 10px 20px;
  text-align: justify;
}

#pages {
	margin-top: 50px;
}

#pages .active {
	color: #990000;
}


#collapsing-menu {
	background-color: var(--primary-color);
	padding         : 15px;
	padding-top     : 180px;
  font-weight: bold;
  font-size: 16px;
}

#collapsing-menu div {
	padding: 15px;
  cursor: pointer;
}

#collapsing-menu div:first-of-type {
	padding-top: 0;
}

#collapsing-menu div:last-of-type {
	padding-bottom: 0;
}
#collapsing-menu #close {
  width: 40px; 
  right: 25px; 
  top: 63px
}

#about .img-wrapper {
  aspect-ratio: 1;
	width : 100%;
}

#memberships .grid {
  margin-top: 100px;
	margin-bottom: 200px;
	border-radius: 15px;
	padding      : 50px 0;
	min-height   : 330px;
}

#memberships .img-wrapper {
  aspect-ratio: 1;
	width : 80%;
}

#memberships .fondo {
	background-color: #fddfdf;
	width           : 80%;
	height          : 100%;
	right           : 0;
	border-radius   : 15px;
	z-index         : -1;
}

#memberships h2 {
	width: max-content;
  text-shadow: white 0px 2px;
}

#memberships li:not(:first-child) {
  margin-top: 30px
}

#memberships li::marker {
  content: '';
}

#memberships .contenido .grid li .absolute {
  left: -8%;
  padding-top: 24px;
}

#memberships .contenido .grid:nth-child(3) li .absolute, #memberships .contenido .grid:nth-child(5) li .absolute  {
    left: 15px;
}

  #enhance .grid {
    background-color: #FFF8B9;
    border-radius   : 15px;
    padding         : 50px 10px;
  }

  #enhance .img-wrapper {
    aspect-ratio: 1;
    width : 28%;
  }

  #enhance h3 {
    margin-bottom: 30px;
  }

  #mapa .img-wrapper {
    height: 500px;
  }

  #mapa .img-wrapper iframe {
    border-radius: 20px;
  }

  #services .flex {
    gap: 10px;
  }

  #services .grid {
    margin-top: 30px;
  }

  #services .img-wrapper {
    height: 100px;
    width: 100px;
  }

  #services .img-wrapper > img{
    width: 80%;
    height: auto;
    margin-left: 10%;
    margin-top: 7%;
  }

  .img-circle {
    border-radius: 50%;
  }


  .error {
    font-size: 13px;
    color    : red;
  }


.triangulo {
  width: 0;
  height: 0;
  border-left: 100vw solid transparent;
  border-bottom: 100px solid white;
  position: absolute;
  bottom: 0;
  z-index: -1;
}

#swiper .swiper {
  height: 600px;
  z-index: -2;
}

.swiper-pagination {
  left: unset!important;
  right: 15%!important;
  bottom: 5%!important;
  width: max-content!important;
}

.swiper-pagination-bullet {
  background:#C6EBD5;
  opacity: 1;
  height: 15px;
  margin: 0 8px!important;
  width: 15px;
}

.swiper-pagination-bullet-active {
  background:#DEDEA8;
}

#swiper h2{
  color: #FFF;
  text-shadow: var(--text-shadow);
  font-family: var(--menu-font);
}
.observer {
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.6s ease;
}

.observer.animated {
  opacity: 1;
  transform: translateY(0);
}

.wa-flotante, .ph-flotante{
  position: fixed;
  z-index: 98;
  bottom: 21px;
  right: 25px;
}
.ph-flotante {
  right: 95px;
}
.wa-flotante>img, .ph-flotante>img{
    width: 60px!important
}

.nubes{
  background-image: url(../assets/nubes-posh.svg), linear-gradient(to top,#D9EBF3,#FFF);
  background-position: bottom;
  height: 200px;
  background-repeat: no-repeat, repeat-x;
  background-size: 100%;
  margin: -50px auto;
}

@media only screen and (max-width: 993px) {
    header .flex.space-between {
        justify-content: right;
    }
  #collapsing-menu #close {
    top: 69px;
  }
}

@media only screen and (min-width:601px) {
  #enhance .grid>div:nth-child(1) {
    padding-right: 35%;
  }

  #enhance .grid>div:nth-child(3) {
    padding-left: 35%;
  }
}

@media screen and ((min-width: 600px) and (max-width: 950px)) {}

@media only screen and (max-width:768px) {
  header {
    font-size: var(--header-small-font-size);
  }
  body{
    font-size: var(--main-small-font-size);
  }
  h1{
    font-size: var(--h1-small-font-size);
  }
  h2{
    font-size: var(--h2-small-font-size);
  }
  h3{
    font-size: var(--h3-small-font-size);
  }
  footer{
    font-size: var(--footer-small-font-size);
  }
  h1::after {
    top: 50px;
  }
  #swiper h2{
    font-size: 30px;
  }
  .nubes{
    background-image: url(../assets/nubes-posh-movil.svg), linear-gradient(to top,#D9EBF3,#FFF);
    height: 100px;
  }
}

@media only screen and (max-width:600px) {
 
  header .flex.space-between {
    justify-content: right;
  }
  header .logo {
    max-width: 200px;
    top: -7px;
    left: -10px;
  }
  header .w3-col {
    width: 200px;
  }
  header .punto {
    margin: 0 5px
  }
  header .nav-wrapper, header {
    min-height: 90px;
  }
  header .logo-wrapper {
    top: 30px;
    left: 8px;
    z-index: 2
  }
  #collapsing-menu #close {
    top: 63px;
  }
  section:first-of-type {
    margin-top: 128px;
  }
  #swiper .swiper {
    height: 500px;
  }
  .swiper-pagination {
    right: 5%!important;
  }
  #about .grid {
    gap: 30px;
  }
  #about ul{
    line-height: 1.5em;
  }
  #services .grid {
    gap: 30px;
  }
  #memberships .fondo {
    width: 100%;
  }
  #memberships .contenido .grid li .absolute {
    left: 15px
  }
  #memberships h3 {
    padding: 0 10px 0 34px;
  }
  #memberships ul {
    padding-right: 15px;
  }
  #memberships .flex {
    flex-direction: column;
  }
  #memberships .grid {
    margin-bottom: 150px;
  }
  #enhance .img-wrapper {
    width: 100%;
  }
  footer .flex {
    gap: 25px
  }
  .wa-flotante {
    right: 15px;
  }
  .ph-flotante {
    right: 75px;
  }
  .wa-flotante>img{
    width: 50px!important;
  }
  .ph-flotante>img{
    width: 45px!important;
  }
}


  @keyframes spin {
    to {
      transform: rotate(360deg)
    }
  }
