/* VARIABLES */
:root {
    --colorOscuro: #5e103a;
    --colorMedio: #c01c5e;
    --colorClaro: #f369a7;
    --colorTexto: #efdae4;
}

/* CORE Y TIPOGRAFIA BASE */
.core {
    margin: 2rem 8rem;
    color: var(--colorTexto);
    line-height: 1.5;
    text-align: justify;
    font-size: large;
}

.core p {
    margin-top: 2rem;
}

.core h1 {
    font-family: 'Bubblegum sans', sans-serif;
    font-size: 2.5rem;
    color: var(--colorMedio);
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.8));
    text-align: center;
    border-top: solid 2px var(--colorMedio);
    border-bottom: solid 2px var(--colorMedio);
    clear: both;
}

/* HEADER */
.header-principal {
    width: 100%;
    height: 50vh;
    background-color: #1e1e1e;
    background-image: 
        linear-gradient(to bottom, #1e1e1e 0%, rgba(30,30,30,0) 10%, rgba(30,30,30,0) 90%, #1e1e1e 100%),
        linear-gradient(to right, #1e1e1e 10%, rgba(30,30,30,0) 25%, rgba(30,30,30,0) 75%, #1e1e1e 88%),
        url('/Img/index/headerindex.png');
    background-size: 100% 100%, 100% 100%, 80% auto;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

.header-principal .letra-3d {
    font-family: 'Bubblegum sans', sans-serif;
    font-size: 3.5rem;
    font-weight: bolder;
    background: radial-gradient(circle at 50% 50%, var(--colorClaro) 10%, var(--colorMedio) 60%, var(--colorOscuro) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.8));
}

/* IMAGENES */
.imagen-izquierda {
    float: left;
    width: 40%;
    height: auto;
    margin: 0.35rem 1.5rem 1rem 0;
    border-radius: 1rem;
}

.imagen-derecha {
    float: right;
    width: 40%;
    height: auto;
    margin: 0.35rem 0 1rem 1.5rem;
    border-radius: 1rem;
}

.imagen-centrada {
    display: block;
    width: 40%;
    height: auto;
    margin: 2rem auto;
    border-radius: 1rem;
}

.camara-core .imagen-izquierda,
.camara-core .imagen-derecha {
    width: min(18%, 150px) !important;
    height: auto !important;
    max-height: 150px !important;
    object-fit: contain !important;
    border-radius: 1rem !important;
}

.camara-core .imagen-centrada {
    clear: both !important;
    width: min(54%, 480px) !important;
    max-height: 300px !important;
    object-fit: contain !important;
    border-radius: 1rem !important;
}

/* RELATOS: LISTA Y TARJETAS */
.relatos-lista {
    display: flex;
    flex-direction: column;
}

.relato-card {
    border-bottom: solid 2px var(--colorMedio);
    padding: 0 0 2rem;
    margin-bottom: 2rem;
}

.relato-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.core .relato-card h1 {
    font-family: 'Bubblegum sans', sans-serif;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.8));
    font-size: 2.5rem;
    text-align: left;
    border: 0;
}

.relato-card p {
    margin-top: 2rem;
    color: var(--colorTexto);
    line-height: 1.5;
    text-align: justify;
    font-size: large;
}

/* RELATOS: NAVEGACION INFERIOR */
.navegacion-relato {
    display: flex;
    justify-content:center;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--colorMedio);
    gap: 1rem;
}

.navegacion-relato a {
    display: inline-block;
    padding: 0.2rem 1.2rem;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    background-color: transparent;
    color: var(--colorMedio);
    text-decoration: none;
    font-family: 'baloo 2', sans-serif;
    font-weight: lighter;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.8));
    font-size: 1.1rem;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.navegacion-relato a:hover {
    background-color: var(--colorMedio);
    color: #1e1e1e;
}

/* RELATOS: PAGINACION */
.paginacion-relatos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    color: var(--colorMedio);
    font-family: 'baloo 2', sans-serif;
    font-size: 1.2rem;
}

