@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root{
    --color-1: #01b7b7;
    --color-2: #ffb67c;
    --color-3: #333;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Merriweather Sans", sans-serif;
    line-height: 1.6;
    color: var(--color-3);
    background-color: #f4f7f6;
}

/* NAVBAR SUPERIOR */
header {
    background: #f4f7f6;
    padding: 0.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    img{
        height: 50px;
    }
    ul {
    display: flex;
    list-style: none;
        li {
        margin-left: 20px;
        }
    }
    a {
        text-decoration: none;
        color: var(--color-3);
        font-weight: 600;
    }
}

/* H1 - TITULO */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)),url('./img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    img{
        height: 240px;
    }
    h1{
    color: var(--color-1);
    font-size: 3rem;
}
    h2{
    color: var(--color-2);
    margin-top: -1.2rem;
    margin-bottom: 0.5rem;
    }
}

.cta-button {
    background: #28a745;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 30px;
    margin-top: 20px;
    transition: 0.3s;
    &:hover {
    transform: scale(1.05);
    background: #218838;
}
}

section {
    padding: 60px 10%;
    text-align: center;
}

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: 
    "mascota mascota familiares familiares" 
    "eutanacia eutanacia eutanacia eutanacia";
    gap: 20px;
    margin-top: 40px;
}
#mascota{
    grid-area: mascota;
}
#familiares{
    grid-area: familiares;
}
#eutanacia{
    grid-area: eutanacia;
}

article {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.12);
    H3{
        margin-bottom: 1rem;
    }
    .individual{
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba(0,0,0,0.25);
        .servicio{
            width: 75%;
        }
        .estado{
            width: 25%;
            color: var(--color-2);
            text-shadow: 0px 0px 2px #00000070;
        }
        .servicio, .estado{
            text-wrap: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
        .bold{
            font-weight: 900;
            color: var(--color-1);
        }
        .texto-largo{
            font-size: 14px;
            margin: 20px 0;
            font-weight: 300;
        }
    }
}

/* CARRUSEL DE TESTIMONIOS -------------------------------- */

#testimonios {
    background-color: #f9f9f9;
    overflow: hidden;
}

.carrusel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    &::-webkit-scrollbar {
    display: none;
}
}

.slide {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 40px 20px;
}

.slide blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

.slide cite {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #007bff;
}

/* Botones */
.prev, .next {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-3);
    padding: 10px;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    color: #007bff;
}

/* -------------------------------------------------------- */

#contacto{
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    h3,h4{
        width: 100%;
    }
}

#urnas{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    img{
        aspect-ratio: 1 / 1;
        width: 34%;
        border-radius: 15%;
        box-shadow: 8px 8px 12px 0px #00000045;
        transition: transform 0.5s;
        margin: 12px;
        &:hover{
            transform: scale(1.05);
        }
    }
}

button[type="submit"] {
    background: var(--color-3);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 8px;
}

/* BOTON DE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-green 2s infinite;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.whatsapp-float {
    animation: fadeIn 1s ease-out;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .hero {
        height: auto; 
        padding: 60px 20px; 
        background-attachment: scroll; 
    }

    .hero img {
        height: 150px; 
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1.3rem;
        margin-top: 0; 
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    section{
        padding: 60px 3%;
    }

    .grid-beneficios {
        display: block;
        article{
            padding: 10px;
            margin: 15px 0;
        }
    }
}