/* Reset y fuentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", "Roboto Slab", sans-serif;
    background: linear-gradient(to bottom, #f4f4f4, #e0e0e0);
    min-height: 100vh;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-areas:
        "header header"
        "main aside"
        "footer footer";
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    min-height: 100vh;
    padding: 10px;
}

/* Header */
header {
    grid-area: header;
    background: #40546e;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

audio {
    max-width: 200px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Main */
main {
    grid-area: main;
    padding: 20px;
}

.titulo-home {
    font-family: "Roboto Slab", serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.parrafo-home {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 30px;
}

/* Servicios (Flexbox) */
#servicios {
    margin-bottom: 40px;
}

.servicios-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.servicio {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    flex-direction: row;
}

.servicio img {
    width: 50%;
    height: auto;
    object-fit: cover;
}

.servicio-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.servicio-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn {
    background: #40546e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: #34495e;
}

/* Reseñas (Grid) */
#reseñas {
    margin-bottom: 40px;
}

.reseñas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.reseña {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.reseña h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.reseña p {
    font-size: 0.9rem;
}

/* Contacto */
#contacto {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contacto h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

#contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contacto label {
    font-weight: 600;
}

#contacto input,
#contacto textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif;
}

#contacto button {
    background: #40546e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

#contacto button:hover {
    background: #34495e;
}

/* Aside (Sobre nosotros) */
aside {
    grid-area: aside;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

aside h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

aside p {
    font-size: 0.9rem;
}

/* Footer */
footer {
    grid-area: footer;
    background: #40546e;
    color: white;
    padding: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-links img {
    width: 32px;
    height: 32px;
}

/* Media Queries */
@media (max-width: 768px) {
    .grid-container {
        grid-template-areas:
            "header"
            "main"
            "aside"
            "footer";
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-direction: column;
        gap: 10px;
    }

    audio {
        max-width: 100%;
    }

    .servicio {
        flex-direction: column;
    }

    .servicio img {
        width: 100%;
    }

    #contacto {
        padding: 0 20px;
        margin: 20px;
    }

    aside {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .titulo-home {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .servicios-container {
        flex-direction: column;
        align-items: center;
    }

    .servicio {
        max-width: 100%;
    }

    #contacto {
        padding: 10px;
    }
}