@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@100;200;300;400;500;600&display=swap');


body{
  font-family: 'Overpass', sans-serif;
}



#content {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  position: relative;
  left: 0;
  top: 0;
  z-index: 0;
}


#defined-image img{max-width: 150px;}

.no-image-defined{font-size: 110%;
  font-weight: bold;
  color: red;}

#logo-area{
  position: absolute;
  top: 0;
  right: 8%;
  display: block;
  z-index: 999;
  width: 10%;
}

#logo-area img{width: 100%;}


.main-image{width: 100%; height: auto; display: block;}
.material-image{position: absolute; left: 0; top: 0; width: 100%; display: none; height: auto; display: block;}

.zone-selector{position: absolute; z-index: 999; width: 3.6%; display: block;}
.zone-selector img{width: 100%;}

.downloader-selector img, .material-selector img{height: 80%; margin-right: -4%; margin-top: 5%;}
.downloader-selector .figure-right, .material-selector .figure-right
{
  overflow: hidden;
  background: #484848;
  border-radius: 0% 100% 100% 0% / 30% 50% 50% 70%;
  width: 20%;
  height: 100%;
  float: right;
}

.downloader-selector .figure, .material-selector .figure
{
  overflow: hidden;
  background: #484848;
  
  width: 80%;
  height: 100%;
  float: left;
  text-align: right;
  padding: 6% 0;
}


.material-selector, .downloader-selector
{
  display: block;
  position: absolute;
  width: 10%;
  height: 9%;
  overflow: hidden;
  
  z-index: 23;
  /*left: 15%;*/
}

.material-selector{  top: 40%;}

.downloader-selector{ top: 49.5%;}

.ui-tooltip, .arrow:after {
  background: black !important;
  color: #FFF !important;
}


#sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 24;
  background: #fff;
  /*box-shadow: 0 0 30px rgba(0,0,0,0.4);*/
  float: left;
  -webkit-transition: all 1s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
  /*width: 15%;
  padding: 4% 2%;*/
  overflow: auto;
  width: 0;
}

#sidebar-content{display: none;}

.sidebar-showed{
  width: 18% !important;
  padding: 3% 1%;
}

#sidebar h2{font-size: 2vw;
  font-weight: 700;
  position: relative;
  padding: 0 0 1.2vw;
  margin-bottom: 1vw;
}

#sidebar h2::after {
  content : "";
  position: absolute;
  left    : 0;
  bottom  : 0;
  height  : 0.3vw;
  width   : 20%;  /* or 100px */
  border-bottom: 0.3vw solid #484848;
}


#sidebar h3{font-size: 1.1vw; font-weight: 700; line-height: 1.2vw;}
#sidebar p{font-size: 1vw;}
.material-zone{overflow: hidden;}

/* Selector de tipo de piscina (skimmer/desbordante) */
#pool-type-selector {
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin-bottom: 1.5vw;
  padding: 0.8vw;
  background: #f5f5f5;
  border-radius: 0.5vw;
}

.pool-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6vw 1vw;
  cursor: pointer;
  border-radius: 0.4vw;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.pool-type-option:hover {
  opacity: 0.8;
  background: #e8e8e8;
}

.pool-type-option.active {
  opacity: 1;
  border-color: #484848;
  background: #fff;
}

.pool-type-option img {
  width: 3vw;
  height: auto;
  margin-bottom: 0.3vw;
}

.pool-type-option span {
  font-size: 0.8vw;
  font-weight: 600;
  color: #484848;
}

/* Estilos del acordeón de zonas */
#zones-accordion {
  margin-top: 1vw;
}

.zone-accordion-item {
  margin-bottom: 0.5vw;
  border: 1px solid #e0e0e0;
  border-radius: 0.4vw;
  overflow: hidden;
}

.zone-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8vw 1vw;
  background: #f5f5f5;
  cursor: pointer;
  transition: background 0.3s ease;
}

.zone-accordion-header:hover {
  background: #e8e8e8;
}

.zone-accordion-header h3 {
  margin: 0;
  font-size: 1vw;
  font-weight: 600;
}

.accordion-arrow {
  font-size: 0.8vw;
  color: #666;
  transition: transform 0.3s ease;
}

.zone-accordion-item.accordion-open .zone-accordion-header {
  background: #484848;
}

.zone-accordion-item.accordion-open .zone-accordion-header h3 {
  color: #fff;
}

.zone-accordion-item.accordion-open .accordion-arrow {
  color: #fff;
}

.zone-accordion-content {
  display: none;
  padding: 1vw;
  background: #fff;
}

.materials-list {
  margin-top: 0.5vw;
}

