﻿.btn-close {
    color: #f8f8f8 !important;
}

.div-title-section {
    margin: 110px 0 .5rem 0;
    height: auto;
    width: 100vw;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: flex-start;
    gap: 1rem;
}

    .div-title-section h1 {
        width: fit-content;
        margin: 0;
        font-family: "Barlow", serif;
        font-weight: 700;
        font-size: 45px;
        text-transform: uppercase;
        color: #333;
    }

.div-btn-atras {
    position: absolute;
    top: 110px;
    right: 7rem;
    height: 56px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

    .div-btn-atras a {
        text-decoration: none;
        color: #333;
        font-family: "Barlow", Serif;
        font-size: 20px;
        text-transform: uppercase;
    }

.container-detalle-mascota {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 100vw;
    height: fit-content;
    margin: 0 auto;
    padding: 0.5rem 6rem;
    border: none;
    position: relative;
}

.div-seccion-mascota {
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 2;
    background-color: #f8f8f8;
    width: 300px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    border-radius: 15px 0 0 15px;
    box-shadow: 0 4px 4px #3334;
}

    .div-seccion-mascota span {
        color: #907962;
        font-family: "Montserrat", serif;
        font-weight: 600;
        font-size: 25px;
    }

.div-fecha-alta-mascota {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    width: 40px;
    padding: 0.3rem;
    transition: width 0.4s ease-in-out;
    width: 300px;
    height: 50px;
    background-color: transparent;
    box-shadow: none;
}

/* Imagen centrada absoluta */
.div-imagen-fecha-alta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    background-color: #f8f8f8;
    padding: 0.5rem;
    border-radius: 15px;
}

    /* Imagen */
    .div-imagen-fecha-alta img {
        width: 40px;
        height: 40px;
        display: block;
        user-select: none;
    }

/* Texto inicial oculto */
.div-span-fecha-alta {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
    background-color: #f8f8f8;
    padding: 0.5rem;
    height: 50px;
    width: fit-content;
    border-radius: 15px;
}

    .div-span-fecha-alta span {
        color: #907962;
        font-family: "Montserrat", serif;
        font-weight: 600;
        font-size: 18px;
        user-select: none;
    }

/* Hover */
.div-fecha-alta-mascota:hover {
    width: auto; /* se ajusta al texto */
}

    .div-fecha-alta-mascota:hover .div-imagen-fecha-alta {
        opacity: 0; /* desaparece suavemente */
    }

    .div-fecha-alta-mascota:hover .div-span-fecha-alta {
        opacity: 1; /* aparece suavemente */
    }

.carousel, .div-datos-mascota {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 50%;
    /*height: 575px;*/
    height: 600px;
    overflow: hidden;
    border: none;
}

.carousel {
    border-radius: 15px 0 0 15px;
    position: relative;
}

.div-datos-mascota {
    position: relative;
    flex-direction: column;
    border-radius: 0 15px 15px 0;
    border: 1px solid #907962;
    border-left: none;
    padding: 0;
    justify-content: flex-start;
}

.div-datos-mascota .btn-reportar-publicacion {
    position: absolute;
    top: 0;
    right: 0;
}

    .div-datos-mascota .btn-reportar-publicacion img {
        width: 40px;
        opacity: 0.5;
    }

    .div-datos-mascota .btn-reportar-publicacion img:hover {
        transform: scale(1.2);
        opacity: 1;
    }

.carousel-inner {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    width: 100% !important;
    height: 100% !important;
}

.img-carousel {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    cursor: zoom-in;
}

