/* HERO POEMAS */
.poems-hero {
    background: linear-gradient(135deg, #b02424 0%, #8b1c1c 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.poems-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.poems-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.poems-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    opacity: 0.95;
}

.poems-description {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* BUSCADOR */
.search-section {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b02424;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #b02424;
    box-shadow: 0 0 0 3px rgba(176, 36, 36, 0.1);
}

/* SECCIÓN DE POEMAS */
.poems-section {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
    min-height: 60vh;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* TABS HEADER */
.tabs-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.tab-button i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.tab-button:hover {
    background-color: #fef9f5;
    color: #b02424;
}

.tab-button:hover i {
    transform: scale(1.15);
}

.tab-button.active {
    background-color: #b02424;
    color: white;
}

.tab-button.active:hover {
    background-color: #8b1c1c;
}

/* TAB CONTENT */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* GRID DE POEMAS */
.poems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* TARJETA DE POEMA (ACORDEÓN) */
.poem-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.poem-card:hover {
    box-shadow: 0 8px 25px rgba(176, 36, 36, 0.15);
}

.poem-header {
    width: 100%;
    background-color: white;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: left;
}

.poem-header:hover {
    background-color: #fafafa;
}

.poem-info {
    flex: 1;
}

.poem-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.poem-author {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.poem-icon {
    font-size: 2rem;
    color: #b02424;
    font-weight: 300;
    transition: transform 0.3s ease;
    min-width: 40px;
    text-align: center;
    line-height: 1;
}

.poem-card.active .poem-icon {
    transform: rotate(45deg);
}

/* CONTENIDO DEL POEMA */
.poem-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.poem-card.active .poem-content {
    max-height: 2000px;
    padding: 0 2rem 2rem 2rem;
}

.poem-text {
    background-color: #fef9f5;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #b02424;
    margin-bottom: 1.5rem;
}

.poem-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', serif;
}

.poem-text p:last-child {
    margin-bottom: 0;
}

/* FORMATO PROSA (poemas sin estrofas) */
.poem-prose p {
    margin-bottom: 0.5rem !important;
    text-align: justify;
}

.poem-prose p:last-child {
    margin-bottom: 0 !important;
}

.poem-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.poem-date {
    font-size: 0.9rem;
    color: #999;
}

.poem-category {
    background-color: #b02424;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ESTADO VACÍO */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.no-results p {
    font-size: 1.2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN - POEMAS VOCACIONALES
   ========================================================================== */

/* TABLET - 1024px
   ========================================================================== */
@media (max-width: 1024px) {
    .poems-hero {
        padding: 3.5rem 2rem;
    }

    .poems-title {
        font-size: 3rem;
    }

    .tabs-container {
        max-width: 1000px;
    }

    .tab-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* MÓVIL GRANDE - 768px
   ========================================================================== */
@media (max-width: 768px) {
    .poems-hero {
        padding: 3rem 1.5rem;
    }

    .poems-title {
        font-size: 2.5rem;
    }

    .poems-subtitle {
        font-size: 1.2rem;
    }

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

    .search-section {
        padding: 1.5rem 1rem;
    }

    .search-input {
        padding: 0.9rem 0.9rem 0.9rem 3.2rem;
        font-size: 0.95rem;
    }

    .poems-section {
        padding: 3rem 1.5rem;
    }

    .tabs-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .tab-button {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }

    .poem-header {
        padding: 1.2rem 1.5rem;
    }

    .poem-title {
        font-size: 1.3rem;
    }

    .poem-author {
        font-size: 0.85rem;
    }

    .poem-content {
        padding: 0 1.5rem;
    }

    .poem-card.active .poem-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .poem-text {
        padding: 1.5rem;
    }

    .poem-text p {
        font-size: 1rem;
    }

    .poem-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
}

/* MÓVIL PEQUEÑO - 640px
   ========================================================================== */
@media (max-width: 640px) {
    .poems-hero {
        padding: 2.5rem 1rem;
    }

    .poems-title {
        font-size: 1.8rem;
    }

    .poems-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .poems-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .search-section {
        padding: 1.2rem 0.8rem;
    }

    .search-input {
        padding: 0.85rem 0.85rem 0.85rem 3rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }

    .search-icon {
        left: 1.2rem;
        font-size: 1.1rem;
    }

    .poems-section {
        padding: 2.5rem 1rem;
    }

    .tabs-header {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .tab-button {
        padding: 0.85rem;
        font-size: 0.9rem;
        min-width: auto;
    }

    .tab-button i {
        font-size: 1.3rem;
    }

    .poem-header {
        padding: 1rem 1.2rem;
    }

    .poem-title {
        font-size: 1.2rem;
    }

    .poem-author {
        font-size: 0.8rem;
    }

    .poem-icon {
        font-size: 1.8rem;
        min-width: 35px;
    }

    .poem-content {
        padding: 0 1.2rem;
    }

    .poem-card.active .poem-content {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }

    .poem-text {
        padding: 1.2rem;
    }

    .poem-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .poem-footer {
        padding-top: 0.8rem;
    }

    .poem-date {
        font-size: 0.85rem;
    }

    .poem-category {
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }

    .no-results i {
        font-size: 3rem;
    }

    .no-results p {
        font-size: 1.1rem;
    }
}