/* ========================================
   RASTI - Tipos de cuentos Page
   ======================================== */


.types-hero-section {
    padding-top: calc(var(--navbar-height, 72px) + 2.5rem);
    padding-bottom: 1rem;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.types-hero-section::before,
.types-hero-section::after {
    content: none;
}

.types-hero-section::before {
    top: -140px;
    right: -80px;
}

.types-hero-section::after {
    bottom: -180px;
    left: -120px;
}

.types-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.types-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.types-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600, #6b7280);
    line-height: 1.7;
}

.types-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.types-card {
    background: #fffdfb;
    border-radius: 22px;
    padding: 1.9rem 2.1rem;
    border: 1px solid color-mix(in srgb, var(--secondary) 40%, #ffffff);
    box-shadow: 0 10px 22px rgba(189, 61, 117, 0.08);
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.types-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.types-icon {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(242, 158, 120, 0.18);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.types-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.types-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.types-card-text {
    color: var(--gray-700, #4b5563);
    line-height: 1.6;
    margin: 0;
}

.types-examples {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.types-examples-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.types-examples-list {
    list-style: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0 !important;
}

.types-examples-list li {
    list-style: none !important;
    padding: 0.35rem 0.9rem;
    background: rgba(242, 158, 120, 0.18);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(242, 158, 120, 0.35);
    font-weight: 500;
}

.types-cta-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

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

@media (max-width: 900px) {
    .types-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .types-hero-section {
        padding-top: calc(var(--navbar-height, 72px) + 6.5rem + env(safe-area-inset-top));
    }
}

@media (max-width: 640px) {

    .types-section {
        padding: 2.5rem 0;
    }

    .types-card {
        padding: 1.4rem 1.6rem;
    }

    .types-icon {
        width: 96px;
        height: 96px;
    }

    .types-hero {
        margin-top: 3rem;
    }   


    .types-hero-section {
        padding-bottom: 0;
    }
}
