body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    background-color: #f2f2f2;
}

header {
    background-color: rgb(50, 99, 87);
    padding: 1em;
    text-align: center;
    color: white;
}

.logo {
    width: 150px;
    margin-top: 10px;
    animation: giro-reverso 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(3deg);
}

@keyframes giro-reverso {
    0% {
        transform: rotate(0deg);
    }
    45% {
        transform: rotate(180deg);
    }
    50% {
        transform: rotate(180deg);
    }
    95% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.hero img {
    width: 95%;
    height: auto;
    aspect-ratio: 16 / 9; /* Para mantener una forma tipo pantalla */
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
}

.hero-text {
    width: 90%;
    position: absolute;
    bottom: 20px;
    left: 40px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 5px;
}

section {
    padding: 2em;
    background-color: #fff;
    margin: 1em 0;
}

h2{
    text-align: center;
        text-decoration: underline;
}

h3{
    text-align: center;
}

footer {
    text-align: center;
    padding: 1em;
    background-color: #1a1a1a;
    color: #fff;
}

button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(50, 99, 87, 0.8);
    color: white;
    border: none;
    padding: 1em;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
}

button.prev {
    left: 10px;
}
button.next {
    right: 10px;
}

.sucursal-card p {
    margin: 2px 0; /* antes era 5px o más */
    line-height: 1.3;
}

.mapa {
    margin-top: 15px; /* o más si quieres más separación */
}

.link-instagram {
    display: inline-block;
    margin-top: 10px;
}

.btn-instagram {
    display: inline-block;
    background-color: #E1306C;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.btn-instagram i {
    margin-right: 8px;
}

.slider {
    position: relative;
    max-width: 600px; /* ajusta este número si quieres más o menos ancho */
    height: 400px;     /* mantiene el formato cuadrado */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(50, 99, 87, 0.8);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2em;
    border-radius: 50%;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}
