.wrap-portfolio-section {
    width: 100%;
}

.portfolio-section {
    box-sizing: border-box;
    margin: 0px auto 0px auto;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width:1350px) {
    .portfolio-section {
        max-width: 1350px;
    }
}

@media (max-width: 1000px) {
    .portfolio-section {
        width: auto;
    }
}
/*************************************************/
/*                  Portada                      */
/*************************************************/
.content-info-portafolio {
  box-sizing: border-box;
  width: 1300px;
  color: #ffffff;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 0px;
}

.content-info-portafolio .col1 {
  display: block;
  padding: 10px;
  text-align: left;
}

.content-info-portafolio .col2 {
  display: block;
}

.content-info-portafolio .col1 .etiqueta {
  font-family: 'textt', serif;
  font-size: 10pt;
  background-color: rgb(255,255,255,.2);
  padding: 10px 20px;
  border-radius: 20px;
}

.content-info-portafolio .col1 h1 {
  font-family: 'headM', serif;
  font-size: 28pt;
  text-align: left;
  margin-bottom: 40px;
}

.content-info-portafolio .col1 h1 span {
  background: linear-gradient(45deg, #23AA98, #22B5C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-info-portafolio .col1 p {
  font-family: 'textM', serif;
  font-size: 12pt;
  text-align: left;
  font-weight: 300;
}

.content-info-portafolio .col1 .hero-button {
  cursor: pointer;
  background-color: rgb(255,255,255);
  padding: 10px 25px;
  border-radius: 10px;
  border: none;

  font-family: 'textt', sans-serif;
  color: rgb(0,0,0,.8);
  font-weight: 900;
  font-size: 12pt;

  transition: .5s all;
}

.content-info-portafolio .col1 .hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 4px 10px rgb(255, 255, 255, .8);
}

.content-info-portafolio .col1 .stats {
  width: fit-content;
  display: flex;
  margin-top: 40px;
  /* background-color: rgb(8, 70, 170,.8); */
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
}

.content-info-portafolio .col1 .stats .card {
  box-sizing: border-box;
  padding: 10px 25px;
  margin-right: 10px;
  border-radius: 10px;

  background: #23AA98;
  background: linear-gradient(90deg,rgba(35, 170, 152, 1) 0%, rgba(34, 181, 193, 1) 100%);
}

.content-info-portafolio .col1 .stats .card p {
  font-weight: 600;
  font-size: 25pt;
  margin: 0px;

  text-shadow: 3px 3px 1px rgb(0,0,0,.1);
}

.content-info-portafolio .col1 .stats .card span {
  background: none;
  border-radius: 0px;
  padding: 0px;
  font-weight: 300;
  font-family: 'textt', serif;
}

.content-info-portafolio .col2 img {
  width: 60%;
  opacity: .8;
  filter: grayscale(100%) brightness(0) invert(1);
}

@media (max-width:1300px) {
    #wrap-video-services #overlay .content-info-portafolio {
        width: auto;
    }
}

@media (max-width:950px) {

    #wrap-video-services #overlay {
        padding-top: 200px;
    }
}

@media (max-width:900px) {
    #wrap-video-services #overlay {
        padding-top: 150px;
    }
}

@media (max-width:900px) {
    #wrap-video-services #overlay .content-info-portafolio {
        display: block;
    }
}
/*************************************************/
/*              Header-Seccion Separator         */
/*************************************************/
.wrap-portfolio-section-separator {
  background-color: transparent;
  padding-top: 20px;
  padding-bottom: 20px;
}

.portfolio-section-separator {
  display: block;
  padding: 10px;
}

.portfolio-section-separator .separator {
  width: 100%;
  height: 1px;
  background-color: #dddddd;
}
/*************************************************/
/*              Portafolio-Seccion 1             */
/*************************************************/
.wrap-portfolio-section-1 {
  background-color: #F9FAFB;
}

