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

.bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.site-inner {
    padding: 0 !important;
    margin: 0 !important;
    float: unset !important;
    max-width: unset !important;
}

a {
    text-decoration: none;
}

.site-inner .content {
    width: 100% !important;
}

section.friends {
    background-color: var(--chef-bg);
    color: var(--white);
    padding: 3rem 15px;
}

section.friends a {
    color: var(--link-color);
}

section.friends img {
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 5rem;
    filter: grayscale(1);
}

section.friends section.list.chef {
    display: grid;
    gap: 80px 20px;
    grid-template-columns: repeat(2, minmax(500px, 1fr));
    place-items: start center;
    place-content: start center;
}

section.friends section.list.chef article {
    text-align: center;
    display: grid;
    gap: 2rem;
}

section.friends section.list.chef article .content p {
    text-wrap: balance;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
    color: var(--chef-content);
    font-size: 18px;
    margin: 0;
}

section.friends section.list.chef article h2 {
    color: var(--chef-title);
    margin: 0;
}

section.friends section.list.chef article h2,
section.friends section.list.chef article h2 a {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

section.friends section.list.chef article h2 a {
    color: var(--link-color);
}

section.bio .bio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding: 2rem 15px;
    place-content: center;
    place-items: start center;
    gap: 20px;
}

.talentos-page .image img,
.servicios-page .page-intro .image img,
section.list.colaborador img,
section.bio .bio-container .content-container img,
section.bio .bio-container .image {
    width: auto;
    height: auto;
    overflow: hidden;
    position: relative;
}

.talentos-page .image img,
.servicios-page .page-intro .image img,
section.list.colaborador img,
section.bio .bio-container .content-container img,
section.bio .bio-container .image img {
    transition: transform 1s ease-in-out;
}

.talentos-page .image img:hover,
.servicios-page .page-intro .image img:hover,
section.list.colaborador img:hover,
section.bio .bio-container .content-container img:hover,
section.bio .bio-container .image img:hover {
    transform: scale(1.1);
}

