@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(--main-font), system-ui, Arial, sans-serif;
	font-weight: 600;
  color: #000;
	margin     : 0;
  margin-bottom: 40px;
  line-height: 1.3em;
}

h1 {
	font-size: var(--h1-font-size);
  position: relative;
}

h1::after, h2::after {
  content: '';
  height: 4px;
  width: 60px;
  position: absolute;
  right: 0;
  left: 0;
  background-color: var(--secondary-color);
  bottom: -10px;
  margin: auto;
}

#portfolio .img-wrapper {
  height: 400px;
}

#home #about h1::after, #home #portfolio h1::after, #contact h1::after, #portfolio h1::after, #about #info h1::after {
  margin: unset;
}

h2 {
	font-size: var(--h2-font-size);
}

h3 {
	font-size: var(--h3-font-size);
}

ul {
  list-style-type: none;
  margin-block-start: 0;
  padding-inline-start: 0;
}

ul li:not(:last-child) {
	margin-bottom: 35px;
}

#emergencies ul li:not(:last-child), #services details ul li:not(:last-child) {
  margin-bottom: 0;
}

#emergencies ul li::marker, #services details ul li::marker {
  color: var(--secondary-color);
}

#emergencies ul, #services details ul {
  list-style-type: disc;
  padding-inline-start: 17px;
}

#services details ul {
  padding: 20px;
  padding-inline-start: 35px;
}

header {
	color           : var(--header-font-color);
	font-size       : var(--header-font-size);
  font-weight: 600;
  /* overflow: hidden; */
  background : linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, var(--tertiary-color) 50%, var(--tertiary-color) 100%);
}

header .triangulo {
  width: 82px;
  background-color: var(--primary-color);
  clip-path: polygon(0 0, 80px 0,0 100%);
}

header .flecha {
  font-size: 12px;
  margin-left: 2px;
  top: -1px;
}

header table{
  max-width: var(--contenido);
  margin: auto;
  background-color: var(--tertiary-color);
  padding-right: 15px;
}

header td{
  padding:0
}

header nav a, header #collapsing-menu a {
  position: relative;
}

header #collapsing-menu .logo {
  top: 20px
}

header #collapsing-menu #detail-container a {
  display: block;
}

header .logo {
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

header .active::after {
  content: '';
  background-color: var(--secondary-color);
  height: 4px;
  position: absolute;
  bottom: -5px;
  right: 0;
  left: 0;
  margin: auto;
  width: 50%;
}

.slide-toggle>div {
  overflow: hidden;
  transition: height 0.5s;
}

footer {
	font-size: var(--footer-font-size);
  background-color: black; 
}

footer .contenido {
  padding: 30px 15px;
}

footer .copy {
  background-color: var(--tertiary-color);
}

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: 175px;
}

#portfolio section:first-of-type {
  margin-top: 250px;
}

strong {
	font-weight: bold;
  color: var(--secondary-color);
}

img {
	max-width: 100%;
}

button,
button[type="button"],
.btn {
	border       : none;
	padding      : 15px 8px;
	border-radius: 3px;
	text-align   : center;
	cursor       : pointer;
	display      : inline-block;
	color        : white;
}

button {
	background-color: #343434;
	width           : 100%;
}

button[type="button"],
.btn {
	font-weight     : 600;
	width           : min(270px, 100%);
  border: 3px solid white
}

.error {
  font-size: 12px;
  color: red;
  font-weight: bold;
}

.logo {
  width: 200px;
  max-width: 100%;
}

.btn-dark, button[type="button"] {
  background-color: var(--primary-btn-color);
  border: none
}

.btn, .btn-dark, .back {
  margin-top: 50px;
  font-weight: 700;
  font-size: 20px;
  transition: all 0.3s ease-in-out;
}

.btn-dark:hover, button[type="button"]:hover {
  outline: 3px solid #262626;
  outline-offset: -3px;
}


.btn:hover, .btn-dark:hover, button[type="button"]:hover {
  background-color: white;
  color: #262626
}

button[type="button"] {
  min-width: 70px
}

div[aria-labelledby="swal2-title"] {
  border-radius: 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: 0;
  border: 1px solid #333
}

input.invalid,
textarea.invalid {
	border          : 2px solid red;
	background-color: #ffe6e6;
}

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;
}

#collapsing-menu div {
	padding: 10px;
}

#collapsing-menu div:first-of-type {
	padding-top: 0;
}

#collapsing-menu div:last-of-type {
	padding-bottom: 0;
}

#home #about .grid {
  gap: 0;
  grid-template-columns: 60% 40%;
  align-items: center;
}


#home #services {
  background-color: var(--tertiary-color);
}

#home #services ul {
  max-width: 260px;
  margin: auto;
}

#home #services li {
  text-align: start;
}

#home #services li.flex {
  align-items: start;
}

#home #emergencies .contenido, #services #emergencies .contenido {
  padding: 70px 15px;
}

#home #emergencies {
  margin-bottom: 0;
}

#home #services {
  margin-top: 2px;
}

#home #services .contenido:first-of-type {
  padding: 50px 15px 150px;
}

#home #services .contenido .btn {
  margin-top: 0;
}

#home #services .contenido .btn.absolute.center {
  top: unset;
  bottom: 10px;
}

#services .grid {
  gap: 3px;
}

#home #services .grid {
  gap: 0;
}

#home #services .grid .contenido-wrapper:nth-child(1) {
  background-color: var(--primary-color);
}

#home #services .grid .contenido-wrapper:nth-child(2) {
  background-color: #343434;
}

#home #services .grid .contenido-wrapper:nth-child(1) .contenido {
  margin-right: 0;
}

