body {
    margin: 0;
    font-family: Arial;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('../img/portada_02.jpg') center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.6)
    );
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.overlay h1 {
    font-size: 50px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

.overlay p {
    font-size: 20px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #00bcd4;
    color: white;
    border-radius: 30px;
    text-decoration: none;
}

/* INTRO */
.intro {
    padding: 60px 20px;
    text-align: center;
    background: #f5f5f5;
}


/* ÁLBUMES */
.albums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* IMAGEN */
.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* HOVER */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card:hover img {
    transform: scale(1.08);
}

/* OVERLAY */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.1)
    );
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* TEXTO SOBRE IMAGEN */
.card .info {
    position: absolute;
    bottom: 0;
    color: white;
    padding: 20px;
    z-index: 2;
}

.card .info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.card .info p {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.9;
}

.info {
    padding: 15px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.album img {
    width: 100%;
    border-radius: 10px;
}

.album {
    transition: 0.3s;
}

.album:hover {
    transform: translateY(-5px);
}

/* GALERÍA */
.galeria {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}



/* ============================
   RESPONSIVE SMARTPHONE REAL
============================ */
@media (max-width: 768px) {

    body {
        background: #f4f6f9;
        font-size: 16px;
    }

    /* HERO */
    .hero {
        height: 82vh;
        background-position: center;
    }

    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.75)
        );
    }

    .overlay {
        width: 88%;
        top: 55%;
    }

    .overlay h1 {
        font-size: 34px;
        line-height: 1.1;
        margin-bottom: 12px;
        text-shadow: 0 4px 12px rgba(0,0,0,0.9);
    }

    .overlay p {
        font-size: 16px;
        line-height: 1.4;
    }

    .btn {
        width: auto;
        padding: 13px 26px;
        font-size: 15px;
        border-radius: 30px;
    }

    /* INTRO */
    .intro {
        padding: 35px 18px;
    }

    .intro h2 {
        font-size: 24px;
    }

    .intro p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* ÁLBUMES */
    .albums {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 22px;
    }

    .card {
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }

    .card img {
        height: 260px;
    }

    .card:hover {
        transform: none;
    }

    .card:hover img {
        transform: none;
    }

    .card .info {
        padding: 18px;
    }

    .card .info h3 {
        font-size: 21px;
    }

    .card .info p {
        font-size: 15px;
    }

    /* GALERÍA INTERIOR */
    .galeria {
        padding: 12px;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .thumb {
        height: 150px;
        border-radius: 12px;
    }

    footer {
        font-size: 14px;
        padding: 18px;
    }
}