* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #fff7fb;
    color: #4a2c3a;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
}

/* ================= HERO ================= */

.hero {
    text-align: center;
    padding: 5rem 1rem;
}

.hero img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #f472b6;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: #ec4899;
}

.hero p {
    font-size: 1.2rem;
    color: #9d4edd;
}

/* ================= CARDS (INDEX) ================= */

.cards {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #fbcfe8;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-content {
    padding: 1.2rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #ec4899;
}

.card p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* ================= BUTTON ================= */

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #ec4899;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    background: #db2777;
    transform: scale(1.05);
}

/* ================= POSTS ================= */

.post {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid #fbcfe8;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;

    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.15);
}

/* Imagen posts */
.post img {
    width: 45%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.post img:hover {
    transform: scale(1.05);
}

/* Contenido */
.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.post h2 {
    margin-bottom: 0.5rem;
}

/* Meta info */
.post-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* Tags */
.tags {
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    background: #fbcfe8;
    color: #9d174d;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-right: 0.4rem;
}

/* Animación posts */
.post:nth-of-type(1) { animation-delay: 0.1s; }
.post:nth-of-type(2) { animation-delay: 0.2s; }
.post:nth-of-type(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #fbcfe8;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 600px) {

    .hero h1 {
        font-size: 2.2rem;
    }

    .post {
        flex-direction: column;
        text-align: center;
    }

    .post img {
        width: 100%;
        max-width: none;
    }
}