#home #services .grid .contenido-wrapper:nth-child(2) .contenido {
  margin-left: 0;
}

#home #services .grid .contenido {
  max-width: calc(var(--contenido) / 2);
  height: 100%;
}

#home #services .flex {
  gap: 10px;
  justify-content: start;
}

#home #emergencies .btn, #services #emergencies .btn {
  margin-bottom: 30px;
}

#free-quote .contenido {
  padding: 100px 15px; 
}

#home #portfolio .img-wrapper {
  height: 400px;
}

#home #portfolio .grid {
  margin-top: 100px;
}

#home #portfolio .logo, #portfolio section .logo {
  width: 150px;
}

#home #portfolio .info {
  background-color: var(--primary-color);
  opacity: 0.65;
  position: absolute;
  top: 0;
  width: 100%;
  color: white;
  overflow: hidden;
  font-size: 0.7em !important;
  height: 0;
  transition: height 0.5s, padding 0.5s;
}

#home #portfolio .grid .img-wrapper:hover .info {
    height: 100%;
    /* padding: 15px; */
}


#contact #banner {
  padding: 0;
}

#services #banner .img-wrapper, #contact #banner .img-wrapper, #about #banner .img-wrapper, #emergencies #banner .img-wrapper, #project .banner.img-wrapper  {
  height: 500px;
}

.sombra {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
}


#home #banner .sombra {
  height: calc(100% - 5.6px);
}

#home #banner .img-wrapper {
  height: 100%;
}

#home #banner .contenido {
  max-width: 100%;
  width: 100%;
}

#home #banner p {
  font-size: clamp(14px, 3vw, 32px)
}

#home #banner .uppercase {
  font-size: clamp(25px, 6vw, 70px)
}

#home #banner p, #home #banner .uppercase {
  font-family: 'poppins';
  font-weight: 600;
}

#portfolio .grid {
  margin-top: 50px;
}

#portfolio h1 {
  margin-bottom: 20px;
}

#portfolio h3 {
  font-size: 1.3em;
  margin: 10px 0;
}

#home #portfolio h3 {
  margin: 0;
  font-size: 20px;
  margin-bottom: 15px;
  text-align: left;
}

#portfolio #free-quote h1::after {
  margin: auto;
}

#about .grid {
  gap: 30px;
  overflow: hidden;
  grid-template-columns: calc(60% - 15px) calc(40% - 15px);
  margin-top: 50px;
}

#about .grid:first-of-type {
  margin-top: 0;
  grid-template-columns: calc(40% - 15px) calc(60% - 15px);
}

#emergencies #phone {
  background-color: var(--tertiary-color);
  margin-bottom: 2px;
}

#emergencies #phone .contenido {
  padding: 80px 15px 100px;
}

hr {
	border    : none;
	border-top: #ccc solid 2px;
	margin    : 20px auto;
	width     : min(1000px, 95%);
	margin-top: 100px;
}

#emergencies .icons {
  margin-top: 50px;
  gap: 20px;
  flex-wrap: wrap;
}

#commercial summary {
  background-color: #343434;
}

#residential summary {
  background-color: var(--primary-color);
}

details > summary:first-of-type {
  list-style: none;
}

details > summary {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

details > summary::before {
  content: '+';
  height: max-content;
  transition: all 0.3s ease-in-out;
}

details[open] > summary::before {
  transform: rotate(45deg);
}

summary {
  color: white;
  padding: 15px 20px;
}

details {
  user-select: none;
  overflow: hidden;
  margin-bottom: 3px;
  outline-offset: -3px;
}

#commercial details {
  outline: 3px solid #343434;
}

#residential details {
  outline: 3px solid var(--primary-color);
}

.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;
}

@media only screen and (min-width:601px) {
  header.scrolled .logo {
		width : 100px;
	}

  header nav {
    gap: 0!important;
    width: 100%;
    max-width: 700px;
    justify-content: space-between!important;
  }
  #home #about .grid div:nth-child(1) {
    padding-right: 50px;
  }
  
  #home #clients .grid, #about #clients .grid {
    gap: 60px!important;
  }

  #home #banner video {
    aspect-ratio: 19 / 9;
  }
}

@media only screen and (min-width: 601px) and (max-width: 735px) {
  header nav {
    font-size: 12px;
  }
}

@media screen and ((min-width: 600px) and (max-width: 950px)) {}

@media only screen and (max-width:600px) {
  header .fondo {
    width: 30vw;
  }
	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%);
  }

  .logo {
    width: 100px;
  }

  .btn, .btn-dark {
    font-size: 15px;
  }

  section:first-of-type {
      margin-top: 124px;
  }
  footer .flex {
    flex-direction: column;
  }

  #home #about .img-wrapper {
    margin-top: 50px;
  }

  #home #banner .img-wrapper {
    height: 400px;
  }

  #home #banner .sombra {
    height: 100%;
  }

  #services .grid {
    gap: 100px;
  }

  #home #services .grid {
    gap: 0;
  }

  #contact .contenido .img-wrapper {
    height: 300px;
  }
  #portfolio section:first-of-type  {
      margin-top: 180px;
  }

  #emergencies .icons {
    gap: 10px
  }

  #services #banner .img-wrapper, #contact #banner .img-wrapper, #about #banner .img-wrapper, #emergencies #banner .img-wrapper, #project .banner.img-wrapper  {
    height: 350px;
  }

  .wa-flotante {
    bottom: 20px;
    right: 10px
  }

  .wa-flotante img {
    width: 60px;
  }

  #project #gallery .grid {
    grid-template-columns: repeat(2,1fr)!important;
    gap: 15px;
  }

}


@keyframes spin {
	to {
		transform: rotate(360deg)
	}
}