.portfolio-section-1 {
  box-sizing: border-box;
  padding: 40px 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio-section-1 h2 {
  font-family: 'headM', serif;
  font-size: 600;
  font-size: 24pt;

  color: #444444;
  text-align: center;
}

.portfolio-section-1 h2 span {
  background: linear-gradient(45deg, #23AA98, #22B5C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-section-1 p {
  font-family: 'textM', serif;
  font-size: 500;
  font-size: 14pt;

  color: #888888;
  margin: 0px;
  text-align: center;
}
/*******************************************************/
.wrap-portfolio-section-2 {
  background-color: #F9FAFB;
}

.portfolio-section-2 {
  box-sizing: border-box;
  padding: 40px 10px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 40px;
}

.portfolio-section-2 .card {
  box-sizing: border-box;
  background-color: rgb(255,255,255);
  box-shadow: 0px 0px 10px rgb(0,0,0,.1);
  border-radius: 10px;

  padding: 30px;
  border: 1px solid rgb(170,170,170,.4);
}

.portfolio-section-2 .card .icon {
  background-color: #23A997;
  color: rgb(255,255,255);
  padding: 15px;
  font-size: 18pt;
  border-radius: 15px;
  box-shadow: 0px 0px 10px rgb(35, 169, 151,.4);
}

.portfolio-section-2 .card h3 {
  font-family: 'headM', serif;
  font-size: 14pt;
  color: #333333;
}

.portfolio-section-2 .card p {
  font-family: 'textM', serif;
  font-weight: 500;
  color: #888888;
}

.portfolio-section-2 .card p i {
  color: #23A997;
}

@media (max-width:920px) {
  .portfolio-section-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width:640px) {
  .portfolio-section-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}
/*******************************************************/
.wrap-portfolio-section-3 {
  background-color: #F9FAFB;
}

.portfolio-section-3 {
  box-sizing: border-box;
  padding: 40px 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio-section-3 h4 {
  font-family: 'headM', serif;
  font-size: 600;
  font-size: 24pt;

  color: #444444;
  text-align: center;
}

.portfolio-section-3 h4 span {
  background: linear-gradient(45deg, #23AA98, #22B5C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-section-3 p {
  font-family: 'textM', serif;
  font-size: 500;
  font-size: 14pt;

  color: #888888;
  margin: 0px;
  text-align: center;
}
/*******************************************************/
.wrap-portfolio-section-4 {
  background-color: #F9FAFB;
}

.portfolio-section-4 {
  box-sizing: border-box;
  padding: 40px 10px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-section-4 .card {
  box-sizing: border-box;
  background-color: rgb(255,255,255);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0px 0px 15px rgb(0,0,0,.1);

  transition: .5s all;
}

.portfolio-section-4 .card:hover {
  transform: translateY(-3px);
}

.portfolio-section-4 .card i {
  background-color: #E8F6F4;
  color: #23A997;
  padding:15px;
  font-size: 18pt;
  border-radius: 10px;
  transition: .5s all;
}

.portfolio-section-4 .card:hover i {
  background-color: rgb(35, 169, 151,.2);
}

.portfolio-section-4 .card h5 {
  font-family: 'headM', serif;
  font-weight: 600;
  color: #444444;
  font-size: 14pt;
}

.portfolio-section-4 .card p {
  font-family: 'textM', serif;
  font-weight: 500;
  color: #888888;
  font-size: 12pt;
}

@media (max-width:950px) {
  .portfolio-section-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width:690px) {
  .portfolio-section-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}
/*******************************************************/
.wrap-portfolio-section-5 {
  background-color: #F9FAFB;
}

.portfolio-section-5 {
  display: block;
  box-sizing: border-box;
  padding: 40px 10px;
}

.portfolio-section-5 .wrap {
  box-sizing: border-box;
  padding: 20px;
  width: 100%;
  background-color: rgb(255,255,255);
  display: block;
  border-radius: 20px;

  box-shadow: 0px 0px 10px rgb(0,0,0,.1);
}

.portfolio-section-5 .wrap h5 {
  width: 100%;
  text-align: center;
  margin: 0px 0px 20px 0px;

  font-family: 'headM', serif;
  font-weight: 600;
  font-size: 14pt;
  color: #444444;
}

.portfolio-section-5 .wrap .wrap-cards {
  box-sizing: border-box;
  width: 100%;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 20px;
}

.portfolio-section-5 .wrap .wrap-cards .card {
  display: block;
}

.portfolio-section-5 .wrap .wrap-cards .card .wrap-icon {
  width: 100%;
}

.portfolio-section-5 .wrap .wrap-cards .card .wrap-icon .icon {
  background-color:#F6F8F8;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0px auto;
  border-radius: 40px;

}

.portfolio-section-5 .wrap .wrap-cards .card .wrap-icon .icon i {
  color: #23A997;
  font-size: 14pt;
}

.portfolio-section-5 .wrap .wrap-cards .card p {
  width: 100%;
  text-align: center;
  margin-bottom: 0px;

  
}

.portfolio-section-5 .wrap .wrap-cards .card p:nth-of-type(1) {
  font-family: 'textM', serif;
  font-size: 12pt;
  font-weight: 600;
  color: #444444;
}

.portfolio-section-5 .wrap .wrap-cards .card p:nth-of-type(2) {
  font-family: 'textt', serif;
  font-size: 12pt;
  font-weight: 500;
  color: #888888;
  margin-top: 0px;
}

@media (max-width:1020px) {
  .portfolio-section-5 .wrap .wrap-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap:40px
  }
}

@media (max-width:770px) {
  .portfolio-section-5 .wrap .wrap-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap:40px
  }
}
/*******************************************************/
.wrap-portfolio-section-6 {
  background-color: #F9FAFB;
}

.portfolio-section-6 {
  box-sizing: border-box;
  padding: 60px 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio-section-6 h4 {
  font-family: 'headM', serif;
  font-size: 600;
  font-size: 24pt;

  color: #444444;
  text-align: center;
  margin: 0px;
}

.portfolio-section-6 h4 span {
  background: linear-gradient(45deg, #23AA98, #22B5C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-section-6 p {
  font-family: 'textM', serif;
  font-size: 500;
  font-size: 14pt;

  color: #888888;
  margin: 0px;
  text-align: center;
}
/*******************************************************/
.wrap-portfolio-section-7 {
  background-color: #F9FAFB;
}

.portfolio-section-7 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 40px 10px;
}

.portfolio-section-7 .faq {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-section-7 .faq-item {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgb(0,0,0,.08);
  border: 1px solid rgba(170,170,170,.2);
  overflow: hidden;
}

.portfolio-section-7 .faq-toggle {
  display: none;
}

.portfolio-section-7 .faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-family: 'headM', serif;
  font-weight: 500;
  font-size: 12pt;
  color: #444444;
  position: relative;
}

.portfolio-section-7 .faq-question::after {
  content: "+";
  font-size: 18pt;
  color: #22B5C1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.portfolio-section-7 .faq-toggle:checked + .faq-question::after {
  content: "-";
  transform: rotate(180deg);
  color: #23AA98;
}

.portfolio-section-7 .faq-answer {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
  padding: 0 26px;
}

.portfolio-section-7 .faq-answer p {
  font-family: 'textM', serif;
  font-weight: 400;
  font-size: 12pt;
  color: #888888;
  margin: 0;
  padding-bottom: 20px;
}

.portfolio-section-7 .faq-toggle:checked + .faq-question {
  color: #22B5C1;
}

.portfolio-section-7 .faq-toggle:checked + .faq-question + .faq-answer {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
}
/*******************************************************/
.wrap-portfolio-section-logo {
  background-color: transparent;
}

.portfolio-section-logo {
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-section-logo figure {
  padding: 0px;
  display: block;
  width: 500px;
}

.portfolio-section-logo figure img{
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: auto;
}
/*******************************************************/
.wrap-portfolio-section-8 {
  background-color: transparent;
}

.portfolio-section-8 {
  box-sizing: border-box;
  padding: 60px 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio-section-8 h6 {
  font-family: 'headM', serif;
  font-size: 600;
  font-size: 24pt;

  color: #444444;
  text-align: center;
  margin: 0px;
}
/*******************************************************/
/*                    Seccion de contacto              */
/*******************************************************/
.wrap-portfolio-section-contac {
  background: #23A997;
  padding-top: 40px;
  padding-bottom: 40px;
}

.portfolio-section-contac {
  display: block;
  padding: 20px;
  box-sizing: border-box;
}

.portfolio-section-contac h5 {
  text-align: center;
  color: rgb(255,255,255);
  font-size: clamp(14pt, 2vw, 24pt);
  font-family: 'headM', serif;
}

.portfolio-section-contac h6 {
  font-family: 'headM', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  color: rgb(255,255,255);
  font-size: clamp(12pt, 2vw, 20pt);
  text-align: center;
}

.portfolio-section-contac .buttons {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.portfolio-section-contac .buttons button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 10px 25px;
  font-family: 'textt', serif;
  font-weight: 900;
  font-size: 14pt;
  transition: .5s all;
  box-shadow: 0px 0px 10px rgb(0,0,0,.3);
  background-color: rgb(255, 255, 255);
  color: #444444;
}

.portfolio-section-contac .buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 4px 10px rgb(0,0,0,.3);
}

.demo-form-wrap {
  max-width: 900px;
  margin: 30px auto 0px auto;
  padding: 0px 10px;
  opacity: 0;
  max-height: 0px;
  transform: translateY(-8px);
  pointer-events: none;
  transition: max-height .6s ease, opacity .4s ease, transform .4s ease;
}

.demo-form-wrap.is-open {
  opacity: 1;
  max-height: 1200px;
  transform: translateY(0px);
  pointer-events: auto;
}

.demo-form {
  background-color: rgba(255, 255, 255, .98);
  border-radius: 20px;
  padding: 25px 25px 30px 25px;
  box-shadow: 0px 8px 24px rgba(35, 170, 152, .15);
  border: 1px solid rgba(35, 170, 152, .18);
}

.demo-form.is-hidden {
  display: none;
}

.demo-form-header h6 {
  color: #0F5B56;
  font-family: 'headM', serif;
  font-weight: 700;
  font-size: clamp(14pt, 2vw, 20pt);
  margin-bottom: 6px;
}

.demo-form-header p {
  color: #3B5B5C;
  font-family: 'textt', serif;
  font-size: 11.5pt;
  text-align: left;
  margin-bottom: 20px;
}

.demo-form-error {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: rgba(241, 89, 89, .12);
  color: #7a1c1c;
  font-family: 'textt', serif;
  font-size: 10.5pt;
}

.demo-form-error.is-visible {
  display: block;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.demo-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-form .field-full {
  grid-column: 1 / -1;
}

.demo-form label {
  font-family: 'textt', serif;
  font-weight: 700;
  color: #0F5B56;
  font-size: 10.5pt;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(35, 170, 152, .25);
  padding: 10px 12px;
  font-family: 'textM', serif;
  font-size: 11.5pt;
  background-color: rgba(255, 255, 255, .98);
  color: #111111;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.demo-form textarea {
  resize: vertical;
  min-height: 90px;
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: rgba(35, 170, 152, .6);
  box-shadow: 0px 0px 0px 3px rgba(35, 170, 152, .12);
}

.demo-form .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.demo-form .checkbox input {
  width: 18px;
  height: 18px;
  margin: 0px;
}

.demo-form .privacy-note {
  display: block;
  margin-top: 6px;
  font-family: 'textt', serif;
  font-size: 10pt;
  color: #3B5B5C;
}

.demo-form .privacy-note a {
  color: #0B8F7D;
  font-weight: 700;
  text-decoration: none;
}

.demo-form .privacy-note a:hover {
  text-decoration: underline;
}

.demo-form-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.demo-form-actions .button-submit {
  background-color: #16A249;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-family: 'textt', serif;
  font-weight: 900;
  font-size: 12pt;
  cursor: pointer;
  transition: .3s all;
}

.demo-form-actions .button-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(22, 162, 73, .4);
}

.demo-form-actions .demo-hint {
  font-family: 'textt', serif;
  font-size: 10.5pt;
  color: #3B5B5C;
}

.demo-success {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, .98);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0px 8px 24px rgba(35, 170, 152, .15);
  border: 1px solid rgba(35, 170, 152, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0px;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, max-height .45s ease;
}

.demo-success.is-visible {
  opacity: 1;
  transform: translateY(0px);
  max-height: 600px;
  pointer-events: auto;
}

.demo-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(22, 162, 73, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-success-icon i {
  color: #16A249;
  font-size: 24pt;
  text-align: center;
}

.demo-success-content h6 {
  color: #444444;
  font-family: 'headM', serif;
  font-weight: 700;
  font-size: clamp(14pt, 2vw, 20pt);
  margin-bottom: 8px;
  text-align: center;
}

.demo-success-content p {
  color: #666666;
  font-family: 'textM', serif;
  font-weight: 500;
  font-size: 11.5pt;
  margin-bottom: 10px;
  text-align: center;
}

@media (max-width: 850px) {
  .demo-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Elimina padding-bottom de #content que genera espacio blanco antes del footer */
#content { padding-bottom: 0 !important; }
