.home-hero {
    background-image: url(/assets/imgs/hero-background.webp);
    color: #19102B;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 100%;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    background-color: rgba(214, 222, 232, 0.8);
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-image img {
    width: auto;
    height: 95%;
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.specialties {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.specialty-card {
    background: var(--secondary-bg-color);
    border-radius: 1rem;
    box-shadow: 0 4px 4px 0 rgba(25, 16, 43, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.card-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.specialty-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.specialty-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.specialty-card p {
    font-size: 1.2rem;
    line-height: 1.5;
    opacity: 0.8;
}

.card-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.specialties-cta {
    display: flex;
    justify-content: center;
}

.about {
    background-color: var(--primary-color);
    color: var(--primary-bg-color);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    display: block;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 520px;
}

.about-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.location {
    background-color: var(--primary-bg-color);
}

.location-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.location-card {
    width: 100%;
    border: none;
    background: var(--secondary-bg-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-left: 1rem;
}

.location-block {
    max-width: 400px;
}

.location-block h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-block p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.location-written {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.location-map {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.location-map iframe {
    width: 100%;
    height: 260px;
}

.loc-contact-button {
    align-self: center;
}

.map-link {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-decoration: none;
    align-self: flex-start;
}

.book-highlight {
    position: relative;
    background-image: url('/assets/imgs/mario-gradiente.webp');
    background-size: cover;
    border-radius: 1rem;
    overflow: hidden;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.book-highlight::before {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 1rem;
}

.book-content {
    background: var(--secondary-bg-color);
    border-radius: 1rem;
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin: 5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.book-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    align-self: center;
}

.book-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .hero-image img {
        height: 75%;
    }
}

@media (max-width: 900px) {
    .hero-image {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        max-width: 500px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .book-highlight {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        background: url(/assets/imgs/circulo-gradiente.webp);
        background-position: center;
        justify-items: center;
        text-align: center;
    }

    .book-content {
        margin: 0;
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 700px) {

    .home-hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
    }

    .card-link-wrapper {
        padding: 1.25rem;
    }

    .location-written {
        flex-direction: column;
        gap: 1.5rem;
    }

    .location-info {
        margin-left: 0;
    }

    .location-card {
        padding: 1.5rem;
    }

    .book-content {
        margin: 0;
        padding: 1.5rem;
    }

    .book-highlight {
        padding: 2rem 1rem;
    }
    
    .map-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 440px) {

    .hero-content {
        align-items: center;
        max-width: 300px;
    }
}