
/*Landing de Capacitacion */

body:has(.capacisimos) {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #F7DFD3;
}


.capacisimos .hero-section {
    display: flex;
    background-color: #d1001c;
    color: white;
    min-height: 100%;
    overflow: hidden;
}

.capacisimos .hero-section img {
    width: 100%;
}

.capacisimos form > p {
    text-align: left;
}

/* Contenedor principal */
.capacisimos .benefits {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 2rem;
}

/* Contenedor grid */
.capacisimos .benefits .container.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo de cada columna */
.capacisimos .benefit {
    text-align: center;
    padding: 1rem;
}

.capacisimos .benefit img {
    height: 80px;
}

.capacisimos .benefit h3 {
    color: #FFF;
    text-align: center;
    font-family: "Bebas Neue";
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    margin-top: 35px;
    margin-bottom: 30px;
}


.capacisimos .benefit p {
    color: #FFF;
    text-align: center;
    font-family: "Open Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    /* 130% */
}

.capacisimos .text-highlight .container {
    max-width: 1000px;
    margin: 0 auto;
}

.capacisimos .text-highlight .container p {
    font-family: "Bebas Neue";
    font-size: 54px;
    font-style: normal;
    font-weight: 400;
    line-height: 54px;
    /* 100% */
    text-transform: uppercase;
}

.capacisimos .padding-section {
    padding: 0 22px;
}

.capacisimos .padding-section-y {
    padding-top: 80px;
    padding-bottom: 80px;
}

.capacisimos p:has(label[class="checkbox"]),
.capacisimos .mt-0 {
    margin-top: 0 !important;
}

.capacisimos p:has(label[for="discapacidad"]),
.capacisimos .mb-0 {
    margin-bottom: 0 !important;
}


.capacisimos .formulario {
    background: #d1001c;
    color: white;
    padding: 4rem 2rem;
}

.capacisimos .formulario .container img {
    margin-top: 20px;
}

.capacisimos .formulario .container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Columna izquierda */
.capacisimos .formulario .container>div:first-child {
    flex: 0 0 40%;
}

/* Columna derecha */
.capacisimos .formulario form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.capacisimos .formulario label {
    display: flex;
    flex-direction: column;
    color: #FFF;
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    /* 162.5% */
}

.capacisimos .formulario input[type="date"],
.capacisimos .formulario input[type="text"],
.capacisimos .formulario input[type="email"],
.capacisimos .formulario input[type="tel"],
.capacisimos .formulario input[type="radio"],
.capacisimos .formulario input[type="checkbox"] {
    margin-top: 0.5rem;
    padding: 16px;
    border: none;
    border-radius: 4px;
    color: #C82E38;
    font-family: "Open Sans";
    font-size: 16px;
}

.capacisimos input::placeholder,
.capacisimos textarea::placeholder {
    color: #C82E38;
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.capacisimos .formulario input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #fff;
}

.capacisimos .formulario a {
    color: white;
    text-decoration: underline;
}

.capacisimos .formulario button {
    margin-top: 1rem;
    padding: 16px 12px;
    background: white;
    color: #d1001c;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s;
    color: var(--red, #C82E38);
    text-align: center;
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 0;
}

.capacisimos .formulario button img {
    padding: 0;
    margin-top: 0 !important;
}

.capacisimos .formulario button:hover {
    background: #f2f2f2;
}


.capacisimos .formulario form p>label br {
    display: none;
}

.capacisimos .formulario-texto h2 {
    color: #FFF;
    font-family: "Bebas Neue";
    font-size: 54px;
    font-style: normal;
    font-weight: 400;
    line-height: 54px;
    margin-top: 38px;
    text-transform: uppercase;
}

.capacisimos .formulario-texto p {
    color: #FFF;

    font-family: "Open Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.capacisimos .screen-reader-response {
    display: none;
}

.capacisimos .grid-submit>p,
.capacisimos .grid-submit {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    align-items: center;
    width: 100%;
}

.formulario label.checkbox {
    display: flex;
    flex-direction: row;
    background: white;
    margin-top: 0.5rem;
    padding: 16px;
    border: none;
    border-radius: 4px;
    color: #C82E38;
    font-family: "Open Sans";
    font-size: 16px;
    gap: 10px;
    align-items: center;
    margin-top: -8px;
}

.capacisimos .formulario label.checkbox input {
    margin: 0;
}

.capacisimos .no-bg {
    background: transparent !important;
}

.capacisimos .formulario label.checkbox.no-bg span {
    color: white;
}

/* Oculta el checkbox real */
.capacisimos .formulario label.checkbox input[type="checkbox"] {
    display: none;
}

/* Estilo visual */
.capacisimos .formulario label.checkbox {
    position: relative;
    padding-left: 16px;
    cursor: pointer;
    user-select: none;
}

/* Posicionar correctamente la etiqueta externa */
.capacisimos .checkbox .wpcf7-list-item label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
    user-select: none;
}