/* Materiales a ancho completo */
.material-value-selector {
  width: 100%;
  margin-bottom: 0.5vw;
}

.material-value-selector a {
  display: flex;
  align-items: center;
  padding: 0.5vw;
  border: 2px solid #e0e0e0;
  border-radius: 0.4vw;
  text-decoration: none;
  transition: all 0.3s ease;
}

.material-value-selector a:hover {
  border-color: #484848;
  background: #f9f9f9;
}

.material-value-selector a.selected-material {
  border-color: #484848;
  background: #f0f0f0;
}

.material-image-container {
  width: 4vw;
  height: 4vw;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.3vw;
}

.material-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-info {
  flex: 1;
  margin-left: 0.8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.material-name {
  font-size: 0.9vw;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.material-measure {
  font-size: 0.75vw;
  color: #666;
  margin-top: 0.2vw;
}

.material-measure:empty::before,
.material-measure:contains('--X--') {
  color: #999;
}

/* Área de selector de materiales con scroll */
#material-selector-area {
  max-height: calc(100vh - 150px);
  /*overflow-y: auto;*/
  padding-right: 0.5vw;
}

#material-selector-area::-webkit-scrollbar {
  width: 0.4vw;
}

#material-selector-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0.2vw;
}

#material-selector-area::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0.2vw;
}

#material-selector-area::-webkit-scrollbar-thumb:hover {
  background: #555;
}



.ajaxloading {
	position: fixed;
	background: rgba(0, 0, 0, 0.3);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
  display: none;
	
}
.ajaxloading .ajax_process {
  background: url("../img/loading.gif") no-repeat scroll center 20px #FFF;
  box-shadow: 0 0 5px #000;
  
  left: 50%;
  letter-spacing: 2px;
  margin: -42px 0 0 -90px;
  padding-top: 70px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 76px;
  color: #000;
}

a.selected-material{
  
    border: 3px solid #d2d2d2;
    box-sizing: border-box;
}

.file-not-assigned{position: relative;}
.file-not-assigned::before{content: "🚫"; position: absolute;}

.material-selected-container
{
  
  padding: 0.8vw 0 0.4vw;
  overflow: hidden;
  width: 100%;
}

.material-selected-container:not(:last-child)
{
  border-bottom: 2px solid #a3a3a3;
}

.select-wrap select
{ font-size: 0.9vw;
  
  
}


.material-selected-container img{width: 46% !important; float: left}
.material-selected-container .material-image-container{width: 46%; float: left}
.material-selected-container .material-image-container img{width: 100% !important;}
.material-selected-container .material-selected-info{width: 50%; float: right}

.material-selected-info h3{font-size: 1vw !important}


.material-download-button{
  display: block;
  background-color: #e6e6e6;
  -webkit-border-radius: 2vw;
  -moz-border-radius: 2vw;
  border-radius: 2vw;
  padding: 1vw;
  font-size: 1.3vw;
  text-align: center;
  margin-top: 1vw;
  color: #484848;
}

.material-select-container{
  min-height: 3vw;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-top: 0.5vw;
}


/* Cuadro de dialogo y formulario **/

.ui-dialog-titlebar{display: none;}
.ui-dialog{max-width: 700px;}
.intro-formulario{font-weight: 700; position: relative; padding-bottom: 1em;
  font-size: 20px;
  line-height: 22px;}

.intro-formulario::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  
  width: 6%;
  
  border-bottom: 5px solid #484848;
}
#temas-legales{font-size: 90%;}

.wpcf7-text{
  
  border-bottom: 2px solid #e6e6e6 !important;
  width: 100%;
}


.wpcf7-submit{
  display: block;
  background-color: #e6e6e6;
  -webkit-border-radius: 26px;
  -moz-border-radius: 26px;
  border-radius: 26px;
  padding: 10px !important;
  font-size: 17px;
  text-align: center;
  margin-top: 20px;
  color: #484848;
  width: 100%;
  font-weight: 700;
  font-family: 'Overpass';
}

#container-form{padding: 40px 40px 20px;}


@media  (max-device-width: 1024px) and (orientation: portrait) {
	 
	#mobile-rotation {
		display: block !important; 
		height: 100%; 
		width: 100%; 
		position: fixed;
		left:0;
		top: 0;
		background-repeat: no-repeat;
		background-size:cover;
		z-index: 999999999;
		}
	 
	#mobile-rotation .rotation-icon{ 
	
		height: 100%; 
		width: 100%; 
		position: absolute;
		left:0;
		top: 0;
		background: url(../img/rotate-screen.gif) no-repeat center center rgba(0,0,0,0.8);
		 
	 
	}
}

