.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 h1 span {
  background: linear-gradient(45deg, #3A86EA, #1A9D5D);
  -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 .stats {
  width: 100%;
  display: flex;
  margin-top: 40px;
}

.content-info-portafolio .col1 .stats .card {
  box-sizing: border-box;
  padding-right: 25px;
  border-right: 1px solid rgb(255,255,255,.2);
  margin-right: 10px;

  opacity: .9;
}

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

.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 .card span {
  font-family: 'textt', serif;
  background: none;
  border-radius: 0px;
  padding: 0px;
  font-weight: 300;
}

.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: #FAFCFD;
}

.portfolio-section-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 10px;
  flex-direction: column;
}

.portfolio-section-1 h2 {
  color: #444444;
  font-family: 'headm', serif;
  font-weight: 700;
  font-size: clamp(20pt,2vw,30pt);
  text-align: center;
}

.portfolio-section-1 h2 span {
  background: linear-gradient(45deg, #3A86EA, #1A9D5D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.portfolio-section-1 .underline-header {
  background: rgb(34,84,197);
  width: 100px;
  height: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgb(0,0,0,.2);
  opacity: .8;
}
/*******************************************************/
.wrap-portfolio-section-2 {
  background-color: #FAFCFD;
}

.portfolio-section-2 {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 60px;
  padding: 20px 20px 60px 20px;
}

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

  display: flex;
  transition: .5s all;
}

.portfolio-section-2 .card:hover {
  box-shadow: 0px 0px 10px rgb(0,0,0,.1);
}

.portfolio-section-2 .card .icon {
  /* background-color: yellowgreen; */
  width: 20%;
  box-sizing: border-box;
  text-align: center;
}

.portfolio-section-2 .card .icon i {
  background-color: #FDECEC;
  color: #F15959;
  padding: 15px;
  font-size: 18pt;
  border-radius: 10px;
}

.portfolio-section-2 .card .info {
  /* background-color: yellow; */
  width: 80%;
  box-sizing: border-box;
  padding-left: 10px;
}

.portfolio-section-2 .card .info h3 {
  margin-top: 0px;
  font-family: 'headM', serif;
  font-weight: 600;
  color: #444444;
}

.portfolio-section-2 .card .info p {
  font-family: 'textM', serif;
  font-size: 12pt;
  color: #999999;
}
/*******************************************************/
.wrap-portfolio-section-3 {
  background-color: transparent;
}

.portfolio-section-3 {
  padding: 40px 20px;
}

.portfolio-section-3 h3 {
  font-family: 'headM', serif;
  font-weight: 700;
  font-size: 30pt;
  text-align: center;
  color: #444444;
}

