/* ===================================
   TIPS DE DIBUJO - ESTILOS
   Fondo blanco, letras negras
   =================================== */



/* Header de Tips */
.tips-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tips-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    border-bottom: 3px solid #000000;
}

.tips-header h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
}

.tips-header p {
    font-size: 1.1rem;
    color: #333333;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenedor de Tips */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Card de Tip */
.tip-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Header del Tip Card */
.tip-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000000;
}

.tip-header-card h2 {
    font-size: 1.8rem;
    color: #000000;
    font-weight: 700;
}

.tip-date {
    font-size: 0.9rem;
    color: #555555;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Imagen del Tip */
.tip-imagen {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cccccc;
}

.tip-imagen img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Contenido del Tip */
.tip-contenido {
    margin-bottom: 30px;
}

.tip-contenido p {
    font-size: 1.05rem;
    color: #222222;
    line-height: 1.8;
    text-align: justify;
}

/* Sección de Comentarios */
.comentarios-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #dddddd;
}

.comentarios-titulo {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Lista de Comentarios */
.comentarios-lista {
    margin-bottom: 30px;
}

.no-comentarios {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
}

.comentario-item {
    background: #f9f9f9;
    border-left: 4px solid #000000;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comentario-header strong {
    font-size: 1.05rem;
    color: #000000;
}

.comentario-fecha {
    font-size: 0.85rem;
    color: #777777;
}

.comentario-texto {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
}

/* Respuesta del Admin */
.respuesta-admin {
    margin-top: 15px;
    margin-left: 30px;
    padding: 15px;
    background: #ffffff;
    border-left: 4px solid #555555;
    border-radius: 6px;
}

.respuesta-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #555555;
    font-size: 0.95rem;
}

.respuesta-header i {
    font-size: 1.1rem;
}

.respuesta-fecha {
    font-size: 0.8rem;
    color: #888888;
    margin-left: auto;
}

.respuesta-texto {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
}

/* Formulario de Comentarios */
.comentario-form-container {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #dddddd;
}

.comentario-form-container h4 {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 20px;
}

.comentario-form .form-group {
    margin-bottom: 15px;
}

.comentario-form input,
.comentario-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #cccccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    color: #000000;
    transition: border-color 0.3s ease;
}

.comentario-form input:focus,
.comentario-form textarea:focus {
    outline: none;
    border-color: #000000;
}

.comentario-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-comentar {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-comentar:hover {
    background: #333333;
    transform: translateY(-2px);
}

.btn-comentar:active {
    transform: translateY(0);
}

/* No tips message */
.no-tips {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px dashed #cccccc;
}

.no-tips p {
    font-size: 1.2rem;
    color: #666666;
}

/* Responsive */
@media (max-width: 768px) {
    .tips-header h1 {
        font-size: 2rem;
    }

    .tips-header p {
        font-size: 1rem;
    }

    .tip-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tip-header-card h2 {
        font-size: 1.5rem;
    }

    .respuesta-admin {
        margin-left: 15px;
    }

    .comentario-form-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .tips-section {
        padding: 20px 15px;
    }

    .tip-card {
        padding: 20px 15px;
    }

    .comentarios-titulo {
        font-size: 1.3rem;
    }
}
/* ===================================
   ACORDEÓN Y MODAL DE IMAGEN
   =================================== */

/* Acordeón */
.accordion-item {
    margin-bottom: 20px;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f5f5f5;
}

.accordion-header .tip-header-card {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    flex: 1;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #000000;
    margin-left: 20px;
}

.accordion-content {
    padding: 30px;
    border: 2px solid #000000;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
}

.tip-card.accordion-item {
    padding: 0;
    border: none;
    box-shadow: none;
}

.tip-card.accordion-item:hover {
    transform: none;
}

/* Imagen thumbnail (miniatura) */
.tip-imagen-thumbnail {
    max-height: 200px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.tip-imagen-thumbnail:hover {
    opacity: 0.8;
}


/* Modal de imagen */
.modal-imagen {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-imagen-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.close-imagen {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-imagen:hover {
    color: #cccccc;
}

/* Responsive acordeón */
@media (max-width: 768px) {
    .accordion-header {
        padding: 15px;
    }
    
    .accordion-header .tip-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .accordion-icon {
        margin-left: 10px;
        font-size: 1.2rem;
    }
    
    .accordion-content {
        padding: 20px 15px;
    }
    
    .tip-imagen-thumbnail {
        max-height: 200px;
    }
    
    .close-imagen {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .modal-imagen-content {
        max-width: 95%;
        max-height: 95%;
    }
}