.paginacion-relatos button {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    background-color: white;
    color: var(--colorMedio);
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.paginacion-relatos button:disabled {
    cursor: default;
    opacity: 0.45;
}

/* CONTACTO */
.contacto-core {
    max-width: 760px;
    margin: 2rem auto;
}

.contacto-titulo {
    margin-bottom: 3rem;
}

.core .contacto-titulo {
    border-top: 0;
    border-bottom: solid 2px var(--colorMedio);
    text-align: center;
}

.contacto-intro {
    max-width: 570px;
    margin: 3rem auto 2rem;
    color: var(--colorTexto);
}

.contacto-contenido {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 4rem;
    align-items: start;
}

.contacto-info h2,
.form_container h2 {
    font-family: 'Bubblegum sans', sans-serif;
    font-size: 2rem;
    color: var(--colorMedio);
    margin-bottom: 1.5rem;
}

.contacto-email {
    display: inline-block;
    margin-bottom: 1.75rem;
    color: var(--colorClaro);
    text-decoration: none;
}

.contacto-redes {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contacto-redes img {
    height: 28px;
    width: auto;
    display: block;
    background-color: white;
    border: 1px solid var(--colorMedio);
    border-radius: 5px;
    padding: 3px;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.campo label {
    color: var(--colorTexto);
    font-family: 'baloo 2', sans-serif;
    font-weight: 800;
}

.campo label span {
    font-size: 0.85rem;
    font-weight: 400;
}

.campo input,
.campo textarea {
    width: 100%;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    background-color: white;
    color: var(--colorOscuro);
    font: inherit;
    padding: 0.7rem;
}

.campo input {
    height: 44px;
}

.campo textarea {
    min-height: 150px;
    resize: vertical;
}

.boton-enviar {
    min-height: 44px;
    border: 2px solid var(--colorMedio);
    border-radius: 6px;
    background-color: var(--colorMedio);
    color: #1e1e1e;
    font-family: 'baloo 2', sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.boton-enviar:hover {
    background-color: var(--colorClaro);
}

.izq-img {
    float: left;
    height: 25vh;  /* Ocupa exactamente el 15% del alto de la ventana visible */
    width: auto;   /* Mantiene la proporción original de cada foto individual */
    border-radius: 1rem;
    margin: 0 1.5rem 1rem 0; /* Margen para que el texto no la pise */
}

.dch-img {
    float: right;
    height: 35vh;
    width: auto;
    border-radius: 1rem;
    margin: 0 0 1rem 1.5rem;
}
.todas {
    clear: both; /* Esto ignora cualquier imagen flotante de arriba y fuerza una línea nueva limpia */
    display: block; /* Obligatorio para que funcione el centrado real */
    height: 40vh; /* Bastante más grande que el 15vh de las anteriores */
    width: auto;
    margin: 4rem auto 2rem auto; /* 4rem arriba (mucha separación), auto a los lados (centrado perfecto) */
    border-radius: 1rem;
}

/* RESPONSIVE MOVILES */
@media (max-width: 760px) {
    
    /* Core y Contenedores */
    .core {
        margin: 1.5rem;
    }

    .contacto-core {
        margin: 2rem;
    }

    .contacto-contenido {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Header */
    .header-principal {
        height: 35vh;
        padding-bottom: 1rem;
    }

    .header-principal .letra-3d {
        font-size: 2rem;
    }

    /* Navegacion Principal */
    .nav {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        justify-items: center;
        text-align: center;
    }

    .titulo {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .enlaces {
        grid-column: 1;
        grid-row: 2;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .subtitulo, 
    .nav-search-container {
        display: none;
    }

    /* Botones Relatos */
    .navegacion-relato {
        flex-direction: column;
        width: 100%;
    }

    .navegacion-relato a {
        width: 100%;
    }

    /* Imagenes */
    .imagen-puente {
        float: none;
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto 1.5rem auto;
    }


}