/* Ocultar el checkbox original */
.capacisimos .checkbox .wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.capacisimos .checkbox .wpcf7-list-item-label {
    color: #C82E38 !important;
}

.capacisimos .checkbox.no-bg .wpcf7-list-item-label {
    color: #FFF !important;
    font-size: 14px;
}

/* Cuadro personalizado para el checkbox */
.capacisimos .checkbox .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #C82E38;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
}

/* ✔️ Agregar el check cuando está marcado */
.capacisimos .checkbox .wpcf7-list-item input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid #C82E38;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.capacisimos .formulario label.checkbox.no-bg .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #FFF;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.capacisimos .formulario label.checkbox.no-bg .checkmark {
    border: 1px solid #FFF;
    background: transparent;
}

.capacisimos .formulario label.checkbox.no-bg {
    padding: 0;
}

.capacisimos .formulario label.checkbox.no-bg .wpcf7-list-item input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.capacisimos .formulario label.checkbox.no-bg input:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.capacisimos .formulario .wpcf7-form-control {
    width: 100%;
    box-sizing: border-box;
    /* importante para que respete el padding sin desbordarse */
}

.capacisimos span.wpcf7-not-valid-tip {
    color: white;
}

.capacisimos label.checkbox span.wpcf7-not-valid-tip {
    position: absolute;
    bottom: -28px;
    color: white;
    left: 0;
}

.capacisimos footer {
    background: #3C181A;
    color: white;
    padding: 4rem;
}

.capacisimos footer nav {
    margin-top: 40px;
    margin-bottom: 15px;

}

.capacisimos footer nav a {
    color: #FFF;
    font-family: "Open Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    /* 185.714% */
    text-decoration: none;
}

.capacisimos footer .logos {
    display: flex;

    justify-content: center;
    align-items: center;
    gap: 40px;
}

.capacisimos footer .logos img:first-child {
    max-width: 220px;
}

.capacisimos footer .logos img:last-child {
    max-width: 480px;
}

.capacisimos footer .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 993px) {
    .capacisimos .show-desktop {
        display: block !important;
    }

    .capacisimos .show-mobile {
        display: none !important;
    }

    .capacisimos .show-tablet {
        display: none !important;
    }
}

/* Responsive */
@media (min-width: 768px) and (max-width: 992px) {

    .capacisimos .formulario .container {
        flex-direction: column;
    }

    .capacisimos .formulario .container>div:first-child,
    .capacisimos .formulario form {
        width: 100%;
    }

    .capacisimos footer .logos {
        flex-direction: column;
        align-items: flex-start;
    }

    .capacisimos .formulario button {
        align-self: stretch;
        text-align: center;
    }

    .capacisimos .text-highlight .container,
    .capacisimos .formulario-texto {
        flex: 0 0 100%;
        text-align: center;
    }

    .capacisimos .formulario-texto p br,
    .capacisimos .formulario-texto h2 br {
        display: none;
    }

    .capacisimos .benefits .container.grid-3 {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        justify-content: center;
    }

    .capacisimos .benefit {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .capacisimos .benefit:last-child {
        border-bottom: none;
    }

    .capacisimos .show-desktop {
        display: none !important;
    }

    .capacisimos .show-mobile {
        display: none !important;
    }

    .capacisimos .show-tablet {
        display: block !important;
    }
}

@media (max-width: 768px) {

    .capacisimos .benefits .container.grid-3 {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
        justify-content: center;
    }

    .capacisimos footer .logos img:last-child {
        max-width: 100%;
    }

    .capacisimos footer .container {
        gap: 5px;
    }

    .capacisimos footer nav {
        margin-top: 40px;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .capacisimos footer .logos {
        display: block;
        text-align: center;
        width: 100%;
    }

    .capacisimos footer .logos img:first-child {
        margin-bottom: 25px;
    }

    .capacisimos footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .capacisimos .grid-submit > p,
    .capacisimos .grid-submit {
        flex-direction: column !important;
    }

    .capacisimos footer .logos {
        flex-direction: column;
    }

    .capacisimos .formulario {
        text-align: center;
    }

    .capacisimos .text-highlight.padding-section {
        padding: 0px 20px;
        text-align: center;
    }

    .capacisimos .padding-section {
        padding: 0px 5px;
    }

    .capacisimos .hero-section {
        flex-direction: column;
    }

    .capacisimos .hero-left,
    .capacisimos .hero-right {
        width: 100%;
        clip-path: none;
    }

    .capacisimos .hero-right img {
        position: relative;
    }

    .capacisimos .show-desktop {
        display: none;
    }

    .capacisimos .show-mobile {
        display: block;
    }

    .capacisimos .show-tablet {
        display: none;
    }

    .capacisimos .text-highlight .container,
    .capacisimos .formulario-texto {
        flex: 0 0 100% !important;
        text-align: center;
    }

    .capacisimos .formulario button {
        margin: 0 auto;
    }
}
