/* home */
.header-home-section {
    height: 65vh;
    background-image: url('../imagenes/berberecho-de-noia.jpg');
    background-size: cover;
    background-position: center;
}

/*  Topes */
.stats-overlap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: -80px auto 60px auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    box-sizing: border-box;
}

.stat-box {
    background: linear-gradient(135deg, var(--color-tarjeta-cyan) 0%, #3DA6A6 100%);
    color: var(--color-texto);
    padding: 25px 15px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-box h2 {
    margin: 0 0 5px 0;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-box h2 span {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 2px;
}

.stat-box p:nth-of-type(1) {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.stat-box p:nth-of-type(2) {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Berberechos destacado*/
.text-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.text-content p:nth-of-type(1) {
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.image-content {
    display: flex;
    justify-content: center;
}

.image-content img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2 / 1;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}


@media screen and (max-width: 900px) {
    .header-home-section {
        height: 45vh;
    }

    .header-main {
        padding: 15px 20px;
        flex-wrap: nowrap;
    }

    h2 {
        font-size: 1.2rem;
    }

    .stat-box h2 {
        font-size: 3rem;
    }

    .text-content p {
        font-size: 0.9rem;
    }

    .tide-container {
        height: 250px;
    }

}