.portfolio-section-3 h3 span {
  background: linear-gradient(45deg, #3A86EA, #1A9D5D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-section-3 p {
  font-family: 'textM', serif;
  font-weight: 500;
  font-size: 16pt;
  color: #888888;
  text-align: center;
}
/*******************************************************/
.wrap-portfolio-section-4 {
  background-color: transparent;
}

.portfolio-section-4 {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  padding: 20px 10px;
}

.portfolio-section-4 .col {
  box-sizing: border-box;
  padding: 30px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
}

.portfolio-section-4 .col .card {
  box-sizing: border-box;
  width: 100%;
  border-radius: 20px;
  border: 2px solid rgb(170,170,170,.5);
  padding: 40px;
}

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

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

.portfolio-section-4 .col1 .card i {
  background-color: #EBF2FE;
  color: #3C83F6;
  padding: 20px;
  font-size: 20pt;
  border-radius: 10px;
}

.portfolio-section-4 .col2 .card i {
  background-color: #E7F5EC;
  color: #16A149;
  padding: 20px;
  font-size: 20pt;
  border-radius: 10px;
}

@media (max-width:865px) {
  .portfolio-section-4 {
    display: block;
  }
}
/*******************************************************/
.wrap-portfolio-section-5 {
  background-color: #FAFCFD;
}

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

.portfolio-section-5 .etiqueta {
  background-color: #E7EFFC;
  color:#5C98F7;

  font-family: 'textt', serif;
  font-weight: 900;
  font-size: 10pt;
  padding: 10px 20px;
  border-radius: 20px;
}

.portfolio-section-5 h5 {
  font-family: 'headM', serif;
  font-weight: 700;

  font-size: clamp(18pt,2vw,25pt);
  color: #444444;

  margin-bottom: 0px;
}

.portfolio-section-5 h5 span {
  background: linear-gradient(45deg, #3A86EA, #1A9D5D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-section-5 p {
  font-family: 'textM', serif;
  font-size: clamp(12pt,1.5vw,14pt);
  font-weight: 500;
  color: #888888;

  text-align: center;
}
/*******************************************************/
.wrap-portfolio-section-6 {
  background-color: #FAFCFD;
}

.portfolio-section-6 {
  padding: 20px 10px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
}

.portfolio-section-6 figure {
  box-sizing: border-box;
  width: 200px;

  padding: 10px;
  display: block;

  border-radius: 20px;
  box-shadow: 0px 0px 10px rgb(0,0,0,.2);

  transition: .5s all;
}

.portfolio-section-6 figure:hover {
  transform: scaleX(1.2) scaleY(1.2);
}

.portfolio-section-6 figure:nth-child(1) {
  background-color: #f3faff;
}

.portfolio-section-6 figure:nth-child(2) {
  background-color: #fdf3f3;
}

.portfolio-section-6 figure:nth-child(3) {
  background-color: #faeeee;
}

.portfolio-section-6 figure:nth-child(4) {
  background-color: #f2fafd;
}

.portfolio-section-6 figure:nth-child(5) {
  background-color: #f7f7f7;
}

.portfolio-section-6 figure:nth-child(6) {
  cursor: pointer;
  background-color: #F1F6FC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border: 3px dashed #A9C8FA;
}

.portfolio-section-6 figure:nth-child(6) i {
  color: #A9C8FA;
}

.portfolio-section-6 figure:nth-child(6) span {
  color: #888888;
  font-family: 'textt', serif;
  font-weight: 600;
}

.portfolio-section-6 figure img {
  display: block;
  margin: 0px;
  padding: 0px;

  width: 100%;
  height: auto;
}

.portfolio-section-6 .more-card {
  background-color: #F1F6FC;
}
/*******************************************************/
.wrap-portfolio-section-7 {
  background-color: #FAFCFD;
}

.portfolio-section-7 {
  padding: 40px 10px;

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

.portfolio-section-7 .card {
  border: 1px solid rgb(0,0,0,.1);
  box-sizing: border-box;
  padding: 30px;
  border-radius: 20px;

  background-color: rgb(255,255,255);
  text-align: center;

  box-shadow: 0px 3px 5px rgb(0,0,0,.2);
}

.portfolio-section-7 .card h6 {
  font-family: 'headM', serif;
  font-weight: 500;
  font-size: 14pt;
  color: #333333;
  margin-top: 0px;
  margin-bottom: 0px;
}

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

.portfolio-section-7 p span {
  color:#5996F7;
  font-weight: 600;
}
/*******************************************************/
.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;
}
/*******************************************************/
/*                    Seccion de contacto              */
/*******************************************************/
.wrap-portfolio-section-contac {
  background: #0847AC;
  background: linear-gradient(120deg, #EBF2FD 0%, #E7F5ED 100%);
  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(68,68,68);
  font-size: clamp(14pt, 2vw, 24pt);
  font-family: 'headM', serif;
}

.portfolio-section-contac h5 span {
  background: linear-gradient(45deg, #3A86EA, #1A9D5D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.portfolio-section-contac p {
  font-family: 'textt', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  color: rgb(255, 255, 255);
  font-size: clamp(14pt, 1.5vw, 18pt);
  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);
}

.portfolio-section-contac .buttons .button-contact {
  background-color: rgb(255, 255, 255);
  color: rgb(0,0,0,.8);
}

.portfolio-section-contac .buttons .button-whatsapp {
  background-color: #16A249;
  color: rgb(255, 255, 255);
}

.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, .95);
  border-radius: 20px;
  padding: 25px 25px 30px 25px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, .15);
  border: 1px solid rgba(255, 255, 255, .6);
}

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

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

.demo-form-header p {
  color: #41516B;
  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: #2C4A7A;
  font-size: 10.5pt;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(44, 74, 122, .2);
  padding: 10px 12px;
  font-family: 'textM', serif;
  font-size: 11.5pt;
  background-color: rgba(255, 255, 255, .95);
  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(58, 134, 234, .6);
  box-shadow: 0px 0px 0px 3px rgba(58, 134, 234, .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: #41516B;
}

.demo-form .privacy-note a {
  color: #3A86EA;
  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: #41516B;
}

.demo-success {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, .95);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, .15);
  border: 1px solid rgba(255, 255, 255, .6);
  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; }
