* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100% !important;
    height: 100vh;
}

.carta-galeria-titulo {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-blue);
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-family: 'sourceSansProBold', Arial, sans-serif;
}

/* Flechas para cambiar imagen dentro del grupo */
.modal-galeria-arrow-img {
    background: #003973;
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: relative;
    top: 0;
}

.modal-galeria-arrow-img:hover {
    background: #C7893E;
}

/* Flechas para cambiar de grupo/contenedor */
.modal-galeria-arrow-grupo {
    background: #C7893E;
    color: #fff;
    border: none;
    font-size: 2.8rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-galeria-arrow-grupo:hover {
    background: #003973;
}

.modal-galeria-arrows-container {
    margin-top: 2rem;
}

/* Modal de galería de cartas */
.modal-galeria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}


/* SIEMPRE flechas azules abajo del contenedor de la imagen */
.modal-galeria-img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70vh;
    gap: 0.5rem;
}

.modal-galeria-img-container-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.modal-galeria-img-container img {
    max-width: 90vw;
    max-height: 68vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.modal-galeria-arrows-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0 1rem 0;
}

.modal-galeria-arrow {
    background: #003973;
    color: #fff;
    border: none;
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-galeria-arrow:hover {
    background: #C7893E;
}

.modal-galeria-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
}



/* Grid de cartas para galeriaCartas */
.cartas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    margin: 2rem auto;
    max-width: 1100px;
}

.carta-galeria {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.carta-galeria-img {
    width: 100%;
    max-width: 320px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.carta-galeria:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
    .cartas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cartas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .carta-galeria-img {
        max-width: 98vw;
        height: 140px;
    }
}

/* Nueva galería y modal: estructura moderna y accesible */
.gallery-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.gallery-item img {
    width: 100%;
    max-width: 320px;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item img:focus,
.gallery-item img:hover {
    outline: 2px solid #003973;
    transform: scale(1.04);
}

.gallery-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-align: center;
    color: #003973;
    background: #f7f7f7;
    width: 100%;
}

/* Modal estilos */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal[style*="display: flex"] {
    display: flex !important;
}

.modal img {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.modal-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #003973;
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.85;
    transition: background 0.2s;
}

.modal-arrow:hover {
    background: #C7893E;
}

#modalPrev {
    left: 2rem;
}

#modalNext {
    right: 2rem;
}

@media (max-width: 600px) {
    .gallery-item img {
        max-width: 100vw;
        height: 140px;
    }

    .modal img {
        max-width: 98vw;
        max-height: 50vh;
    }

    .modal-close,
    #modalPrev,
    #modalNext {
        top: 1rem;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    #modalPrev {
        left: 1rem;
    }

    #modalNext {
        right: 1rem;
    }
}

:root {
    --color-blue: #003973;
    --color-dorado: #C7893E;
}

h1 {
    font-family: "sourceSansProBold";
}



h3 {
    font-family: "sourceSansProRegular";
}

h4 {
    font-family: "sourceSansProRegular";
}

p {
    font-size: 16px;
    font-family: "sourceSansProRegular";
}



p {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
}












h2 {
    font-family: 'Ludotek';
    margin: 20px;
    color: var(--color-blue);
}



