.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                      */
/*************************************************/
#wrap-video-services {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  padding: 0;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

#wrap-video-services video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#wrap-video-services #overlay {
  position: relative;
  width: 100%;
  background-color: rgba(17, 17, 17, .6);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  box-sizing: border-box;
  padding-top: 220px;
  padding-bottom: 40px;
  color: #ffffff;
  z-index: 1;
}

.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 span {
  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 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 {
  box-sizing: border-box;
  width: 100%;
  margin-top: 40px;
  opacity: .8;
}

.content-info-portafolio .col1 .stats span {
  background: none;
  padding: 0px;
  font-family: 'textt', serif;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 2.5;
}

.content-info-portafolio .col1 .stats span i {
  color: #16A249;
  font-size: 14pt;
}

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

@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;
  }
}
/*************************************************/
/*              Seccion head 1                   */
/*************************************************/


/*************************************************/
/*              Rediseño Radar                   */
/*************************************************/
.wrap-portfolio-section-1,
.wrap-portfolio-section-2,
.wrap-portfolio-section-3,
.wrap-portfolio-section-4,
.wrap-portfolio-section-5 {
  background-color: #f6f9ff;
}

.portfolio-section-1,
.portfolio-section-2,
.portfolio-section-3,
.portfolio-section-4,
.portfolio-section-5 {
  box-sizing: border-box;
  padding: 24px 20px 70px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: #1b84d9;
  font-family: 'textt', sans-serif;
  font-size: 10pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.portfolio-section-1 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.radar-overview-copy,
.radar-overview-grid,
.radar-split-content,
.radar-visual-card,
.radar-benefit-hero,
.radar-benefit-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #ffffff 100%);
  border: 1px solid #dce8ff;
  border-radius: 28px;
  box-shadow: 0px 18px 38px rgba(29, 77, 181, 0.08);
}

.radar-overview-copy {
  padding: 34px 34px 32px;
}

.radar-overview-copy h2,
.radar-split-content h2,
.radar-benefit-hero h2 {
  margin: 0 0 16px;
  color: #11264f;
  font-family: 'headm', sans-serif;
  font-size: clamp(24pt, 4vw, 46pt);
  font-weight: 700;
  line-height: 1.18;
}

.radar-overview-copy p,
.radar-split-content p,
.radar-benefit-hero p,
.radar-stat-card p,
.radar-feature-card p,
.radar-mini-card p,
.radar-kpi-card p,
.radar-benefit-card li {
  margin: 0;
  color: #5a7091;
  font-family: 'textm', sans-serif;
  font-size: clamp(12pt, 1.15vw, 14pt);
  font-weight: 500;
  line-height: 1.75;
}

.radar-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.radar-stat-card {
  min-height: 180px;
  background: linear-gradient(180deg, #0f1e3f 0%, #17315f 100%);
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
}

.radar-stat-card i {
  color: #49c2ff;
  font-size: 24px;
  margin-bottom: 14px;
}

.radar-stat-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: 'headm', sans-serif;
  font-size: clamp(15pt, 1.4vw, 18pt);
  font-weight: 700;
  line-height: 1.35;
}

.radar-stat-card p {
  color: rgba(255,255,255,.82);
}

.portfolio-section-2,
.portfolio-section-3,
.portfolio-section-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 26px;
  align-items: center;
}

.portfolio-section-3 {
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1fr);
}

.radar-split-content {
  padding: 34px;
}

.radar-feature-list,
.radar-feature-grid,
.radar-kpi-grid,
.radar-benefits-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.radar-feature-card,
.radar-mini-card,
.radar-kpi-card,
.radar-benefit-card {
  border-radius: 22px;
  border: 1px solid #dce8ff;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #fafdff 100%);
  box-sizing: border-box;
}

.radar-feature-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.radar-feature-card i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1250c4 0%, #2b84ff 100%);
  color: #ffffff;
  font-size: 18px;
}

.radar-feature-card h3,
.radar-mini-card h3,
.radar-kpi-card h3,
.radar-benefit-card h3 {
  margin: 0 0 8px;
  color: #1b2c4b;
  font-family: 'headm', sans-serif;
  font-size: clamp(14pt, 1.35vw, 17pt);
  font-weight: 700;
  line-height: 1.35;
}

.radar-feature-grid,
.radar-kpi-grid,
.radar-benefits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radar-mini-card,
.radar-kpi-card,
.radar-benefit-card {
  padding: 20px;
}

.radar-kpi-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: #2b84ff;
  font-family: 'headm', sans-serif;
  font-size: 18pt;
  font-weight: 700;
}

.radar-benefit-hero {
  grid-column: 1 / -1;
  padding: 34px;
}

.radar-benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radar-benefit-card ul {
  margin: 0;
  padding-left: 18px;
}

.radar-benefit-card li + li {
  margin-top: 10px;
}

.radar-visual-card {
  padding: 18px;
  overflow: hidden;
}

.radar-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.radar-visual-card-dark {
  background: linear-gradient(180deg, #0f1832 0%, #13264c 100%);
}

.radar-visual-card-dashboard {
  background: linear-gradient(180deg, #101b36 0%, #182c59 100%);
}

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

  .radar-benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .radar-overview-grid,
  .radar-feature-grid,
  .radar-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .portfolio-section-1,
  .portfolio-section-2,
  .portfolio-section-3,
  .portfolio-section-4,
  .portfolio-section-5 {
    padding: 16px 20px 50px;
  }

  .radar-overview-copy,
  .radar-overview-grid,
  .radar-split-content,
  .radar-visual-card,
  .radar-benefit-hero,
  .radar-benefit-card {
    border-radius: 22px;
  }

  .radar-overview-copy,
  .radar-split-content,
  .radar-benefit-hero {
    padding: 24px 20px;
  }

  .radar-overview-copy h2,
  .radar-split-content h2,
  .radar-benefit-hero h2 {
    font-size: clamp(22pt, 10vw, 32pt);
  }
}

/*******************************************************/
/*                    Seccion de contacto              */
/*******************************************************/
.wrap-portfolio-section-contac {
  background: #0847AC;
  background: linear-gradient(120deg, rgba(8, 71, 172, 1) 0%, rgba(11, 99, 240, 1) 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(255, 255, 255);
  font-size: clamp(14pt, 2vw, 24pt);
  font-family: 'headM', serif;
}

.portfolio-section-contac h5 i {
  font-size: clamp(18pt, 2vw, 30pt);
}

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

.portfolio-section-contac p {
  font-family: 'textt', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  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;
  background-color: #16A249;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 10px;
  padding: 10px 25px;
  font-family: 'textt', serif;
  font-weight: 900;
  font-size: 14pt;
  transition: .5s all;
}

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

.portfolio-section-contac .buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 4px 10px rgb(255, 255, 255, .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, .2);
  border: 1px solid rgba(255, 255, 255, .4);
}

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

.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, .2);
  border: 1px solid rgba(255, 255, 255, .4);
  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;
}

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

.demo-form-header p {
  color: #2B3B52;
  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(243, 90, 90, .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: #0C2C66;
  font-size: 10.5pt;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(12, 44, 102, .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(12, 44, 102, .6);
  box-shadow: 0px 0px 0px 3px rgba(12, 44, 102, .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: #2B3B52;
}

.demo-form .privacy-note a {
  color: #0847AC;
  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: #2B3B52;
}

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