@view-transition {
    navigation: auto;
}
:root {
    --primary: #0069d9;
    --secondary: #e83e8c;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --footerhg: 90px;
    --headerhg: 71px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline:none;
}
html {
    
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: var(--primary);
    color: white;
    height: var(--headerhg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

    header a h1 {
        font-size: 1.5rem;
        font-family: "Twinkle Star", cursive;
        letter-spacing: 3px;
    }
    header a, header a:visited, header a:hover {
        color: white;
        text-decoration:none;
    }
.menubtn {
    color: white;
    border: none;
    font-size: 1.4em;
    background-color: transparent;
    cursor: pointer;
    padding: 0.2em 0.6em;
    display:none;
}
.menubtn:hover {
    background-color: #00000042;
}
nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    background: white;
    text-align: center;
    padding: 4rem 4% 1% 4%;
    background-image: url(/img/dino2.webp);
    background-attachment: fixed;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    height: calc(100vh - var(--headerhg));
    height: calc(100dvh - var(--headerhg));
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    width: 100%;
    justify-items: center;
    overflow: clip;
}

    h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        text-shadow: 4px 0 #fff, -4px 0 #fff, 0 4px #fff, 0 -4px #fff, 4px 4px #fff, -4px -4px #fff, 4px -4px #fff, -4px -4px #fff;
        color: var(--secondary);
        text-align:center;
    }
    .hero p {
        text-shadow: 4px 0 #fff, -4px 0 #fff, 0 4px #fff, 0 -4px #fff, 4px 4px #fff, -4px -4px #fff, 4px -4px #fff, -4px -4px #fff;
        font-size: 1.4em;
        font-weight: bold;
    }
#heroimg {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-self: stretch;
    justify-items: center;
    width: -webkit-fill-available;
}
    #heroimg > img {
        -webkit-mask-image: url(/img/clip.svg);
        -webkit-mask-repeat: no-repeat;
        aspect-ratio: 1.4;
        object-fit: cover;
        transform: rotate(352deg);
        overflow: auto;
        max-width: 460px;
        width: 90%;
    }

.imglist {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: stretch;
    margin-bottom:26px;
   
}
    .imglist > img {
        width: 100%;
        transition: transform 0.4s ease-in-out;
    }
        .imglist > img:hover {
            transform: scale(2);
        }
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border-top-left-radius: 255px 15px;
    border-top-right-radius: 15px 225px;
    border-bottom-right-radius: 225px 15px;
    border-bottom-left-radius: 15px 255px;
    border: solid 3px #41403E;
}

section {
    padding: 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    scroll-margin-top: var(--headerhg);
    border-bottom: 1px solid #0000001c;
}

    section h3 {
        margin-bottom: 1rem;
        color: var(--primary);
    }

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    height: var(--footerhg)
}

main {
    min-height: calc(100vh - var(--headerhg) - var(--footerhg));
    padding: 20px 10px;
}

.circulo {
    border-radius: 50%;
    border: 1px solid #00000082;
    padding: 4px;
    width: 300px;
    box-shadow: 2px 2px 9px 0px #666666;
    
    aspect-ratio: 1;
    object-fit: cover;
    margin: 20px 0 30px 10px;
}
.img1 {
    float: right;
}
.polaroid {
    border: 1px solid black;
    padding: 20px 20px 60px 20px;
    border-radius: 4px;
    box-shadow: 2px 2px 3px 1px #0000004a;

    width: 300px;
    background-color: white;
}

input[type=text][name=direccion] {
    display: none;
}

p {
    margin-bottom: 20px;
    margin-bottom: 1lh;
    text-align:justify;
}
ul ul {
    margin-left: 43px;
}
li {
    margin: 7px 0px;
}
.corazon {
    width: 200px;
    height: 200px;
    background-color: #f1a3c6;
    animation: pulse 2s ease infinite;
    color: white;
    -webkit-mask-image: url(/img/heart.svg);
    position: relative;
    display: grid;
    place-items: center;
    place-content: center;
    -webkit-mask-repeat: no-repeat;
    position: absolute;
    top: 121px;
    left: 59px;
    z-index: 0;
    transform: rotate(349deg);
}
    .corazon > div {
        background-image: radial-gradient(#ef4e52 15%, #f73351 60%);
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        height: 128px;
    }

@keyframes pulse {
    0% {
        transform: rotate(349deg) scale(1);
    }

    50% {
        transform: rotate(349deg) scale(1.1);
    }

    100% {
        transform: rotate(349deg) scale(1);
    }
}

@media (width <= 927px) {

    :root {
        --headerhg: 50px;
    }

    .hero h2 {
        line-height: 40px;
    }

    header {
        height: var(--headerhg);
    }

    #heroimg {
        grid-template-columns: 1fr;
    }

    .nomovil {
        display: none;
    }

    nav {
        position: fixed;
        top: var(--headerhg);
        background-color: #0169d9e8;
        bottom: 0;
        left: 0;
        right: auto;
        height: auto;
        width: 320px;
        transition: transform 0.7s, overlay 0.7s allow-discrete, display 0.7s allow-discrete;
        transform: translateX(-320px);
        border: 1px solid var(--primary);
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 1.4em;
        padding: 20px 0 0 10px;
    }

        nav:popover-open {
            transform: translateX(0);
        }

    .menubtn {
        display: unset;
    }

    header h1 {
        font-size: 1rem !important;
    }

    .imglist {
        grid-template-columns: repeat(1, 1fr);
    }
    .corazon {
        top: -11px;
        left: -47px;
        scale: 0.3;
    }
    .img1 {
        float: none;
        display: block;
        margin: 29px auto;
    }
}

table {
    width: 100%;
    border-collapse: collapse; /* une los bordes */
}

th, td {
    border: 1px solid #333; /* bordes oscuros */
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2; /* fondo claro para cabecera */
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #fafafa; /* rayado alterno */
}
footer p{
    text-align:center;
}