section.bio .bio-container .content-container img {
    margin: auto;
    display: block;
    max-width: 480px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

section.bio .bio-container p,
section.bio .bio-container a {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

section.bio .bio-container a {
    color: var(--link-color);
}

section.bio .bio-container p {
    color: var(--bio-color);
}

section.bio .bio-container p:has(a) {
    margin: 0;
}

section.bio .bio-container p:last-of-type a {
    color: var(--more-info);
    font-size: 14px;
    font-family: 'PT Sans', sans-serif;
    position: relative;
    display: flex;
    flex-flow: row;
    justify-content: end;
    align-items: center;
    gap: 5px;
}

section.bio .bio-container p:last-of-type a::before {
    content: "";
    position: relative;
    right: 5px;
    background-image: url('https://erlantzgorostiza.desarrollocrokis.com/wp-content/uploads/2026/09/envelope.svg');
    height: 15px;
    width: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
}

section.list.colaborador {
    padding: 2rem 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    place-content: center;
    place-items: center;
    gap: 40px 0;
    max-width: 1280px;
    margin: auto;
}

section.list.colaborador img {
    max-width: 300px;
    object-fit: contain;
}

.title-card {
    width: 100%;
    /* El resto de estilos de tu tarjeta */
}

/* SOLO ESTA PARTE GIRA */
.flip-area {
    position: relative;
    width: 100%;
    height: 120px;
    perspective: 1000px;
}

/* Las dos caras */
.flip-front,
.flip-back {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transition: transform 0.7s ease;
}

/* Delante */
.flip-front {
    transform: rotateY(0deg);
}

.flip-front h2 {
    text-transform: uppercase;
    font-size: 32px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}



/* Detrás */
.flip-back {
    transform: rotateY(180deg);
}

/* Al pasar el ratón SOLO GIRA flip-area */
.flip-area:hover .flip-front {
    transform: rotateY(180deg);
}

.flip-area:hover .flip-back {
    transform: rotateY(0deg);
}

section.contacto {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-content: start center;
    place-items: start center;
}

section.contacto > * {
    padding: 3rem 15px;
    height: 100%;
    width: 100%;
}

.contact-downloads {
    color: var(--download-color);
    background-color: var(--download-bg);
}

section.ficheros {
    display: grid;
    gap: 1rem;
}

section.contact-list {
    display: grid;
    gap: 1.5rem;
}

article.contact-info {
    display: grid;
    gap: 5px;
}

article.contact-info p {
    margin: 0;
    letter-spacing: 4px;
    color: var(--grey);
}

.inner-contact-downloads,
.inner-contact-form {
    max-width: 80%;
    margin: auto;
    width: 100%;
}

.inner-contact-downloads {
    display: grid;
    gap: 3rem;
}

section.contacto h2,
section.contacto h3 {
    font-family: 'Lato', sans-serif;
    color: var(--download-title);
}

section.contacto h2 {
    font-size: 28px;
}

section.contacto h3 {
    font-size: 16px;
    letter-spacing: 4px;
}

section.contacto .page-intro h3 {
    color: var(--chef-content);
    font-size: 20px;
}

section.contacto a {
    color: var(--link-color);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}


.contact-info h2 {
    position: relative;
}

.files-info h2 {
    position: relative;
}

.contact-info h2::before,
.files-info h2::before {
    content: "";
    position: absolute;
    height: 30px;
    width: 30px;
    border-radius: 4rem;
    background-color: var(--title-detail-bg);
    display: block;
    left: -45px;
    background-size: 15px;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-info h2::before {
    background-image: url('https://erlantzgorostiza.desarrollocrokis.com/wp-content/uploads/2026/09/envelope-1.svg');
}

.files-info h2::before {
    background-image: url('https://erlantzgorostiza.desarrollocrokis.com/wp-content/uploads/2026/09/download.svg');
}

.gform_required_legend {
    display: none !important;
}

textarea {
    resize: vertical !important;
}

button#gform_submit_button_1 {
    background-color: var(--footer-color) !important;
}

.contacto-banner h2 {
    font-family: 'Lato', sans-serif;
    letter-spacing: 4px;
    font-size: 28px;
    color: var(--bio-color);
    margin: 0;
    font-weight: 300;
}

.contacto-banner p {
    margin: 0;
    font-family: 'Lato', sans-serif;
    letter-spacing: 4px;
    font-size: 20px;
    color: var(--contacto-banner-color);
}

.contacto-banner a {
    font-size: 14px;
    letter-spacing: 0;
    border-radius: 3rem;
    padding: 5px 25px;
    border: solid 1px var(--contacto-banner-color);
    color: var(--contacto-banner-color);
}

.banner.bg-image.contacto-banner.text-center .content,
.banner.bg-image.contacto-banner.text-center {
    display: grid;
    gap: 1rem;
}

.talento-page .banner.bg-image.contacto-banner.text-center {
    padding: 3rem 15px 6rem;
}

.banner.bg-image.contacto-banner.text-center .content {
    gap: 2rem;
}

.banner.bg-image.contacto-banner.text-center {
    padding: 2rem 15px 3rem;
}

section.textos-page {
    max-width: 1280px;
    margin: auto;
    width: 100%;
    padding: 2rem 15px 3rem;
}

section.textos-page > h2 {
    text-transform: uppercase;
}

section.textos-page h1,
section.textos-page h2,
section.textos-page h3,
section.textos-page h4,
section.textos-page h5,
section.textos-page h6 {
    margin: 20px 0;
    font-family: 'Lato', sans-serif;
}

section.textos-page ol,
section.textos-page ul {
    padding: revert;
    margin: 0 0 20px;
}

section.textos-page ol li {
    list-style-type: numeric;
}

section.textos-page ul li {
    list-style-type: disc;
}

section.textos-page li {
    margin: 0 0 5px;
}

section.textos-page p {
    margin: 0 0 20px;
}

section.textos-page p,
section.textos-page li,
section.textos-page span,
section.textos-page a,
section.textos-page blockquote {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

article.servicio .image {
    border-radius: 4rem;
    background-color: var(--black);
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
}

article.servicio img {
    filter: invert(1);
    max-width: 20px;
}

article.servicio.title-card {
    background-color: var(--servicio-card-color);
    width: 100%;
    overflow: hidden;
}

article.servicio.title-card h2 {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

article.servicio.title-card.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

article.servicio.title-card .flip-front {
    gap: 1rem;
    height: 100%;
    flex-flow: column;
}

article.servicio.title-card .flip-area {
    inset: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    position: relative;
    display: grid;
    place-content: center;
    place-items: center;
}

article.servicio.title-card .flip-back {
    background-color: var(--black);
    color: var(--white);
}

article.servicio.title-card .flip-back p {
    text-wrap: balance;
    margin: 0;
}

section.list.servicio.bg-image {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(266px, 1fr));
    gap: 30px;
    padding: 65.5px 30px;
}


.servicios-page .page-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    place-content: stretch center;
    place-items: stretch center;
    background-color: var(--black);
    color: var(--servicio-content-color);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.servicios-page .page-intro > * {
    padding: 2rem 15px 6.25rem;
}

.servicios-page .page-intro .content a {
    color: var(--white);
    text-transform: uppercase;
    font-size: 18px;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    display: flex;
    flex-flow: row;
    justify-content: end;
    align-items: center;
    gap: 10px;
}

.servicios-page .page-intro .content a img {
    height: 20px;
    filter: invert(1);
}

.servicios-page .page-intro .image {
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    place-content: center;
}

article.servicio.title-card .flip-back h3 {
    text-transform: uppercase;
}

article.servicio.title-card .flip-back a {
    color: var(--link-color);
}


section.list.talento {
    display: grid;
    grid-template-columns: 1fr;
    padding: 3rem 0;
}

section.list.talento article {
    padding: 3rem 15px;
}

section.list.talento article .inner-content {
    display: grid;
    place-items: start center;
    place-content: start center;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1920px;
    margin: auto;
}

section.list.talento article img {
    max-width: 400px;
    width: 100%;
    width: 400px;
    height: 400px;
    object-fit: cover;
}

section.list.talento article .image-container {
    position: sticky;
    top: 2rem;
}

section.list.talento article:nth-of-type(odd) {
    background-color: var(--white);
    direction: rtl;
    text-align: left;
}

section.list.talento article p {
    text-indent: 2rem;
}

section.list.talento article:nth-of-type(odd) p {
    direction: ltr;
}

section.list.talento article:nth-of-type(even) {
    background-color: var(--black);
    color: var(--white);
}

section.list.talento details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    direction: ltr;
    width: fit-content;
    margin-inline: auto;
    padding: .5rem 0;
    user-select: none;
}

/* Safari / Chrome antiguos */
section.list.talento details > summary::-webkit-details-marker {
    display: none;
}

section.list.talento details > summary::before {
    content: "+";
    display: grid;
    place-items: center;
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform .3s ease, background-color .3s ease;
}

section.list.talento article:nth-of-type(odd) details > summary::before {
    border: solid 1px var(--grey);
    color: var(--grey);
}


section.list.talento article:nth-of-type(even) details > summary::before {
    border: solid 1px var(--white);
    color: var(--white);
}

section.list.talento details[open] > summary::before {
    content: "−";
    transform: rotate(180deg);
}

section.list.talento article:nth-of-type(odd) details[open] > summary::before {
    color: var(--grey);
}

section.list.talento article:nth-of-type(even) details[open] > summary::before {
    color: var(--white);
}

section.list.talento details::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        block-size .45s cubic-bezier(.4, 0, .2, 1),
        opacity .3s ease,
        content-visibility .45s allow-discrete;
}

section.list.talento details[open]::details-content {
    block-size: auto;
    opacity: 1;
}

section.list.talento article {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: var(--chef-content);
}

section.list.talento article h2 {
    font-family: 'Lato', sans-serif;
    margin: 0 0 10px;
    font-size: 32px;
}

section.list.talento article h3 {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 4px;
    margin: 0 0 30px;
    font-size: 16px;
}

section.noticias-page {
    padding: 0 0 4rem;
}

section.list.post {
    display: grid;
    max-width: 1280px;
    margin: auto;
    width: 100%;
    grid-template-columns: repeat(3, minmax(400px, 1fr));
    gap: 30px;
    padding: 3rem 15px 5rem;
    grid-template-rows: minmax(100px, 1fr);
    place-content: center start;
    place-items: start stretch;
}

section.list.post a {
    color: var(--link-color);
}

section.list.post span.category a {
    text-transform: uppercase;
}

section.list.post article {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform .3s;
    display: grid;
    gap: 1rem;
}

section.list.post article:hover {
    transform: translateY(-10px);
}

section.list.post article h2 {
    color: var(--link-color);
    font-size: 30px;
    font-family: 'Lato', sans-serif;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

section.list.post article span {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.paginator {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.paginator a {
    color: var(--link-color);
}

section.noticia-page {
    max-width: 1280px;
    margin: auto;
    width: 100%;
    padding: 3rem 15px 5rem;
}

section.noticia-page h1 {
    font-size: 30px;
    font-family: 'Lato', sans-serif;
    color: var(--link-color);
    margin: 40px 0 20px;
}

section.noticia-page span,
section.noticia-page li,
section.noticia-page p {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    margin: 0 0 14px;
}

section.noticia-page span {
    font-size: 14px;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;

    max-width: 1280px;
    max-height: 500px;
    overflow: hidden;
}

.post-gallery img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.noticia-page .image {
    margin: 0 auto 30px;
    display: grid;
    place-items: center;
}

input, select, textarea {
    border: solid 1px var(--grey) !important;
}

form .gform-field-label__text, form label, .gfield_required.gfield_required_custom {
    color: var(--label) !important;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

@media(max-width: 1050px) {
    section.friends section.list.chef {
        gap: 80px 0;
        grid-template-columns: 1fr;
    }
}

@media(max-width: 885px) {
    section.bio .bio-container {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 800px) {
    .servicios-page .page-intro {
        grid-template-columns: 1fr;
    }

    .servicios-page .page-intro > * {
        padding: 1rem 15px;
    }

    section.list.servicio.bg-image {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(266px, 1fr));
    }

    article.servicio.title-card .flip-back {
        padding: 10px;
        font-size: smaller;
    }
}

@media(max-width: 780px) {
    section.contacto {
        display: flex;
        flex-flow: column;
    }
}

@media(max-width: 700px) {

    section.list.colaborador {
        grid-template-columns: 1fr;
    }

    section.list.colaborador img {
        max-width: 350px;
        width: 100%;
        object-fit: contain;
    }

}