.carousel-control-next {
    filter: drop-shadow(1px 1px 2px #000) !important;
    width: 40px !important;
    background: linear-gradient(to right, transparent, #0005);
}

.carousel-control-prev {
    filter: drop-shadow(-1px 1px 2px #000) !important;
    width: 40px !important;
    background: linear-gradient(to left, transparent, #0005);
}

.titulo {
    font-family: "Barlow", serif;
    font-weight: 700;
    font-size: 45px;
    text-transform: uppercase;
    color: #333;
    width: 100%;
    max-width: 100%;
}

.subtitulo {
    font-family: "Barlow", serif;
    font-weight: 600 !important;
    font-size: 22px;
    color: #333;
    text-transform: capitalize;
}

    .subtitulo input {
        width: 100%;
        max-width: 160px !important;
        max-height: 30px !important;
        background-color: transparent;
        border: none;
        color: #333;
        font-weight: 500;
    }

label.subtitulo {
    font-size: 25px !important;
}

.texto {
    font-family: "Montserrat", serif;
    font-weight: 400 !important;
    font-size: 20px;
    color: #333;
    text-transform: capitalize;
}

span, input {
    cursor: default;
    caret-color: transparent; /* Oculta el cursor */
}

input:focus-visible {
    outline: none !important;
}

.div-1, .div-2, .div-3, .div-4 {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 100%;
    height: fit-content;
    padding: 0 2rem;
}

.div-2, .div-3, .div-4 {
    margin-top: 0.5rem;
}

.div-1 {
    flex-direction: column;
    height: 120px;
    align-items: flex-start;
    gap: 0;
}

    .div-1 h1 {
        margin: 0 !important;
    }

        .div-1 h1 input {
            text-transform: uppercase;
        }

    .div-1 .texto {
        width: 100%;
        display: flex;
    }

    .div-1 input {
        background-color: transparent;
        border: none;
        color: #333;
        font-weight: 600;
    }

    .div-1 textarea {
        font-size: 16px !important;
        width: 100%;
        max-width: 100%;
        min-height: 40px;
        max-height: 40px;
        background-color: #f8f8f8;
        border: none;
        resize: none;
        padding: .3rem;
        font-weight: 500 !important;
        cursor: pointer;
        caret-color: transparent;
    }

    .div-1 textarea:focus-visible {
        outline: none !important;
    }

        .div-1 textarea:visited {
            text-decoration: none !important;
        }

.div-2 {
    flex-direction: column;
    padding: 0 2rem !important;
}

    .div-2 .div-ul {
        display: flex;
        justify-content: center;
        align-content: center;
        align-items: center;
        width: 100%;
        height: fit-content;
        gap: 10px;
    }

    .div-2 ul {
        width: 100%;
        display: flex;
        gap: 5px;
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        align-items: center;
    }

    .div-2 .ul-2 {
        justify-content: flex-start !important;
    }

    .div-2 ul li {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .div-2 ul li img {
            width: 30px;
            height: 30px;
            max-width: 30px;
            max-height: 30px;
            overflow: hidden;
        }

    .div-2 .div-link-externo {
        width: 100%;
        margin: 5px 0 0 0;
        display: flex;
        gap: 6px;
        justify-content: flex-start;
        align-content: center;
        align-items: center;
    }

        .div-2 .div-link-externo img {
            width: 30px;
            height: 30px;
            max-width: 30px;
            max-height: 30px;
        }

    .div-2 .link-externo {
        display: flex;
        max-height: 35px;
        width: fit-content;
        max-width: 100%;
        border: none;
        background-color: transparent;
        text-transform: none !important;
        cursor: pointer;
        caret-color: transparent;
        font-weight: 500 !important;
    }

    .div-2 .link-externo:focus-visible {
        outline: none !important;
    }

        .div-2 .link-externo:visited {
            text-decoration: none !important;
        }

.div-3, .div-4 {
    flex-direction: column;
}

    .div-3 label, .div-4 label {
        width: 100%;
    }

    .div-3 .texto {
        max-height: 75px;
        overflow: scroll;
        font-size: 16px;
        scroll-behavior: smooth;
        border: 1px solid #907962;
        border-radius: 10px;
        padding: 0.5rem 1rem;
        min-height: 75px;
        min-width: 100%;
    }

    .div-4 ul {
        width: 100%;
        gap: 0.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        list-style: none;
        padding: 0 0.4rem;
        margin: 0;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .div-4 .ul-2 {
        justify-content: flex-end !important;
    }

    .div-4 ul li {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }

    .div-4 img {
        width: 30px;
        height: 30px;
        max-width: 30px;
        max-height: 30px;
    }

    .div-4 li.texto {
        font-size: 20px !important;
    }

    .div-4 ul li input {
        width: 100%;
        max-width: 235px !important;
        max-height: 35px !important;
        background-color: transparent;
        border: none;
        color: #333;
        font-weight: 500;
    }

@media (min-width: 769px) and (max-width: 1269px) {
    .div-title-section {
        margin-top: 140px;
    }

    .div-btn-atras {
        top: 140px;
    }
}

@media (max-width: 999px) {
    .div-btn-atras {
        position: relative;
        top: 0;
        left: 0;
        width: 100vw;
        display: flex;
        justify-content: flex-start;
        padding-left: 145px;
    }

    .container-detalle-mascota {
        padding: 0.5rem 0 !important;
        flex-direction: column !important;
        min-width: 350px;
    }

    .carousel, .div-datos-mascota {
        width: 70%;
        height: 300px;
    }

    .carousel {
        border-radius: 15px 15px 0 0 !important;
    }

    .div-datos-mascota {
        flex-direction: column;
        border-radius: 0 0 15px 15px;
        border-left: 1px solid #907962;
        border-top: none;
        height: 575px !important;
    }

    .div-fecha-alta-mascota {
        bottom: 0;
        width: fit-content;
        height: fit-content;
        padding: 0;
        border-radius: 0;
    }

    .div-imagen-fecha-alta {
        display: none !important;
    }


    .div-span-fecha-alta {
        opacity: 1 !important;
        height: fit-content;
        width: 225px;
        border-radius: 15px 15px 0 0 !important;
    }

        .div-span-fecha-alta span {
            font-size: 13px;
        }
}

@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .div-title-section {
        min-width: 350px;
    }

    .div-btn-atras {
        padding-left: 30px;
    }

    .carousel, .div-datos-mascota {
        width: 95%;
    }

        .div-datos-mascota .btn-reportar-publicacion img {
            opacity: 1 !important;
        }

        .div-datos-mascota .btn-reportar-publicacion img:hover {
            transform: scale(1) !important;
        }

    .div-4 li.texto {
        font-size: 16px !important;
    }

    .subtitulo {
        font-size: 18px;
    }

    .div-1 h6 input {
        max-width: 275px;
    }

    .div-1 textarea {
        font-size: 14px !important;
    }

    .container-detalle-mascota {
        width: 90% !important;
        min-width: 350px !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
}