section.galeria .row {
    color: var(--color-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0 auto 2rem auto;
    max-width: 900px;
}

section.galeria .row p {
    color: var(--color-blue) !important;
}

.tabs>input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 5px;
    margin: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.tabs:has(:checked:nth-of-type(1)) {
    --active: 0;
}

.tabs:has(:checked:nth-of-type(2)) {
    --active: 1;
}

.tabs:has(:checked:nth-of-type(3)) {
    --active: 2;
}

.tabs:has(:checked:nth-of-type(4)) {
    --active: 3;
}

.tabs :checked+label {
    --highlight: 1;
}

.tabs:has(input:nth-of-type(2)) {
    --count: 2;
}

.tabs:has(input:nth-of-type(3)) {
    --count: 3;
}

.tabs:has(input:nth-of-type(4)) {
    --count: 4;
}

.tabs label {
    padding: 0 clamp(0.5rem, 2vw + 0.25rem, 2rem);
    cursor: pointer;
    text-align: center;
    height: 100%;
    display: grid;
    border-radius: calc(var(--radius) - var(--border));
    place-items: center;
    color: white;
    transition: background, color;
    transition-duration: 0.25s;
    transition-timing-function: var(--ease, ease);
}

input:not(:checked)+label:hover {
    --highlight: 0.35;
    background: hsl(0 0% 20%);
}

.tabs::after {
    pointer-events: none;
    content: "";
    width: calc(100% / var(--count));
    height: 100%;
    /* background: hsl(0 0% 100%);*/
    position: absolute;
    border-radius: calc(var(--radius) - var(--border));
    mix-blend-mode: difference;
    translate: calc(var(--active, 0) * 100%) 0;
    transition: translate, outline-color;
    transition-duration: var(--speed);
    transition-timing-function: var(--ease, ease);
    outline: 2px solid transparent;
}
























section.galeriaNueva {
    min-height: 100vh;
    padding-top: 150px;

}





.hero-portfolio--grid {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    position: relative;
    top: -10vh;
    margin: auto;

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

.c-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    transition: all 250ms ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    display: flex;
    height: 250px;

}

.c-card--figure {
    position: relative;
    width: 75%;
    height: 75%;
    margin: 0;
}

.c-card--image {
    max-width: 100%;
    object-fit: fill;
    justify-content: center;
    align-items: center;
    display: block;
    opacity: 1 !important;
}

.c-card--name {
    position: absolute;
    top: auto;
    bottom: 1rem;
    left: 0.5rem;
    font-size: 1em;
    color: white;
    background-color: #003973;
    padding: 5px;
}

.c-card.no-focus {
    filter: grayscale(100%);
}

.c-card.is-focus .c-card--image {
    transition: all 250ms ease-in-out;
}

.ed-modal-content {
    width: auto;
    max-height: 90vh;
    min-width: 100%;
    margin: auto;
    position: relative;
    top: -3rem;
    opacity: 0;

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



.ed-modal-content--section {
    background-color: transparent;
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
    border: transparent;
}

.ed-modal-content--image {
    object-fit: contain;
    width: 100%;
    max-width: 600px;
    max-height: 60vh;
    display: block;
    margin: 0 auto 1.5rem auto;
}

/* Flechas de navegación en el modal */
.ed-modal-arrow {
    position: static;
    margin: 0 1rem;
    background: #003973;
    color: #fff;
    border: none;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}

.ed-modal-arrow-left {
    left: unset;
}

.ed-modal-arrow-right {
    right: unset;


}

.ed-modal-arrows {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}

.ed-modal-arrows {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .ed-modal-content--image {
        max-width: 95vw;
        max-height: 40vh;
    }

    .ed-modal-content--section {
        min-width: 95vw;
    }
}

.ed-modal-arrow:hover {
    background: #C7893E;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.ed-modal-container {
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    opacity: 0;
    z-index: 2000;

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

.ed-modal-container::before {
    content: 'X';
    color: #fff;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 1.5em;
    opacity: .5;


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

.ed-modal-container:hover::before {
    cursor: pointer;
    opacity: 1;



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

.ed-modal-container.is-active {
    animation-name: modalInyect;
    animation-duration: 340ms;
    opacity: 1;



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

.ed-modal-container.is-active .ed-modal-content {
    animation-name: modalInyectContent;
    animation-duration: 540ms;
    top: 0;
    opacity: 1;



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

.ed-modal-container.is-remove {
    animation-name: modalRemove;
    animation-duration: 340ms;
}

.ed-modal-container.is-remove .ed-modal-content {
    animation-name: modalRemoveContent;
    animation-duration: 340ms;



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

.c-menuBurguer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 220px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    align-items: center;
}

.c-menuBurguer--Item {
    display: block;
    width: 30px;
    height: 3px;
    margin: 0 0 5px;
    background-color: var(--color_2-dark);
    transition: transform 150ms ease-in-out;
}

.c-menuBurguer:hover .c-menuBurguer--Item:nth-child(2) {
    transform: translateX(5px);
}

.c-menuBurguer.is-active .c-menuBurguer--Item:first-child {
    width: 30px;
    transition-delay: 0.2s;
    transform: rotate(45deg);
    transform-origin: 10% 0%;
}

.c-menuBurguer.is-active .c-menuBurguer--Item:nth-child(2) {
    transform: translateX(40px);
    opacity: 0;
}

.c-menuBurguer.is-active .c-menuBurguer--Item:nth-child(3) {
    width: 30px;
    transition-delay: 0.4s;
    transform: rotate(-45deg);
    transform-origin: 10% 100%;
}

@keyframes modalRemove {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalRemoveContent {
    from {
        opacity: 1;
        top: 0;
    }

    to {
        opacity: 0;
        top: -3rem;
    }
}

@keyframes modalInyect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalInyectContent {
    from {
        opacity: 0;
        top: -3rem;
    }

    to {
        opacity: 1;
        top: 0;
    }
}